Compute and print to the screen the average number of


Question: Prepare a complete java program that:

prompts the user to enter the number of hamburgers that they ate in a month, and stores the user's response into a variable of type int.

based on the above input value does the following:

Part 1: Compute and print to the screen the average number of hamburgers that were ate per day ( which may have a fractional component).

Part 2: if the average number of hamburgers ate per day is greater than 2, print (to the screen) the message " That is a lot of burgers"

otherwise:

Print ( to the screen ) the message "That sounds reasonable"

sample run(s):

enter number of hamburgers that they ate in (30 days) : 45

the average number of hamburgers ate per day was 1.5

That sounds reasonable

-------------------------------------

enter number of hamburgers that they ate in ( 30 days) : 66

the average of hamburgers ate per day was 2.2

that is a lot of burgers

Can you evaluate and print to the screen the average number?

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Compute and print to the screen the average number of
Reference No:- TGS0958382

Expected delivery within 24 Hours