Ethan O.

asked • 11/04/19

Write a function quartersToDollars which takes quarters of type int as an argument and return the equivalent number of dollars as double.

The prototype of the function is double quartersToDollars(int)


For ex if you pass 4 as an argument the method should return 1.0 and if you pass 7 as an argument the method should return 1.75


Output:

Enter Quarters: 9

The value of is : $2.25

1 Expert Answer

By:

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.