Question: Import the Scanner. Then instantiate a Scanner variable and use it to ask the user for the length, width, and wood type of the table

Import the Scanner. Then instantiate a Scanner variable and use it to ask the user for the length, width, and wood type of the table they would like built. For instance the program interaction might look like:
What sort of table do you want?
4
8
Maple
=== STEP 8: Branching
Write code to check if the area of the table is greater than 48, and, if so, print a message informing the user that there will be an extra fee for a table that large.
Use an else statement to otherwise print a message that the regular fee applies.
=== STEP 9: and and or
Write an if statement and use or || to check if either of the dimensions (length or width) is larger than 12. If so, print a message that this table will have to be cut on a special saw.
Write another if statement to check if the name of the wood is "Teak" or "teak" and if so, print a message that this is a fancy table!
Note that String equality is not compared with == in Java. See here for more information

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