{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

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

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

View Full Document Right Arrow Icon
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.)
Image of page 1
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    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.

    Student Picture

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

  • Left Quote Icon

    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.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    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.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern