Efficient logic when you write the program

Assignment Help English
Reference no: EM131097575

Write a class called Assignment Five with the following methods. All input and output on the command line NO dialog boxes. Remember to use the most efficient logic when you write the program.

  • main method: do exactly the following, no more and no less
    • say hi from your full name
    • skip a line, say PART ONE, then skip a line
      • call the hot Or Cold Outside method
    • skip a line, say PART TWO, then skip a line
      • ask the user what his name is
      • assign the user's name to variable of type String called my Name
      • ask the user what his body temperature is
      • assign the number entered by the user to a variable of type double named myTemperature
      • call the determineFever method, sending it the value of the variables myName and myTemperature
    • skip a line, say PART THREE, then skip a line
      • ask the user what the water temperature is (whole numbers only)
      • assign the number entered by the user to a variable of type int named liquidTemperature
      • call the isBoiling method, sending it the value of the variableliquidTemperature
      • assign the boolean value returned from isBoiling method to a variable named boiling
      • if boiling is true, say "The water is boiling. Be careful."
      • if boiling is false, say "The water is not boiling. A watched pot never boils."
    • skip a line, say bye from your full name, then skip a line
  • hot Or Cold Outside method
    • this method takes no arguments and has no return value
    • inside this method
      • ask the user what the temperature is outside
      • if it is 80 or above, say "It is very hot outside."
      • if it is greater than or equal to 60 and less than 80 say "It is very nice outside"
      • if it is below 60 say "It is very cold outside."
  • determine Fever method
    • this method has two parametesr: a String called yourName and adouble, named bodyTemperature
    • this method returns nothing
    • this method says "Hello ____, you have a fever. Take some aspirin." if the value of the variable bodyTemperature is above 98.6
      • Fill in the blank with the value of the variable yourName
    • if the bodyTemperature is less than or equal to 98.6, say "Hello ___, you have no fever. You may go to the movies."
      • Fill in the blank with the value of the variable yourName
  • is Boiling method
    • this method has one parameter: an int, named waterTemperature
    • this method returns a boolean
    • this method determines if the value of the variable waterTemperatureis boiling
      • if the water is boiling, the method returns true
      • if the water is not boiling, the method returns false
    • water boils at 212 (so 212 or greater is boiling)
  • Test your program thoroughly
  • Draw memoryfor the entire program, showing memory for all variables used
    • use whatever user input you would like
    • Be sure to draw the "chinese wall" between the parts of memory for each method
    • draw memory using the methodology we have been using in class

Reference no: EM131097575

Questions Cloud

Amount of money that would be present : Write a C++ program to ouput the amount of money that wouldbe present in a bank account some year in the future (named"future"), if x dollars was invested during some earlier year (named "start") chosen by the user.
Social problems assignment details : This weekly assignment will require students to read either local or national newspapers (Dayton Daily News, USA Today, and New York Times for example) in order to keep up with current events.
Two-demensional array : Write a C++ program to store up to 5 testgrades for each of up to 5 courses. You should use a two-demensional array to achieve this task. Each row shouldrepresent the test grades for a given class.
Locations and a single internet connection : The company you work for (Telex) is acquiring a competitor (Virex), and both networks need to be integrated. Each company has a WAN with three locations and a single internet connection. Each network is using the same private IP address block (10...
Efficient logic when you write the program : Write a class called AssignmentFive with the following methods. All input and output on the command line NO dialog boxes. Remember to use the most efficient logic when you write the program.
Create a structural hdl description for the data path : Use the earlier test bench to simulate the controller/data path system to verify correct behavior.
Provide a description of the american quality engineering co : Provide a description of the company that you work for. As part of your description include a discussion of the type of organizational structure.
What immanuel kant means by metaphysics of morals : Explain what Immanuel Kant means by Metaphysics of Morals (4 paragraphs). To do this, you will have to discuss the division of sciences as Kant presents it.
Investigate issues of accuracy and iterative refinement : E19: Numerical Methods for Engineering Applications Spring 2016 - PROJECT 1. In this project, you will strengthen your programming skills and investigate issues of accuracy and iterative refinement by implementing several simple numerical methods t..

Reviews

Write a Review

English Questions & Answers

  Write a profile

Write a profile on bishop poleni.

  Education system

Write a rearch paper on education system

  Write an report

The U.S. President Barack Obama said America can "win the future" by rebuilding its manufacturing sector (on June 8, 2011, after visiting an automotive training center at a community college in Virginia, outside Washington). Do you agree, and why?

  Discuss the accuracy of this statement

'Consideration does not have to be adequate or commercially realistic, nor does it need to be expressed in monetary terms, it merely needs to be "sufficient".' Discuss the accuracy of this statement.

  Write an essay on the youngest billionaire

Write an essay on the youngest billionaire

  Transformational leadership in the public sector

The more hierarchical an organization's authority structure, the lower the reported practice of transformational leadership behaviors.

  Modal verbs or modal constructions

Identify all the modal verbs or modal constructions in the passage

  Write a latter to mom thanking to adopting and caring

Write a latter to mom thanking for adopting and caring,

  Ways of knowing & authority in your discipline

To explore and become familiar with your discipline; to prepare you for your major researched essay.

  Writing an effective business letter

Prepare a letter in either block or modified block format, addressed to your employer or supervisor and copied to your marker.

  Discuss the kingdom of saudi arabia

Discuss the Kingdom of Saudi Arabia

  Developing an annotated bibliography

Developing an annotated bibliography

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