Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

Homework 1

image text in transcribed

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.00

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Database Programming With Visual Basic.NET

Authors: Ying Bai

1st Edition

0521712351, 978-0521712354

More Books

Students also viewed these Databases questions

Question

Developing and delivering learning that is integrated with the job.

Answered: 1 week ago

Question

Use of assessments to determine trainees learning styles.

Answered: 1 week ago

Question

7. Discuss the advantages of embedded learning.

Answered: 1 week ago