Write a program that allows the user to enter a payroll code

Assignment Help Civil Engineering
Reference no: EM13879916

Company's income and expense amounts

This is an individual assignment to be done by each student.

Here is the problem specification:

The sales manager at MyStore wants a program that allows her to enter the company's income and expense amounts, which always will be integers. The number of income and expense amounts may vary each time the program is run. For example, the sales manager may need to enter five income amounts and three expense amounts. Or, she may need to enter 20 income amounts and 30 expense amounts. The program should calculate and display the company's total income, total expenses, and profit (or loss).

  • Create an IPO chart. List the input, processing, and output items.
  • Plan the algorithm using pseudocode.
  • Save it in a filename LastFirst_a7.doc (e.g. DoeJohn_a7.doc)
  • Enter your C++ instructions into a source file named LastFirst_a7.cpp (e.g. DoeJohn_a7.cpp). Include your name and comments in the program.
  • Compile and run the program.
  • Take a screen shot of the output. Append it in LastFirst_a7.doc.

 

Assignment 8: Box Office

This is an individual assignment to be done by each student.

Here is the problem specification:

At the beginning of every year, Paul receives a raise on his previous year's salary. He wants a program that calculates and displays the amount of his annual raises for the next three years, using rates of 3%, 4%, 5%, and 6%. The program should end when Paul enters a sentinel value as the salary.

Sample run:
Salary (negative number or 0 to end): 100
Raise rate: 3%
Year 1:  Raise: $3.00
Year 2:  Raise: $3.09
Year 3:  Raise: $3.18

Raise rate: 4%
Year 1:  Raise: $4.00
Year 2:  Raise: $4.16
Year 3:  Raise: $4.33

Raise rate: 5%
Year 1:  Raise: $5.00
Year 2:  Raise: $5.25
Year 3:  Raise: $5.51

Raise rate: 6%
Year 1:  Raise: $6.00
Year 2:  Raise: $6.36
Year 3:  Raise: $6.74

 

  • Create an IPO chart. List the input, processing, and output items.
  • Plan the algorithm using pseudocode.
  • Save it in a filename LastFirst_a8.doc (e.g. DoeJohn_a8.doc)
  • Enter your C++ instructions into a source file named LastFirst_a7.cpp (e.g. DoeJohn_a8.cpp). Include your name and comments in the program.
  • Compile and run the program.
  • Take a screen shot of the output. Append it in LastFirst_a8.doc.

 

Assignment 9: Payroll Code

This is an individual assignment to be done by each student.

Here is the problem specification:

Copy the following data and paste them in a file named Payroll.txt (code#salary).

1#23400
4#17000
5#21000
6#12600
9#26700
10#18900
11#18500
13#12000
15#49000
16#56500
20#65000
21#65500
22#78200
23#71000
24#71100
25#72000
30#83000
31#84000
32#90000
  

Write a program that allows the user to enter a payroll code. The program should search for the payroll code in the file and then display the appropriate salary. If the payroll code is not in the file, the program should display an appropriate message. Use a sentinel value to end the program.

  • Create an IPO chart. List the input, processing, and output items.
  • Plan the algorithm using pseudocode.
  • Save it in a filename LastFirst_a9.doc (e.g. DoeJohn_a9.doc)
  • Enter your C++ instructions into a source file named LastFirst_a9.cpp (e.g. DoeJohn_a9.cpp). Include your name and comments in the program.
  • Compile and run the program.
  • Take a screen shot of the output. Append it in LastFirst_a9.doc.
  • Submit LastFirst_a9.cpp and LastFirst_a9.doc by uploading them here.

Reference no: EM13879916

Questions Cloud

Explain how it is possible that a shareholder : Explain how it is possible that a shareholder could be considered both an internal and external stakeholder.
Expression for evaluating the measurement error : Derive an expression for evaluating the measurement error, ?Terr = Ttip - T8,i, which is the difference between the tip temperature, T lip , and the water temperature, T8.i'
Which stakeholder group, internal or external : Which stakeholder group, internal or external, is more likely to be affected by corporate governance, and which has a direct affect on corporate governance?
Who was the dictator of spain from the late 1930s : Nazi Germany aggressively attacked its neighbors and precipitated
Write a program that allows the user to enter a payroll code : Write a program that allows the user to enter a payroll code. The program should search for the payroll code in the file and then display the appropriate salary. If the payroll code is not in the file, the program should display an appropriate messag..
Why do you think companies that practice good corporate : Why do you think companies that practice good corporate governance tend to be successful in business?
Find the shadow price of labor : A lumber company uses labor (L) and capital (K) to produce joint products, hardwood (H) and plywood (P). These items can be produced by one of two processes: Process 1: 1 unit of L and 2 units of K to yield 2 units of H and 1 unit of P or Process 2..
Why is tone at the top so important to corporate governance : Why is tone at the top so important to corporate governance?
Average heat removal rate per unit area : Calculate the average heat removal rate per unit area (W/m2) from the PCB.

Reviews

Write a Review

Civil Engineering Questions & Answers

  Find the maximum allowable tensile force

A 4-cm- diameter rod of aluminum 7075-T6 is to subjected to an axial tensile force such that the factor of safety based on the yield stress on 1.75. Find the maximum allowable tensile force. The yield stress of the aluminum 7075-T6 is o-y= 500MPa.

  Calculate the moment of f about the y axis from a to b

A 100 lb force vector F is aligned from A to B. Point A is located at the coordinates (2, 2, 2) and point B at (4,5,6). Calculate the moment of F about the y axis.

  Calculate the freezing point of aqueous

Calculate the freezing point of aqueous 0.369 m LiCl on the assumption that it is 100% dissociated. Calculate the freezing point if the percent dissociation is 0%.

  Problem 1 solve the following three questions of the beam

problem 1. solve the following three questions of the beam abc. note that a is a roller support b is a pin connection

  What tension load is needed to return length to the original

a meter long steel plate with a rectangular cross section(10mm x 50mm) is resting on a frictionless surface under the sun. the plate temperature is measures to be at 40C.

  Determine the force in each member of the truss

Determine the force in member AB Determine the force in member AE Determine the force in member BC Determine the force in member BE Determine the force in member CD

  Three cylinders from the same mix were tested

Three cylinders from the same mix were tested for strenght.  Cylinders A and B were cast in 4x8 molds while cylinder C was cast in a 6x12 mold.  The total loads were as follows; cylinder A= 65,200 lbs.,  cylinder B= 68,550 lbs., cylinder C= 151,190 l..

  Calculate the pressure drop

A single screw extruder is being used to process pregelatinized starch. The screw dimensions are as follows: channel width 3 cm, channel height 0.5 cm and screw length 50 cm. The wall velocity is estimated to be 0.31 m/s.

  Determine max magnitude of pq that satisfies limit states

The beam is fully restrained at both ends but is unbraced along its span. Determine the maximum magnitude of PQ that satisfies the ultimate strength limit state for flexural strength

  Which would mean that an embankment is in saturated

Total stress analysis is usually preferred for construction of embankments and for excavations, we use effective stress analysis, but why? Total stress is Undrained strength of the soil

  Find the resulting stress in the steel pipe material

A steel pipe carries an industrial oil under pressure. The steel pipe inside diameter is 36 in, the pressure head on the fluid is 383.0 ft. A)- Find the internal fluid pressure in psi

  Determine what is the critical insulation radius

Water flows on the inside of a steel pipe with an inner diameter of 2.5cm. The wall thickness is 2mm, and the convection coefficient on the inside is 500 W/m2oC. The convection coefficient on the outside is 12 W/m2oC.

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