Question: can someone help me with this. the language is java The program should call a void method to display a welcome message. Include your name

can someone help me with this.
the language is java
 can someone help me with this. the language is java The
program should call a void method to display a welcome message. Include
your name as the table builder. The program should call an integer
method to dispay a menu of the shapes of the table. The
menu should display Rectangular, Circular, Trapezoid and End Program The method must
assure that the menu item entered is valid. If an invalid entry
is made, the method should display an error message, redisplay the menu

The program should call a void method to display a welcome message. Include your name as the table builder. The program should call an integer method to dispay a menu of the shapes of the table. The menu should display Rectangular, Circular, Trapezoid and End Program The method must assure that the menu item entered is valid. If an invalid entry is made, the method should display an error message, redisplay the menu and allow for reentry Once the user enters a valid entry for a table, the method returns the entry to main Inside main, the program must use a switch statement for the next steps If the user selects Rectangular The program must allow entry of the length and the width. The program must validate the entry (both sides must be > 0). The program calls an OVERLOADED method to calculate the total area (area = length width). Once the calculation is done, the method retums the area to main. If the user selects Circular o The program must allow entry of the diameter. The program must validate the entry (must be > 0). NOTE: The program must allow entry of the diameter. It is NOT correct to enter in the radius. In the real world, the radius cannot be accurately measured. The program calls an OVERLOADED method to calculate the total area (area = PI * radius * radius). Once the calculation is done, the method returns the area to main. NOTE: use the construct Math Pl to get the Java library version of PI If the user selects Trapezoid (see area calculation below) o The program must allow entry of the short base, the long base and the height. The program must validate all of the entries (must be > 0). The program calls an OVERLOADED method to calculate the total area (area = (short+long)2" height). Once the calculation is done, the method returns the area to main. Once the area is calculated, the code should call a method to ask the user what type of material they want to use: O The method displays a menu with two options Option 1 is laminate - the laminate costs $0.125 per square inch Option 2 is oak-oak costs $0.25 per square inch The method must validate the entry of the choice. If the menu entry is invalid, the method must display an error message, redisplay the menu and allow reentry of the option Once a valid option is selected, the method returns the value to main Once the material option is returned, the program will calculate the cost of the table. The cost is defined as the number of square inches * cost per square inch based on the type of material selected. The program then calls a method to display the estimate. The display indudes: A title The calculated area of the table The type of the material for the table The cost of the table The program needs to keep track of the total number of estimates that have been requested and it must keep track of the total cost of all of the estimates. Once the output is displayed the menu redisplays and allows a new estimate to be requested. Once the user selects End Program, the program will call a method to display the final estimation report If the user only asked for one table, the output will display the final total estimate with table as singular If the user asked for multiple tables, the output will display the number of tables (with tables plural) and the total cost If the user did not request any estimates at all the program display a message stating that If the user purchased more than $1000, the estimate has a discount of 5% If the user purchased more than $3000, the estimate has a discount of 10% The method should call another method to determine the discount. If the discount is greater than 0, the method should display the discount amount and the final total Display a final goodbye message and end the program Remember to close out the Scanner object All numbers should be declared as public static final values, make sure that there are no hard-coded numbers anywhere in the code Additional Requirements The final product should have the main method and the following additional methods (9 total in addition to main) Void method to display the welcome message Integer method to display the menu and input the shape of the table Three, overloaded double methods to calculate the area Integer method to display the menu and input the material Void method to display the output report for the individual table . Void method to display the final estimate total with discount (if applicable) and a goodbye message Double method to calculate the discount A Javadoc comment must appear at the top of the source code containing: Your name, course number and section (001, 002... for daytime, 050, 051,... for evening), and a brief description of what the program does. An end-of-line comment must appear after each closing brace describing the block being closed Proper indentation must be used. The source file and a screenshots must be submitted. The files should be uploaded through CANVAS. I will not accept email attachments. Sample output is below and trapezoid area calculation is below. EXTRA CREDIT . . For 5 points of extra credit , create a common method that can be used to do all of the validity checking for all double inputs. For an additional 5 points of extra, extra credit, make the validation method "smart" instead of generic. In other words, don't just have a generic "Error - the value must be greater than zero, please reenter" when the validation fails, send the appropriate data to the method so that the error message is specific: "Error - the length must be greater than zero, please reenter". This will require an additional parameter to be sent to the method. Area of a Trapezoid d A = 1/(a+b)h Welcome to Tables are Us Your One Stop Table Shop John Smith Master Table Builder What shape of table do you wish to build? 1. Rectangular 2. Circular 3. Trapezoid 4. End Program Enter menu entry: Error Invalid Entry. Please reenter a valid menu option What shape of table do you wish to build? 1. Rectangular 2. Circular 3. Trapezoid 4. End Program Enter menu entry: I What shape of table do you wish to build? 1. Rectangular 2. Circular 3. Trapezoid 4. End Program Enter menu entry Enter the short base of the table (in inches): -2 Error - the short base must be greater than zero. Enter the short base of the table (in inches): 36 Enter the long base of the table (in inches): 48 Enter the height of the table (in inches): 36 Please reenterll what type of material do you want to use? 1. Laminate ($0.125 per square inch) 2. Oak ($0.25 per square inch) Enter menu entry: Error Invalid Entry. Please reenter a valid value What type of material do you want to use? 1. Laminate ($0.125 per square inch) 2. Oak ($0.25 per square inch) Enter menu entry: 2 Output Report: The area of the table is 1512.00 square inches The table will be made of Oak The cost of this table is $378.ee The total cost of the 1 table you estimated is $378.00 Thank you for using the table cost estimation program! Goodbye!! I SESULTU APSILLY REUTELEVISI 1. Rectangular 2. Circular 3. Trapezoid 4. End Program Enter menu entry: Enter the length of the table (in inches): 96 Enter the width of the table (in inches): 182 What type of material do you want to use? 1. Laminate ($0.125 per square inch) 2. Oak ($0.25 per square inch) Enter menu entry: Output Report: The area of the table is 9792.00 square inches The table will be made of Oak The cost of this table is $2448.00 What shape of table do you wish to build? 1. Rectangular 2. Circular 3. Trapezoid 4. End Program Enter menu entry: 4 The total cost of the 1 table you estimated is $2448.ee Your discount is $122.40 Your final total is $2325.60 Thank you for using the table cost estimation program! Goodbye!! 4. End Program Enter menu entry: 2 Enter the diameter of the table (in inches): 95 What type of material you want to use? 1. Laminate ($0.125 per square inch) 2. Oak ($0.25 per square inch) Enter menu entry: 2 Output Report: The area of the table is 7238.23 square inches The table will be made of Oak The cost of this table is $1809.56 What shape of table do you wish to build? 1. Rectangular 2. Circular 3. Trapezoid 4. End Program Enter menu entry: 4 The total cost of the 2 tables you estimated is $3825.56 Your discount is $382.56 Your final total is $3443.ee Thank you for using the table cost estimation program! Goodbye

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 Databases Questions!