Question: In this problem, you will implement a newspaper vending machine that accepts only coins. A newspaper costs $0.60. The vending machine acceptsonlyNickels(=$0.05),Dimes(=$0.10)andQuarters(=$0.25). Yourprogram should ask
In this problem, you will implement a newspaper vending machine that accepts only coins. A newspaper costs $0.60. The vending machine acceptsonlyNickels(=$0.05),Dimes(=$0.10)andQuarters(=$0.25). Yourprogram should ask theuser to enter a coin,and as long as the amount entered so far is that the newspaper, your program should loop and ask the user to enter another coin. The total entered so far should be displayed after each coin has been inserted. Once the user entered $0.60 or more, you should display a message saying thatthenewspaperwasdelivered,andreturnthechangeifthereisany. Onceyouimplementedthepreviousfunctionalities,addtwofeatures: The possibility for the user to type in lower-case or upper-caseletters.
The possibility at every step for the user not to insert any new coin,and to get his/her moneyback. The program should be coded in C#. Thanks
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
