Reference no: EM132430809
Task 1: Project name: C to F Converter
Main file name: ctofConverter.java
A program that converts an inputted temperature in C and provides the equivalent temperature in F. Hint: Google is your friend! Given C, solve for F. Again, check for a valid input value and only respond with the F value if you got it, otherwise output an appropriate error msg to the user. Testing: 3 conditions: Bad Input, then test for the known freezing and boiling points.
EMBED SCREEN SHOT(S) OR COPY THE OUTPUT WINDOW OF NETBEANS
HERE SHOWING YOUR PROGRAM TEST RUN(S):
Task 2: Project name: Fuel Costs
Main file name: fuelCost.java
Write program that asks the user to input
The number of gallons of gas in the tank
- The fuel efficiency in miles per gallon
- The price of gas per gallon
Then print the cost per 100 miles and how far the car can go with the gas in the tank.
Again, check for valid input and exit with an error msg if you do not have it. Testing: here just use some reasonable values that you can inspect the calculations and determine they are correct. Be sure to check of integer calculations truncating the results.
EMBED SCREEN SHOT(S) OR COPY THE OUTPUT WINDOW OF NETBEANS HERE
SHOWING YOUR PROGRAM TEST RUN(S):
Task 3: Project name: Rectangle Info
Main file name: rectInfo.java
Write program that asks the user for the lengths of the sides of a rectangle. Again, check for valid input and exit with an error msg if you don't get it. Testing: use some known values to confirm that the calculations are correct. E.g. 3 - 4 - 5 triangle >> 3 X 4 rectangle
Then print
- The area and perimeter of the rectangle
- The length of the diagonal (use the Pythagorean theorem)
EMBED SCREEN SHOT(S) OR COPY THE OUTPUT WINDOW OF NETBEANS
HERE SHOWING YOUR PROGRAM TEST RUN(S):
Task 4: Project name: Metric Converter
Main file name: metric.java
Write program that prompts the user for a measurement in meters and then converts it to miles, feet, and inches. Again, check for valid input and exit with an error msg if you don't get it. Testing: use some known values here and watch for integer truncation.
EMBED SCREEN SHOT(S) OR COPY THE OUTPUT WINDOW OF NETBEANS
HERE SHOWING YOUR PROGRAM TEST RUN(S):
Task 5 Project name: High or Low
Main file name: highLow.java
Write program that has the computer generate a random int value between 1 to 10 inclusive. The program then asks the user to guess the number with a single guess. The program displays the random number and then indicates if the users guess was high low or on the money!