Question: I have a programming assignment using Eclipse that I am very confused about. Here are the instruction in a Pictiure, and below are the copy

I have a programming assignment using Eclipse that I am very confused about. Here are the instruction in a Pictiure, and below are the copy and paste items from the assigment to make your job easier. I have been stuck on this for a week, so could someone help me to write the code? Thanks.

 I have a programming assignment using Eclipse that I am veryconfused about. Here are the instruction in a Pictiure, and below are

 --Available Harwood Types-- LAM [Laminate] OAK [Solid oak] CHE [Solid antique cherry] Enter your type choice: 

public static int computeLaminate(boolean hasBaseboard)

public static int computeSolidOak(int rooms, boolean hasBaseboard)

public static int computeSolidAntiqueCherry(int rooms, int numCoatingLayers, boolean hasBaseboard)

--Available Harwood Type-- LAM [Laminate]

OAK [Solid oak] 
CHE [Solid antique cherry] 
Enter your type choice:LAM 

Do you have baseboard? (YES/NO) YES Your cost is $5500.00

--Available Harwood Type-- LAM [Laminate]

OAK [Solid oak] CHE [Solid antique cherry] 

Enter your menu choice: OAK Do you have baseboard? (YES/NO) NO Enter the number of rooms: 2 Your cost is $7200.00

A hardwood flooring company calculates the cost of installation for 1000 square feet according to the following table Basic laminate Solid oak Solid antique cherry $5000 $7000 $100 per room $9000+$75 per room $750 for additional coating for up to 4 layers $400 for any extra layers for additional coating beyond 4 layers 10% of the cost Baseboard Using Eclipse, write a Java program that contains one class named HarwoodCostCalculator. This class will contain a Java program that computes the cost of hardwood floor installation according to the values given above You need to get the following input data from user: The type of hardwood (laminate, oak or cherry) If the type of hardwood is not laminate, the number of rooms . If the type of hardwood is cherry, the number of coatings purchased Whether the customer wants baseboard or not (all types) . You may assume that all input numerical data is of the proper form and will not contain negative values Depending on the input data value(s), the program will calculate and display the amount of the cost for the user. The hardwood type will be entered at the keyboard as three letters ("LAM" for laminate, "OAK" for oak, "CHE" for cherry). If the user enters a type that doesn't match the three accepted entries, do not compute a cost; just output an error message. All numerical values (number of rooms and coating layers) are entered as integers. The baseboard question will be answered with the string "YES" or "NO". If the user enters an answer that does not match these strings, then output a warning and assume the answer is "NO". Your program should ask only those questions that are necessary to determine the total cost

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!