Question: Anyone can check my code? :( I'm learning C++ online by myself as a beginner, I just tried to solve a problem, it can run,
Anyone can check my code? :(
I'm learning C++ online by myself as a beginner,
I just tried to solve a problem, it can run, but the result is always wrong (I'm sad), the first picture has the requirements of this problem.
please give me suggestions and reasons (For example, why did I do something wrong? What kind of thinking should I follow) ! Thanks!


********** 1- /* 2 Write a program that asks the user to enter a number of quarters, dimes, nickels and pennies 3 and then outputs the monetary value of the coins in the format of dollars and remaining cents. 4. Your program should interact with the user exactly as it shows in the following example: 5 6 Please enter the number of coins: 7 # of quarters: 20 8 # of dimes: 4 9 # of nickels: 13 10 # of pennies: 17 11 The total is 6 dollars and 22 cents 12 13 ********* 14 15 #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
