Your goal is to solve the following simple programming exercise. You have been c
ID: 3632470 • Letter: Y
Question
Your goal is to solve the following simple programming exercise. You have been contracted by a local antique store to design an algorithm determining the total purchases and sales tax. According to the store owner, the user will need to see the subtotal, the sales tax amount, and the total purchase amount. A customer is purchasing four items from the antique store. Design an algorithm where the user will enter the price of each of the four items. The algorithm will determine the subtotal, the sales tax, and the total purchase amount. Assume the sales tax is 7%.Explanation / Answer
Since no programming language was specified, I will give it to you in C++. #include using namespace std; int main() { double price[4], sub=0.0; for(int k=0; k> price[k]; sub+=price[k]; } coutRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.