Identify processing needed to convert inputs to outputs

Assignment Help Electrical Engineering
Reference no: EM13280700

Write a program that calculates and outputs the monthly paycheck information for an employee, including all the amounts deducted from an employee's gross pay, and the net pay that is due to the employee. The user of your program will know the employee's name and the gross pay for the employee. Each employee has the following deductions taken from his gross pay:

Federal Income Tax: 15%
State Tax: 3.5%
Social Security + Medicare Tax: 8.5%
Health Insurance $75

The output from your program should be structured as is displayed below:

Bill Robinson
Gross Amount: ............ $3575.00
Federal Tax: ............. $ 536.25
State Tax: ............... $ 125.13
Social Sec / Medicare: ... $ 303.88
Health Insurance: ........ $ 75.00
Net Pay: ................. $2534.75

Your program should deal with erroneous input values. Gross salary should always be a positive number. Make sure that you deal with the possibility that the user may have entered a non-numeric input value. Have your program output appropriate error messages in these cases.

1. Identify the inputs and outputs of the problem.

2. Identify the processing needed to convert the inputs to the outputs.

3. Design an algorithm in pseudocode to solve the problem. Make sure to include steps to get each input and to report each output. Include steps to deal with error cases.

4. Identify three test cases, one using a positive number, and one using a negative number, and one using incorrect input (ie. Input a letter rather than a digit for the numeric input). For each of the three test cases show what inputs you will use and what your expected outputs should be.

5. Write the program to implement your algorithm. Test your program using your test cases.

Reference no: EM13280700

Questions Cloud

Illustrate what is the molar mass of the protein : purified a new protein and find that it contains 0.154 percent Mn. Assuming that there are three atoms of manganese per molecule of protein, what is the molar mass of the protein
Discuss base emitter and base collector capacitances : 1. How would you bias a BJT in a common emitter amplifier in order to minimize the Miller feedback capacitance 2. Explain how it is possible to identify the different current transport mechanisms.
How much heat was generated by the current flow : A 0.500 kg length of copper wire is warmed 30.0°C by the passage of electrical current. How much heat was generated by the current flow
Explain what is the molarity of a ethanol solution : what is the molarity of a 99.O mL ethanol solution containing 8.11g of ethanol (C2H5OH)
Identify processing needed to convert inputs to outputs : Identify three test cases, one using a positive number, and one using a negative number, and one using incorrect input (ie. Input a letter rather than a digit for the numeric input). For each of the three test cases show what inputs you will use a..
Explain 1-bromobenzene without using a grignard reaction : How would you prepare methyl,phenyl,ketone starting with 1-bromobenzene without using a grignard reaction. please show reactants and intermediates
Determine the transverse displacement : The equation of a transverse wave traveling along a very long string is given by y = 6.9 sin(0.025(pi)x + 4.5(pi)t), Determine the transverse displacement
What is the distance from image to screen : A thin double convex lens is to focus the image of an object onto a screen so that the image is life-sized. What is the distance d from image to screen
Explain how would the calculated molar mass change : How would the calculated molar mass change(increase,decrease,no change) if the following experimental problems were encountered? explain the reason for your answer. (a)the unknown was impure and only part of the unknown dissolved in the lauric aci..

Reviews

Write a Review

Electrical Engineering Questions & Answers

  Lithium ion battery technology

The paper includes Lithium ion battery technology with its advantages and disadvantages. The paper discusses about the Lithium air battery in which detailed reactions of Lithium with air including nonaqueous as well as aqueous are given.

  Power transformers and tariffs

Construction of different types of power transformer, significant energy savings

  Paper on orthogonal frequency-division multiplexing

This document is shown a paper on Orthogonal frequency-division multiplexing with advantages, disadvantages and uses.

  Function of the hmi in a scada system

This assignment contains electronics engineering questions like State the commonly found components of a SCADA (Supervisory control and data acquisition) system. and decribe the function of the HMI in a SCADA system.

  Resultant waveform of the odd harmonic series

Prepare an Excel graph showing the individual components and summated resultant waveform of the odd harmonic series resulting in an approximate square wave.

  Explain scada system

Explain the function of the HMI in a SCADA system.

  Design a 2-digit 24 second shot-clock

Design a 2-digit 24 second "shot-clock" countdown timer with pushbutton controller.

  Model a discrete-time system

To understand di erent signal models To be able to model a discrete-time system and design simple signal processing algorithms.

  Draw a relay construction diagram

Draw a relay construction diagram and briefly explain the operation of a relay.

  Frequency division multiplexing

Write a short technical report on Frequency Division Multiplexing

  Impact of electron energy

Briefly discuss the impact of electron energy, electron current and target on the Bremsstrahlung generated.

  Traffic light controller

The schematic of the traffic light controller

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd