Question: Complete the code provided to add the appropriate amount to totalDeposit. Learn how our autograder works 5 3 0 1 8 8 . 2 0

Complete the code provided to add the appropriate amount to totalDeposit.
Learn how our autograder works
530188.2084342. qx3zqy 7
int main(void){
enum Acceptedcoins {ADD_QUARTER, ADD_DIMEADD_NICKEL ADD_UNKNOWN };
int totalDeposit =0;
int userInput;
printf("Add coin: 0(add 25),1(add 10),2(add 5).");
scanf("%d", &userInput);
if (userInput == ADD_QUARTER){
totalDeposit = totalDeposit +25 ;
}
V** Your solution goes here */
else {
printf("Invalid coin selection.
");
}
 Complete the code provided to add the appropriate amount to totalDeposit.

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!