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

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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