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:
- Prompt the user which action they want to take:
- Convert cubic feet to U.S. bushels
- Convert miles to kilometers
- Determine graduation with honors title
- 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
- For each action, the user should be prompted for corresponding data and given theappropriate output
- 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
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
Get step-by-step solutions from verified subject matter experts
