Question: using c++ CHALLENGE ACTIVITY 331.2. Soda machine with enums. Complete the code provided to add the appropriate amount to totalDeposit : mains 290013150 1 #include

using c++
using c++ CHALLENGE ACTIVITY 331.2. Soda machine with enums. Complete the code
provided to add the appropriate amount to totalDeposit : mains 290013150 1

CHALLENGE ACTIVITY 331.2. Soda machine with enums. Complete the code provided to add the appropriate amount to totalDeposit : mains 290013150 1 #include 2 using namespace std; 3 4 int main { 5 enum AcceptedCoins {ADD_QUARTER, ADD_DIME, ADD_NICKEL, ADD_UNKNOWN}; 6 int total Deposit = 0; 7 int user Input; 8 9 totalDeposit = 0; 10 11 cout > user Input; 13 14 if (userInput -- ADD_QUARTER) { totalDeposit - totalDeposit + 25; 12 15 Run 064 1580548x3797 18 13 14 if (userInput ADD_QUARTER) { 15 totalDeposit = totalDeposit + 25; 16 } 17 V* Your solution goes here */ 19 I 20 else { 21 cout

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!