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

Using the following four resource documents prepare a case

Using the following four resource documents, prepare a case analysis regarding the premise "Airline Deregulation - 40 years Later - Pro or Con?" Airlines Move to Meet Regulatory Shifts (1978)/Aviation Week A Law That Cha ...

Question evaluate the cultural competence of the healthcare

Question: Evaluate the cultural competence of the healthcare organization presented in the Integrated Safety-Net Health Care System case study using a population health approach. Please also read the supplemental Interpr ...

Question commitment is very important in every work we do

Question: Commitment is very important in every work we do. If we commit to something that we will do, we must fulfill that commitment. Usually, we make commitment to the tasks to let others know that we will complete th ...

What is lust what is the difference between lust and love

What is lust? What is the difference between lust and love? Why is lust bad? Cite passages from bothOkholm and De Young. Describe what it means to think of love in terms of "gift", and explore how we might change aspects ...

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 ...

Read the two supporting documents focusing on airline

Read the two supporting documents focusing on airline globalization in 2018: Aviation Benefits: Contributing To Global Economic Prosperity/Uniting Aviation Aviation Benefits - 2017/ICAO (middle of page) Using the section ...

Read the following articles addressing the two space

Read the following articles addressing the two space treaties: "Outer Space Treaty of 1967" and "The Moon Treaty of 1979": The Outer Space Treaty Has Been Remarkably Successful - but Is It Fit for the Modern Age?/The Con ...

You have read the lottery by jackson and a good man is hard

You have read "The Lottery" by Jackson and "A Good Man is Hard to Find" by O''Connor. Now it is time to argue who does conflict better. In at least two well-structure paragraphs, please respond to the following prompt: W ...

Question your final draft must be added to the dropbox on

Question: Your final draft must be added to the dropbox on CourseDen (labeled "Essay One") by 8PM on the due date. Your final draft should be between 500-1000 words and should adhere to MLA format. Purpose: In this assig ...

Question part i the first part of this assignment will help

Question: Part I: The first part of this assignment will help you "flesh out" your topic. Take 10-15 minutes to free write about your topic. Chapters 4 and 5 in your textbook can help you decide what kind of free writing ...

  • 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