A local department store hires you to write an automated checkout program to exp
ID: 3633867 • Letter: A
Question
A local department store hires you to write an automated checkout program to expedite customers in a hurry. The checkout line can only accept five items for any one purchase. Design a program that asks for the price of each item, and then displays the subtotal of the sale, the amount of the sales tax and the total. The sales tax is 6 percent.You are to submit, as a Microsoft Word Document, the following for this assignment:
1. Pseudocode
2. Flowchart
Remember to follow the guidelines of good program design. Make sure to use meaningful variable names and thoroughly comment each line of your code.
Explanation / Answer
Dear.. You didn't mention the language, hope it's in c++. I have used Dev c++ for this solution. Write the following code in your favorite c++ editor: #include using namespace std; int main(void) { //Variable Declaration double item[5] ; //Array to store the Items purchased double subTotal = 0; //Stores the subtotal of all the purchased items double Tax = 0; //stores Tax of 6% on the Total double Total = 0; //Total after including Tax int i; //Enter 5 Items for(i=0;iRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.