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

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!