Question: please write the code in java and explain You have moved into a new apartment and are trying to calculate the total cost of new

please write the code in java and explain  please write the code in java and explain You have moved
into a new apartment and are trying to calculate the total cost
of new furniture to buy. Write a program that depending on the

You have moved into a new apartment and are trying to calculate the total cost of new furniture to buy. Write a program that depending on the user's requests for furniture and customization, will result in a correct total cost for all the furniture to purchase. The following tables are the prices of each piece of furniture that can be purchased. Note that only one type of furmiture per category can be purchased, and each piece of furniture costs different depending on its customization. The customization for each fumiture piece can be referenced by assigning a number to each option (e.g. 1 - Rustic, 2 - Metal, 3 - Glass). Your program should ask the user whether they want a specific furniture piece, and if they do, ask which customization option they want. After doing this for all four furniture pieces, your program will display the total cost. Below are some sample executions of the program: The customization for each furniture piece can be referenced by assigning a number to each option (e.g. 1 - Rustic, 2 - Metal, 3 - Glass). Your program should ask the user whether they want a specific furniture piece, and if they do, ask which customization option they want. After doing this for all four furniture pieces, your program will display the total cost. Below are some sample executions of the program: Would you like to purchase a coffee table (true/false)? false Would you like to purchase a sofa (true/false)? false Would you like to purchase a kitchen stool (true/false)? false Would you like to purchase a bed frame (true/false)? false The total cost of furniture to purchase is $ Would you like to purchase a coffee table (true/false)? true Would you like (1 - Rustic, 2 - Metal, or 3 - Glass)? 1 Would you like to purchase a sofa (true/false)? true Would you like (1 - U-Shaped, 2 - Sectional, or 3 - Sleeper)? 2 Would you like to purchase a kitchen stool (true/false)? true Would you like (1 - Leather, 2 - Metal, or 3 - Wooden)? 3 Would you like to purchase a bed frame (true/false)? true Would you like (1 - King, 2 - Queen, or 3 - Twin)? 1 The total cost of furniture to purchase is $986 Would you like to purchase a coffee table (true/false)? false Would you like to purchase a sofa (true/false)? true Would you like (1 - U-Shaped, 2 - Sectional, or 3 - Sleeper) 3 Would you like to purchase a kitchen stool (true/false)? false Would you like to purchase a bed frame (true/false)? true Would you like ( 1 - King, 2 - Queen, or 3 - Twin)? 2 The total cost of furniture to purchase is $830

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!