A store owner asks you to write a program for use in the checkout process. The program should:

Prompt the user to enter the cost of the first item.Continue to prompt for additional items, until the user enters 0.Display the total.Prompt for the dollar amount the customer submits as payment.Display the change due.\begin{matrix} \text{Prompt the user to enter the cost of the first item.}\\ \text{Continue to prompt for additional items, until the user enters 0.}\\ \text{Display the total.}\\ \text{Prompt for the dollar amount the customer submits as payment.}\\ \text{Display the change due.}\\ \end{matrix}



Step 1

1 of 2


1State  the  problem1- \bf{State\;the\; problem}

Create a program for a store that allows the customer to inter the price of his items, display the total, enter the payment and display change due.

2State  the  inputs  and  the  outputs2- \bf{State\;the\; inputs\; and\; the\; outputs}

Input are each item price, the customer payment . .

The output are display the total and display change due..

3Develope  a  MATLAB  code:3- \bf{Develope\; a\; MATLAB \;code:}

Create the MATLAB solution and run the m-file in as shown. Then enter each item price the Total will be displayed. then enter costumer payment and the change due will be displayed as shown.

Create an account to view solutions

By signing up, you accept Quizlet's Terms of Service and Privacy Policy
Continue with GoogleContinue with Facebook

Recommended textbook solutions

Fundamentals of Electric Circuits 6th Edition by Charles Alexander, Matthew Sadiku

Fundamentals of Electric Circuits

6th EditionCharles Alexander, Matthew Sadiku
2,102 solutions
MATLAB for Engineers 5th Edition by Holly Moore

MATLAB for Engineers

5th EditionHolly Moore
313 solutions
Advanced Engineering Mathematics 10th Edition by Erwin Kreyszig

Advanced Engineering Mathematics

10th EditionErwin Kreyszig
4,134 solutions

Related questions