Write a program that takes cents as an integer and converts


Question 1: Write a program that takes cents as an integer and converts it to dollars and cents.

Question 2: The conversion should be done in a function called NormalizeMoney.

This function is given a value in cents. It will convert cents to dollars and cents, which should be stored in a local variable called dollars which is returned to the calling function.

NormalizeMoney will keep a running total of all the money processed in a local static variable called sum.

Each time NormalizeMoney is called it should print out the sum before returning.

Question 3: Main function should prompt the user for cents and keep prompting till the user is done. For each cent value received, main function should print out the dollar equivalent.

You have to prepare program that takes cents as an integer and converts it to dollars and cents.

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Write a program that takes cents as an integer and converts
Reference No:- TGS0960560

Expected delivery within 24 Hours