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

  Explain main elements of assignment in the substantive

explain main elements of assignment in the substantive way.the paper is 700 to 1050 words in length.describe the ease

  Implementing the soubly linked list adt

Develop, implement, and test the soubly linked list ADT, utilizing the DLLNode objects as the nodes. Additionally to our standard list operations, your class must offer for backward iteration through the list.

  During the physical design phase of a database

Class, do the IT database designers require to understand data volumes and number of users of the database in order to create an effective physical design? Who needs to "predict" data volumes and number of users.

  How java programing benefits to nonprogrammers

How does knowledge of programming concepts benefit individuals working in any IT position.

  How to write a python program

design a Python program that would prompt the user for the number of employees to be entered, and then prompt for employee name, followed by wage, followed by hours worked.

  Define the types of the expressions

Using no other objects besides those already declared, how may you alter ptrPtr so that is points to a pointer to b without directly touching ptr?

  Create the table relationships

make one query, your choice. Remember a query answers a question. As an example, list all household electronics that are greater in value than $200. Please ensure that the query title reflects what the query is about.

  Find out the strategic merits and demerits of using

determine the strategic advantages and disadvantages of using customer relations management crm services provided by

  Final projectnbsp e-commerce web siteyour final project

final projectnbsp e-commerce web siteyour final project will be a java programming project that uses design patterns to

  Describe the use of queries in an ehr

define a query that you would use as a continuous tool in an EHR.

  Define an example of a one-to-one relationship

Look for an example of a one-to-one relationship, an instance of a one-to-many relationship, and an example of a many-to-many relationship in a newspaper, magazine, book, or everyday situation you encounter.

  How to develop a simple scientific calculator

make a Clear button to clear the result text box and reset all controls.

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