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

  What regions or populations are included

What regions or populations are included? What other general observations can you make about how this volume represents the study of the history of sexuality?

  Imposed massive tariffs on chinese steelmakers

The U.S. government has imposed massive tariffs on Chinese steelmakers and I have no doubt if China does not change other countries will do the same as U.S. It is important to have a balance in trade because this can also affect future negotiation..

  The golden torque instructions

Powerpoint Presentation of Research Paper: The Golden Torque Instructions: The powerpoint should not be a slideshow of the research paper. The goal of your research presentation is to share with the class a distilled synthesis of your research outcom..

  Used in drafting or revising a paper

Consider the poem Galway Kinnell, "Blackberry Eating,". Draft a debatable statement about what the poem means from your perspective. What are the points you would make in an analysis? What specifics in the poem can you use to develop and illustra..

  How is foreignness depicted by these greek writers

Foreigners are featured in many of the works listed above. How is foreignness depicted by these Greek writers?

  When my turn came and i muttered meekly

When my turn came, I muttered meekly, "I can't...." "Don't say 'can't' in my classroom!" Mrs. Hinckley snapped. Then, more gently, she said, "Just sound it out...."

  Define a genuine human being and a genuine man woman of god

summarize the African understanding of God and his/her characteristics, as well as the set of moral and spiritual values used by Africans to define a genuine human being and a genuine man/woman of God

  Why is revision significant

1. Why is revision significant? 2. What can get in the way of helpful revision strategies? 3. From your experience, provide a situation where you either sent or received correspondence in which the message was not understood?

  Write a paper about article does fatherhood make you happy

Write a response paper about the article "Does Fatherhood Make You Happy?" by Daniel Gilbert.

  What was the effect of this legislation

What was the effect of this legislation? How did it impact the war on drugs efforts? What evidence can you find to suggest the Patriot Act is helping our war on drugs efforts, or conversely, having no impact at all?

  Explain how he constructs an argument

Discuss how David Crystal's book is a reaction to the official English movement in the United States.

  Describe define and analyze ellwood''s seven types

Describe, define and analyze Ellwood's seven types of new religious movements in 350-500 words.

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