Create an algorithm that you will use to write the program

Assignment Help Computer Engineering
Reference no: EM133641014

Homework

Write a Java program that generates a random number between 50 and 150 that represents the temperature in Celsius of a pot of boiling water on a stove, and determine if the water is hot enough to cook the following vegetable:

Beans: cook at 100 degrees Celsius

I. Inputs: The program must prompt the user for the temperature that beans cook at.

Enter the temperature in Celsius that beans cook at:

II. Output: The program should tell the user if the water is hot enough to cook the beans.

The water temperature is <temp> Celsius and is <hot or not hot> enough to cook beans.

III. Example of a program run: Run the program three times and take a screen snipit after each run.

Step I: Create an algorithm (either flowchart or pseudocode) that you will use to write the program. Place the algorithm in a Word document.

Step II: Code the program in Eclipse and test the program to verify it works correctly.Be sure to run the program three times.

Step III: Use the Snip It tool in Windows or a similar tool on the Mac to cut and paste the Eclipse Console output window into the same Word document as the algorithm in Step 1.

Note: the water temperature you show will be different than below because it is a random number.

Note: be sure to checkout the Chapter 3 videos and tutorial on how to generate random numbers in a specific range.
When you finish the homework you will need to submit two files to for grading:

I. Word document with your algorithm pseudocode, flowchart, or use case for the program, along with a screen shot of the program running on your computer.

II. The source code file you created containing the java class for the program. This file is located in the folder where you stored your program and it has the file extension name of "java".

Reference no: EM133641014

Questions Cloud

How does the testing for hiv work : How does the testing for HIV work? Christina learns that she has tested positive for the HIV antibody. What would you tell (teach) Christina about HIV?
Alcoholics anonymous or some equivalent treatment program : The employee recently got a DUI while driving a company vehicle and mandates that the employee attend Alcoholics Anonymous or some equivalent treatment program
Define left-side neglect : Define left-side neglect. How might left-side neglect affect the individual. What are some treatment options for the individual.
What do you think about hector berlioz with his symphonie : what do you think about Hector Berlioz with his Symphonie fantastique he titled "March au supplice" ("March to the Scaffold").
Create an algorithm that you will use to write the program : Create an algorithm (either flowchart or pseudocode) that you will use to write the program. Place the algorithm in a Word document.
What is learned about right hemisphere disorder : What is learned about right hemisphere disorder and practice the clinical skill of educating your students/patients/clients and their care teams.
Origins of the tale of little red riding hood as a story : origins of the tale of Little Red Riding Hood as a story that was designed to warn the ladies of the French Court about their behavior. This is an example
Difference between retail and institutional traders : You learned about the difference between retail and institutional traders.
What are the key challenges and opportunities in the texas : What are the key challenges and opportunities in the Texas educational system, and how do educational policies impact student outcomes, teacher quality

Reviews

Write a Review

Computer Engineering Questions & Answers

  Evaluate the history of the data encryption standard

Evaluate the history of the Data Encryption Standard (DES) and then how it has transformed cryptography with the advancement of triple DES.

  How data will be moved around the application

Considering the scenario given below, draw a partial UML class diagram that captures the scenario. You should include the necessary classes, class attributes

  Analyze the local impact of computing on individuals

Analyze the local impact of computing on individuals. Analyze the local impact of computing on organizations and society.

  What is the main contributing factor leading to the location

What is the main contributing factor leading to the location of the proposed raw material factory and Is the location of the proposed raw material factory

  What is the sop and pos

State whether the following identities are in normal POS form, normal SOP form.

  Determine the attenuation at the passband corner

Give an approximate value for delay error realized in the passband. (The passband is the frequency range where the delay is approximately constant.)

  Modify a program three numbers representing temperature

Write down a program that accepts three numbers representing temperature, relative humidity, and wind speed; assigns the value true or false to the boolean variable okToSpray according to these criteria; and displays this value.

  What is dft of a pure cosine wave cos

What is DFT of a pure cosine wave cos(t) sampled at n equally spaced points on the interval [0, 2π)?

  Group of data elements that describes a single entity

Which of the following data structures is a group of data elements that usually describes a single entity or event.

  Draw the moore type fsm slate diagram

Overlaps must be considered Also, assume that the reset suite is one in which you know nothing about the history of the sequence.

  What are the possibilities afforded when we introduce loose

What are the possibilities afforded when we introduce loose parts?

  How much of workflow has been automated at your university

Indicate possible errors (including deadline expiry) and how they are dealt with. Study how much of the workflow has been automated at your university.

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