Guest User

Untitled

a guest
Nov 16th, 2018
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.90 KB | None | 0 0
  1. 1. A metric tion is 35,273.92 ounces. Write a Program that will read the weight of a package of breakfast ceral in ounces and output the weight in metric tons as well as the number of boxes needed to yeild
  2. 1 metric ton of ceral of ceral. Your program should allow the user to repeat this calculation as often as the user wishes.
  3.  
  4. 2. A government reasearch Lab has concluded that an artifical sweetner commonly used in diet soda pop will cause death in laboratory mice. A friend of yours is desperate to lose weight but cannnot give up soda pop. Your friend wants to know how much diet soda pop it is possible to drink without dying as a result. Write a
  5. Program to supply the anwser. The input to the program is the amount of artifical soda sweetner needed to kill a mouse, the weight of the mouse, and the weight of the dieter. To ensure the safety of your friend, be sure the program requests the weight at which the dieter will stop dieting, rather than the dieter's current weight. Assume that the diet soda contains 1/10th of the 1% artificial sweetener. Use a variable declaration with the modifier const to give a name to this fraction. You may want to express the percent as the double value 0.001. Your program should allow the calculation to be repeated as often as the user wishes.
  6.  
  7. 3. Workers at a particular company have won a 7.6% pay increase retroactive for 6 months. Write a Program that takes an employee's previous annual salary as input, and outputs the amount of retroactive pay due the employee, the new annual salary, and the new monthly salary. Use a Variable declaration with the modifer const to express the pay increase. Your program should allow the calculation to be repeated as often as the user wishes.
  8.  
  9. 4. Modify your program from Programming Project 3 so that it calculates the retroactive salary for a worker for any number of months, instead of jsut 6 months. The number of months is entered by the user.
Add Comment
Please, Sign In to add comment