Write a complete, working program that will do the following:

Suppose you want to write a program to calculate the total cost of an item that has sales tax added. If a given item costs 14.97, and the tax rate is 6.7%, display the following information:

a) The original cost of the item.
b) The tax rate.
c) The total cost including tax.

Hint: create three variables. Two variables will hold the two given values (cost and tax rate), and a third variable will hold the computed value representing the total cost. Then output all of the values, with appropriate labels.

Your program does not have to accept any input! Just create the three variables, assign values to two of them (remember to convert the percentage to a decimal equivalent), and compute the third.

To compute the third variable, you multiply the first two variables, and add the first one back on. Note that C++ does not support units such as “dollars” or “percent”. You simply use values like 14.97.

Hint: remember that as a decimal number, you would not store a percent as 6.7, this would be 670%. Also, you don’t want to calculate just the tax amount, but the total price of the item including the tax.

3 answers

That seems pretty straight forward. Where is the confusion?
input
number of items for which the program is run
for each item the manufacturer price and the mark-up of the store
Output: - for every item the total cost
Count how many vowels these person name