Question: Write a java program to convert 20 dollars, 10 dimes and 6 pennies into pennies. Only use variables and math exression, no if statement
Write a java program to convert 20 dollars, 10 dimes and 6 pennies into pennies. Only use variables and math exression, no " if" statement ( for beginnger Java learner). With the money you have , calculate the remaining money if you spend your money on one soda and one sandwich. You must show the cost by dollars , dimes and pennies. You may use any numbers less than the amount of money you have. Your remainder should be in dollars, dimes and pennies.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
