A Java Program
- or -
Post a project like this3527
$20
- Posted:
- Proposals: 6
- Remote
- #545391
- Awarded
Description
Experience Level: Entry
General information for the business: Test Code
Kind of development: New program from scratch
Description of every module: See extra notes.
Description of requirements/functionality: See extra notes.
OS requirements: Windows
Extra notes: Write a Java-like pseudocode based on one of the following scenarios. If your last name begins with the letters A–H, use Scenario 1. If your last name begins with the letters I–N, use Scenario 2. If your last name begins with the letters O–Z, use Scenario 3..
Several examples of pseudocode can be found by searching the Internet. Find a format that you like and include the website in your reference list at the end of your post. Because you are learning Java, try to find pseudocode that is Java-like by searching for Java pseudocode.
Scenario 1
Write Java-like pseudocode to specify the logic for the following program application:
Write an application for a furniture company. The program determines the price of a table. Ask the user to choose 1 for pine, 2 for oak, or 3 for mahogany. The output is the name of the wood chosen as well as the price of the table. Pine tables cost $100, oak tables cost $225, and mahogany tables cost $310. If the user enters an invalid wood code, set the price to 0.
Include a prompt in the application to ask the user to specify a (1) large table or a (2) small table, but only if the wood selection is valid. Add $35 to the price of any large table, and add nothing to the price for a small table. Display an appropriate message if the size value is invalid, and assume the price is for a small table.
Scenario 2
Write Java-like pseudocode to specify the logic for the following program application:
Write an application for a college admissions office. Prompt the user for a student’s numeric high school grade point average (e.g., 3.2) and an admission test score from 0 to 100. Display the message “Accept” if the student has either of the following:
A grade point average of 3.0 or above and an admission test score of at least 60
A grade point average below 3.0 and an admission test score of at least 80
If the student does not meet either of the qualification criteria, display “Reject”.
If a user enters a grade point average under 0 or over 4.0, or a test score under 0 or over 100, an error message appears instead of the “Accept” or “Reject” message.
Scenario 3
Write Java-like pseudocode to specify the logic for the following program application:
Write an application that prompts an employee for an hourly pay rate and hours worked. Compute gross pay (hours times rate), withholding tax, and net pay (gross pay minus withholding tax). Withholding tax is computed as a percentage of gross pay based on the following:
Gross Pay ($) Withholding (%)
0 to 300.00 10
300.01 to 400.00 12
400.01 to 500.00 15
500.01 and over 20
Kind of development: New program from scratch
Description of every module: See extra notes.
Description of requirements/functionality: See extra notes.
OS requirements: Windows
Extra notes: Write a Java-like pseudocode based on one of the following scenarios. If your last name begins with the letters A–H, use Scenario 1. If your last name begins with the letters I–N, use Scenario 2. If your last name begins with the letters O–Z, use Scenario 3..
Several examples of pseudocode can be found by searching the Internet. Find a format that you like and include the website in your reference list at the end of your post. Because you are learning Java, try to find pseudocode that is Java-like by searching for Java pseudocode.
Scenario 1
Write Java-like pseudocode to specify the logic for the following program application:
Write an application for a furniture company. The program determines the price of a table. Ask the user to choose 1 for pine, 2 for oak, or 3 for mahogany. The output is the name of the wood chosen as well as the price of the table. Pine tables cost $100, oak tables cost $225, and mahogany tables cost $310. If the user enters an invalid wood code, set the price to 0.
Include a prompt in the application to ask the user to specify a (1) large table or a (2) small table, but only if the wood selection is valid. Add $35 to the price of any large table, and add nothing to the price for a small table. Display an appropriate message if the size value is invalid, and assume the price is for a small table.
Scenario 2
Write Java-like pseudocode to specify the logic for the following program application:
Write an application for a college admissions office. Prompt the user for a student’s numeric high school grade point average (e.g., 3.2) and an admission test score from 0 to 100. Display the message “Accept” if the student has either of the following:
A grade point average of 3.0 or above and an admission test score of at least 60
A grade point average below 3.0 and an admission test score of at least 80
If the student does not meet either of the qualification criteria, display “Reject”.
If a user enters a grade point average under 0 or over 4.0, or a test score under 0 or over 100, an error message appears instead of the “Accept” or “Reject” message.
Scenario 3
Write Java-like pseudocode to specify the logic for the following program application:
Write an application that prompts an employee for an hourly pay rate and hours worked. Compute gross pay (hours times rate), withholding tax, and net pay (gross pay minus withholding tax). Withholding tax is computed as a percentage of gross pay based on the following:
Gross Pay ($) Withholding (%)
0 to 300.00 10
300.01 to 400.00 12
400.01 to 500.00 15
500.01 and over 20
Joshua B.
96% (10)Projects Completed
13
Freelancers worked with
9
Projects awarded
80%
Last project
9 Apr 2020
Kuwait
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies