Question: Write a c++ program in detail for the problem below Problem 05: (Subtotal, Total and Vat) A customer in a store is purchasing five items.
Problem 05: (Subtotal, Total and Vat) A customer in a store is purchasing five items. The prices of the five items are Price of item 1 = BHD 15.95 Price of item 2 = BHD 24.95 Price of item 3 BHD 6.95 Price of item 4 = BHD 12.95 Price of item 5 = BHD 3.95 Write a C++ program that holds the prices of the five items in five variables. Display each item's price, the subtotal of the sale, the amount of VAT tax, and the total. Assume the VAT is 5%. The output: Item 1: BHD 15.95 Item 2: BHD 24.95 Item 3: BHD 6.95 Item 4: BHD 12.95 Item 5: BHD 3.95 Subtotal: BHD 64.75 vat.: BHD 3.2375 Total: BHD 67.9875 Problem 05. Code: Problem 05 Output
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
