Question
Someone please help me with this immediately thank you so much. Post an initial response with pseudocode that addresses the appropriate scenario from the three
Someone please help me with this immediately thank you so much.
Post an initial response with pseudocode that addresses the appropriate scenario from the three listed below:
SCENARIO 1
Write pseudocode to plan the logic for an application for a furniture company. The program needs to determine the price of a table depending on the users input.
Prompt 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 made of that wood. Pine tables cost $120, oak tables cost $325, and mahogany tables cost $420.
If the user enters an invalid wood code, set the price to 0, and inform the user what the error is.
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 $50 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.
Include an explanation of your reasoning for writing the pseudocode the way you did.
SCENARIO 2
Write pseudocode to plan the logic for an application for a college admissions office.
Prompt the user for a students name, a students 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.5 or above and an admission test score of at least 70
A grade point average below 3.0 and an admission test score of at least 85
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, display an error message instead of the Accept or Reject message.
Include an explanation of your reasoning for writing the pseudocode the way you did.
SCENARIO 3
Write pseudocode to plan the logic for an application that calculates an employees pay statement.
Prompt the 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 | 0 |
300.01 to 400.00 | 3 |
400.01 to 500.00 | 5 |
500.01 and over | 8 |
Display hourly pay rate, hours worked, gross pay, withholding tax, and the net pay.
Include an explanation of your reasoning for writing the pseudocode the way you did.
Note: For each of the scenarios described above, you are not writing and submitting a completed Java application. Your goal is to develop the pseudocode of the applications logic. No Java code and .java class files, please.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started