Question: 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!



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: (5 points)

Project name: FuelCosts

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: (5 points)

Project name: RectangleInfo

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: (5 points)

Project name: MetricConverter

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 Graduate or Extra Credit: (3 points)

Project name: HighorLow

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

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!