{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

HW02 - ENGR131 Homework 2 Selection Due at 11:59 PM on...

This preview shows page 1. Sign up to view the full content.

ENGR131 – Homework 2: Selection Due at 11:59 PM on Tuesday September 18, 2007. Submit both .java files using the Assignments page in Blackboard (do not use the dropbox as before). Instructions for uploading are available on the MediaVision site. Grading: Problem 1a (20 pts). Problem 1b (30 pts). Problem 2 (40 pts). General (10 pts). Instructions: Though the main focus of this assignment is the use of “if” statements, you will also work with user input through both the console (Problem #1) and a GUI (Problem #2). The two key features of an “if” statement are the boolean condition and the body. Additionally, “if” statements can be combined in different ways to handle complex program flows (paths). 1. Write a program that uses console input to evaluate whether a water temperature sensor is working correctly. a. Prompt the user to enter a temperature for the water in degrees Celsius. The temperature should be a real value as opposed to an integer. Display a message indicating whether the water should be boiling or not boiling based on the temperature. (Water boils at 100 °C.)
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern