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

Info iconThis 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
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/10/2008 for the course ENGR 131 taught by Professor Xiaowei during the Spring '07 term at Case Western.

Ask a homework question - tutors are online