| Requesting assistance for C++ Program. Can someone please help me with these 2 programs.
MISM 2311 Lab Four
1) A fast food restaurant charges $1.49 for burgers, $0.89 for fries, and $0.99 for sodas.
Write a program that allows an employee to enter an order (the number of burgers, fries and sodas), and then display a total, the tax (at 6%), and the final cost. The program output should look similar to:
Enter the number of burgers: {The user will type a number such as 3}
Enter the number of fries: {The user will type a number such as 2}
Enter the number of sodas: {The user will type a number such as 5}
The total before tax is: $11.20
The tax is $0.67
The grand total is $11.87
Enter amount tendered: {The user will enter an amount such as 20}
The change is: $8.13
2) Write an interactive C++ program that reads a series of 12 temperatures from a file called "12temp.dat". It should display to the user each temperature and the difference between the current temperature and the one preceding it via cout. The difference is not output for the first temperature that is input. At the end of the program the average temperature should be displayed. For example given the following input data:
34.5 38.6 42.4 46.8 51.3 63.1 60.2 55.9 60.3 56.7 50.3 42.2
34.5
38.6 4.1
42.4 3.8
46.8 4.4
51.3 4.5
63.1 11.8
60.2 -2.9
55.9 -4.3
60.3 4.4
56.7 -3.6
50.3 -6.4
42.2 -8.1
The average temperature is: 50.2
Be sure to use proper formatting and appropriate comments in your code. Output should be labeled clearly and formatted neatly. |