Question: Create two exception classes to capture the improper entering of coin names and their corresponding values. Name one class CoinNameException and the other CoinValueException .
Create two exception classes to capture the improper entering of coin names and their corresponding values. Name one class CoinNameException and the other CoinValueException.
Design and write a program that asks a young child to input a set of coin names and their corresponding values (in cents) in their piggybank. The program should work in a loop:
When the child is finished entering coins (or the program terminates), display a nicely-formatted report showing the name, value, and quantity of each coin in the childs piggybank, along with the total value of all coins
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
