Compute and print to the screen the average number

Assignment Help Computer Engineering
Reference no: EM13705109

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?

Reference no: EM13705109

Questions Cloud

Distributed file service : Use your own word to describe if five clients accessed the same file in a Distributed File Service how many copies of the file may exist on the network? Show list where the copies are.
What temperature is the vapor pressure equal to hg : Problem- Diethyl ether has an enthalpy of vaporization of 29.0 kJ/mol. The compound has a vapor pressure of 524 mm Hg at 25 °C. At what temperature is the vapor pressure equal to 115 mm Hg? -17 °C -9 °C 9 °C 25 °C
Insert in order functionality to your statistics program : You are to add mean, standard deviation, and insert in order functionality to your statistics list program.
What is the identity of the element : Problem- An element crystallizes in a face-centered cubic lattice. If the length of an edge of the unit cell is 0.408 nm, and the density of the element is 19.3 g/cm3, what is the identity of the element?
Compute and print to the screen the average number : Compute and print to the screen the average number of hamburgers that were ate per day ( which may have a fractional component).
Compute the ksp for agi if it 100% dissociated in water : Problem- Compute the Ksp for AgI if it 100% dissociated in water, and if its solubility is equal to 1.9 x 10-5 M
What is the oh- concentration in the solution : Problem- What is the concentration of H+ in 0.00065 M HNO3. What is the pH of the solution. What is the OH- concentration in the solution
What is the concentration of h+ in 0.00065 m hno3 : Problem- What is the concentration of H+ in 0.00065 M HNO3. What is the pH of the solution. What is the OH- concentration in the solution
What fraction of the original sample is left after 56.7 days : Problem- 1) A particular radioactive isotope has a half life of 2.70 weeks. What fraction of the original sample is left after 56.7 days. 2) Which of the following statements is not true of electrolysis

Reviews

Write a Review

Computer Engineering Questions & Answers

  Program that help an elementary school learn multiplication

Computers are playing an increasing role in education. Write a program that will help an elementary school learn multiplication. make Use of a Random object to produce two positive one-digit integers.

  What is mno

What is MNO.

  What competitive advantage will gain

What competitive advantage will you gain by establishing SDLC and following rigid processes and procedures? List your response in bulleted format and provide details for each.

  Find the matrix using the assembly language

Find the matrix using the assembly language

  How to insert a row into the student table

Make yourself a student by writing and executing an INSERT statement to insert a row into the STUDENT table with data about you. Use one of the zip codes you inserted.

  Would professional ethics be implemented in an organization

Professional ethics play a vital role in the computing profession. The conduct of IT Professionals influences many areas of an organization beyond just the information systems group.

  Questionstatus your own position privacy in age of the

questionstatus your own position privacy in age of the internet and offer a defense for it. using ethical dialectical

  Examine your thoughts on the effects of indexes

Discuss the thoughts on the effects of indexes, data types, filegroups, and transaction logs on space considerations. Which of those database constructs do you feel are most important to manage when it comes to database size considerations.

  Modify the inventory program by adding a button to the gui

modify the inventory program by adding a button to the gui that allows the user to move to the first item the previous

  Which parts of the assignment were you not able to complete

Which parts of the assignment were you not able to complete fully? For each, explain why you were unable to complete this part and what steps you took to attempt to complete it. Give me as much detail as possible such that I may award partial cred..

  How to generate the computer code

I have not seen them yet, but the wave appears to be toward a complete English ability to write down computer programs.

  Select one of the social media tools noted above and

select one of the social media tools noted above and explain how this application can be used to collect data from

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd