Lab 1 - Methods and User Input
Due: Friday, September 23 at 11:59pm

Introduction

This lab is designed to give you some experience using "conditionals", e.g., the "if statement". It is also designed to reinforce your understanding of methods and code re-use.

The Assignment

Please expand your solution to Lab #1, so that it prompts the user for two tempuratures, each with getTempFromUser(), decides which one is greater (using an if statement), converts the greater one to Centigrade (using fahrenheitToCentigrade()), and then displays on the screen, "XX Centigrade is the greater of the two tempuratures."

Sample Output

Below is an example run of the program. The user's input is shown in italics.

      Enter tempurature in Fahrenheit: 72
      Enter tempurature in Fahrenheit: 70
      21.2222222222 Centigrade is the greater of the two tempuratures.
    

Important note: Your result might be slightly different due to the precision of float-point-type numbers.

Submission

We'll talk about this on Friday.