Question: C++ please .2 Soda machine with enums TIVITY omplete the code provided to add the appropriate amount to totalDeposit. 1 #include 1 sest 2 using

C++ please  C++ please .2 Soda machine with enums TIVITY omplete the code

.2 Soda machine with enums TIVITY omplete the code provided to add the appropriate amount to totalDeposit. 1 #include 1 sest 2 using namespace std; 4 int maino ( 5 enum AcceptedCoins (ADD QUARTER, ADD DIME, ADD NICKEL, ADD UNKNOWN) 6 int totalDeposit; 7 int usrInput; 9 total Deposit - 0; 18 11 cout "Add coin: (add 25), 1 Cadd 10), 2 (add 5). " 12 cin >> usrInput; 13 14 if (usrInput ADD QUARTER) 15 16 total Deposit-totalDeposit +25 17 8 Your solution goes here 19 Run Feedback

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!