Question: Money Program CSCI 111 Programming and Algorithms I (c++) From now on, your code should have a proper deader documentation. Here is an example. //

Money Program

CSCI 111 Programming and Algorithms I (c++)

Money Program CSCI 111 Programming and Algorithms I (c++) From now on,

your code should have a proper deader documentation. Here is an example.

// lab8.cpp // CSCI 111 Section 4 = Due 02/10/2019 // Description:

From now on, your code should have a proper deader documentation. Here is an example. // lab8.cpp // CSCI 111 Section 4 = Due 02/10/2019 // Description: Money program that simulates a transaction with quarter, dimes and nickels #include using namespace std; int main () BLAH. BLAH. BLAH Task list: 1. Create a source code file named lab8.cpp which simulates a transaction 2. Prompt the user to enter the number of quarters, dimes and nickels and store in 3 variables 3. Calculate the total amount value in cents and save the value in a variable named TotalCents 4. Display the value of TotalCents similar to the following output. You have X cents. named TotalCost. 6. Calculate the difference between TotalCents and TotalCost and save the result in a third variable. 7. If the customer has sufficient money, display Your transaction is successful and your change back is X cents. Otherwise, if the customer does not have a sufficient amount, display Your transaction is void. You need X more cents. 8. Prompt the user if he/she wants to play again such as Do you want to play again?-yes, 2=no" 9. To pass turnin, refer to the expected output listing below. 10. Compile and execute the code. Refer to previous labs for compile/execute command syntax. SAMPLE OUTPUT /user/faculty/jraigoza/cscil11/Labs/lab8 ./lab8 Enter the number of quarters 1 Enter the number of dimes 2 Enter the number of nickels You have 60 cents. Enter the cost of the item in units of cents 90 Your transaction is void. You need 30 more cents Do you want to play again? 1-yes, 2-no 1 Enter the number of quarters. 3 Enter the number of dimes 3 Enter the number of nickels. 3 You have 120 cents Enter the cost of the item in units of cents. 120 Your transaction is successful and your change back is 0 cents. Do you want to play again? 1-yes, 2-ndo 2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!