1. Engineering
  2. Computer Science
  3. c language...

Question: c language...

Question details

Write a program that computes 7 percent tax on the total of the following three items: Dozen Eggs $2.99, Cereal $4.23 and Milk $1.49 Create variables that represent each item then assign the cost of each item into each of the three variables- use meaningful variable names. Create another variable that totals the three items together and output that result to the screen with a label. Compute the tax which is 7 percent of the total and display that to the screen with a label. The finally- add the tax to the total for a final total and display that to the screen with a label. If you want you output to look like dollars and cents, add #include <iomanip> at the top before using namespace std; then also add: cout <setprecision(2) <showpoint <<fixed; before your first cout statement.

C++ language

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution