Kotlin Plz.

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Kotlin Plz.

Post by answerhappygod »

Kotlin Plz.
Kotlin Plz 1
Kotlin Plz 1 (27.1 KiB) Viewed 18 times
Write an application in Kotlin that determines the value of the coins in a jar and prints the total in dollars and cents. Read integer values from the user that represents the number of quarters, dimes, nickels, and pennies that are in the jar. Display the number of each coin and then a total in dollars and cents. Format output as shown below to 2 decimal places (3.5 should display as 3.50) with the dollar sign. OUTPUT EXAMPLE: Please Enter the number of Quarters: 4 Please enter the number of dimes: 15 Please enter the number of nickels: 10 Please enter the number of pennies: 3 You have 4 quarters, 15 dimes, 10 nickels and 3 pennies for a total of $3.03
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply