Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Homework 1 Write the program in Java. In HWeu wrote a program that calculates the floor space for carpets and wall space for paint. In
Homework 1
Write the program in Java.
In HWeu wrote a program that calculates the floor space for carpets and wall space for paint. In this assignment you will add to that program. There is a budget assigned to the covering of the floor. There are four options for floor sexet (Ceramic Tile-1; Hardwood-2, Carpet-3; and linoleum tile 4) each with a cost per square foot. In addition the customer has a preference for which covering they would like. The program will ask for input and read in the budget in dollars and cents, the cost per square foot for each of the different floor options and also ask for which one the customer prefers where 0 means the customer does not care and 1-4 if they have a specific preference for one of the four floor coverings The program will then, based upon the square footage calculation, check if the users preference can be afforded (Hint use Switch statement), if not or the user selects O not caring, the program will start with the most expensive and check each flooring type until it finds the most expensive flooring that can be afforded. The program will output the type of flooring selected or a message that given the budget no flooring is affordable For all three renovation projects use the room and door, window and bookcase dimensions from Project 1 and use Tile $4.00 /sa ft Wood-$3.00 sa ft Carpet-$2.00 sa t and linoleum- $1.00/sq ft) Use the same three inputs from Homework 1 for areas. Use the following as the budget and preference Budget'preference RenovationRenovation 2 Renovation 3 User preference Budget 255.00 250.00 400.00Step 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