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

  Determine a m-bit thermometer code for the number k

A M-bit thermometer code for the number k consists of k 1's in the least significant bit positions and M-k 0's in the more significant bit positions. A binary-to-thermometer code converter has N inputs and 2^N-1 outputs.

  Determine the peak-to-peak output voltage-vpp

A certain sawtooth generator has the following parameter values: Vin: 3v, R: 4.7kohm, C:0.001uf. Determine its peak-to-peak output voltage if the period is 10 us. What is the Vpp

  Find what is the highest voltage allowed at the drain

A p-channel MOSFET with a threshold voltage V,p = -0.7 V has its SOUTce connected to ground. (a) What should the gate voltage be for the device to operate with an overdrive voltage of Ilor! = 0.5 V

  Find the leakage current through a polyester capacitor

A Polyester capacitor with a leakage specification of 5x109 O -µ F is used in a circuit. The voltage across this capacitor is 100 volts D.C. and the capacitance is 0.1µ F find the leakage current.

  Find the value of capacitor connected in parallel with load

120V, 60 Hz source is connected to a distribution line whose resistance, and inductive reactances are 0.1Ohm, j0.2 Ohm, respectively. Single phase, 2HP, 120V, 0.75 lagging pf. motor and 2.4Kw, 120V heater is connected in parallel.

  What is hall electric field is measured in the y direction

Show that the Hall coefficient for a p-type semiconductor is R_H=1/pe where p is the hole concentration and e is the electron charge. Assume the current is along the +x direction, the magnetic field is along the +z direction, and the Hall electric..

  Determine where the poles and zeroes of the system

The transfer function of a circuit is given by H(s)=2 s+4/4s^2+2s+2 a. Express the transfer function in a form in which the coefficients of the highest power of s are unity in both numerator and denominator. b. What is the characteristic equation o..

  Find what is the time needed to complete the faster process

A p-type wafer has a diffused Phosphorous n-type junction with a junction depth of 0.15µm. a) If the wafer (no pre-existing oxide) is to be oxidized at 1000-oC for two hours to form a ‘dense, non-porous, high-quality' gate oxide.

  Write the maxterm expansion for z in decimal form

A switching circuit has three inputs (A,B,C) and one output (Z). If A=0, the output Z is the exclusive-OR of B and C. If A=1, the output is the equivalence of B and C. (a) Find the truth table for Z.

  Design a non-uniform linear array to have the pattern

A 3-element uniform linear array with inter-element spacing of λ/2 is operated as a broadside array ,find the directions of null radiation , find the direction and the relative level of the side lobe .

  Find expression for the current-power and stored energy

The voltage across a 10-µF capacitor is given by v(t)=100sin(1000t). Find expression for the current, power, and stored energy. Sketch the waveforms to scale versus time.

  Calculate the effieciency-the speed and the shaft torque

A three-phase, 60 Hz, six pole, wound rotor induction motor draws 10kw when driving its normal load. It draws 700 W when the load is diconnected. The rotor and stator copper losses under normal load are 295 W and 310 W respectively.

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