Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask English Expert

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

English, Academics

  • Category:- English
  • Reference No.:- M91844305
  • Price:- $20

Priced at Now at $20, Verified Solution

Have any Question?


Related Questions in English

Please send directions guidelines and prompt questions for

Please send Directions, Guidelines and Prompt Questions for your Writing Assignment # 1 on William Wyler's film, The Letter in a folder titled, "Writing Assignments" in Files. Directions and Guidelines This writing assig ...

Discussion a lack of awareness of cultural differences or

Discussion : A lack of awareness of cultural differences or the assumption by one cultural group that another is inferior often results in painful personal and social encounters. Apply this thesis to discuss how this lac ...

Overview the research paper is to be approximately four

Overview: The research paper is to be approximately four pages long each (double spaced) not including the citations. For information on how to prepare the citations. Your research paper should include specific examples ...

Question what you think is significance of the title of

Question : What you think is significance of the title of this play: This Random World? In your answer, please give an example from the script itself; and then imagine, postulate, and suggest how another specific "random ...

Question you are working on researching your topic for the

Question: You are working on researching your topic for the persuasive essay, which will require you to support your main points with facts, examples, and quotes from secondary sources. This assignment helps you get star ...

Question this week you will be changing gears and moving

Question: This week, you will be changing gears and moving from narrative writing to beginning on the informative paper. For this assignment, please review the directions for the Week 5 assignment and think of a topic yo ...

Chose an age level within the birth to age 8grade 3

Chose an age level within the Birth to Age 8/Grade 3 group. Choose five different types of modern fantasy books for that age level. Create a 10-15 slide presentation that introduces the learners to selections and activit ...

Write a one-page not including cover and reference pages

Write a one-page (not including cover and reference pages) APA-formatted report on two of the following four topics: Topic 1: Open Skies - Explain what is meant by "Open Skies," and discuss the evolution of these interna ...

Question i just need the document in a clear well written

Question: I just need the document in a clear well written single spaced. 1-2 pages is fine more is okay just make the information flow. • Describe an example of technical writing that you have written or encountered in ...

In discussion forum 1 post your response to the following

In Discussion Forum 1, post your response to the following discussion question. Reply to at least two classmates' responses by the date indicated in the Course Calendar. Chapters 7 through 10 of the section "Growing Up" ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As