Question: Writ a Java program as follows: Prompt the user which action they want to take: Convert cubic feet to U.S. bushels Convert miles

Writ a Java program as follows:

  1.  Prompt the user which action they want to take:
    1. Convert cubic feet to U.S. bushels
    2.  
    3. Convert miles to kilometers
    4.  
    5. Determine graduation with honors title
    6.  
    7. Exit program

(2) Program at a minimum must have the following methods:

(a) Convert square feet method gets square feet and returns U.S. bushels

(b) Convert miles to kilometers methods gets miles and returns kilometers

(c) Determine graduation with honors title method gets GPA and returns honors title

  1. For each action, the user should be prompted for corresponding data and given theappropriate output
  2. Usershouldbeabletoselectone actionandthengetpromptedagain forselectionuntil theyselect exit choice

Usethefollowingforcalculationsor categorydetermination

  • Toconvertfrom cubicfeetto U.S.bushels usethe formula:1cubic foot=0.803564U.S. bushel
  • Toconvertfrommilestokilometersusethefollowingformula:1mile=1.60934km
  • TodeterminegraduationwiththeHonorstitle,create amethodthatusesaswitchstatement andthefollowingranges
  • Forcategoriesuse:
    • Cum Laude 3.5-3.7
    • MagnaCum Laude 3.8-3.9
    • SummaCum Laude4.0+

Testprogram:

A minimum of 4 test cases should be supplied in the form of a table with columns indicating theinput values, expected output, actual output, and if the test case passed or failed. This tableshould contain 4 columns with appropriate labels and a row for each test case. An exampletemplate is shown below. Note that the actual output should be the actual results you receivewhenrunning yourprogramand applyingthe inputforthetest record.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Heres an example Java program that implements the requirements you described java import javautilScanner public class Main public static void mainString args Scanner scanner new ScannerSystemin int ch... View full answer

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!