Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

AT&T LTE 12:20 PM (-1 O 70% Lab 3 Output.txt Enter the price of the flooring per square feet Wood --> 5.50 Tile--> 7.75 Carpet-->

image text in transcribedimage text in transcribed image text in transcribed

AT&T LTE 12:20 PM (-1 O 70% Lab 3 Output.txt Enter the price of the flooring per square feet Wood --> 5.50 Tile--> 7.75 Carpet--> 1.25 Calculating the circular floor cost. Please enter the measurments Radius -- > 10 Wood 1727.88 Tile 2434.73 Carpet 392.70 Calculating the rectangular floor cost. Please enter the measurments Width -- > Height --> 10 Wood 489.50 Tile 689.75 Carpet 111.25 Calculating the triangular floor cost. Please enter the measurments Base -- >18 Height --> 10 Tile 697.50 Wood Carpet 112.50 495.00 Enter the price of the floorinq per square feet Wood -->12.35 Tile--> 20.45 Carpet->2.50 Calculating the circular floor cost. Please enter the measurments Radius -- > 7.5 Wood 2182.43 Tile 3613.81 Carpet 441.79 Calculating the rectangular floor cost. Please enter the measurments width -- > Dashboard Calendar To Do Notifications Inbox AT&T LTE 12:21 PM 70% Lab 3 Output.txt width -- > 8.9 Height --> 10 Wood 489.50 Tile 689.75 Carpet 111.25 Calculating the triangular floor cost. Please enter the measurments Base - 18 Height --> 10 Wood Tile 697.50 Carpet 112.50 495.00 Enter the price of the flooring per square feet Wood 12.35 Tile->20.45 Carpet--> 2.50 Calculating the circular floor cost. Please enter the measurments Radius -- > 7. Wood 2182.43 Tile 3613.81 Carpet 441.79 Calculating the rectangular floor cost. Please enter the measurments Width-- > 6 Height --> 10 Wood 741.00 Tile 1227.00 Carpet 150.00 Calculating the triangular floor cost. Please enter the measurments Base -- > 10 Height --> 20 Wood 1235.00 Tile 2045.00 Carpet 250.00 Good Bye Dashboard Calendar To Do Notifications Inbox Share Window Help CSC 15 floor chapter 3 lab Zoom insert Table Chart Text Shape Media You are to write a program that calculates the cost of flooring. Your program assumes that the user has three different rooms with three different shapes of square, circle and triangle. The user wants to get quotes for wood, tile and carpet flooring. Your program needs to collect the Following info 1. Measurements for each room 2. Cost per square feet for wood 3. Cost per square feet for tile 4. Fo Cost per square feet for carpet 5. Refer to sample output, your output should match this exactly Solution You need to create two separate java files, Floor, java and FloorClient.java. Before you start any coding, you must first complete the lab worksheet. When you begin to code, create a FloorDriver java file with a main method. In this method you will test your helper class Formatting your output: to format the output to two decimal points you should use System,out printf. Below is an overview of the lab activities Week 1 a. Complete lab worksheet b. Create FloorClient.java with main method only c. Create Floor.java with the first method you would like to implement d. Use SloorClient Java to test the method you implemented e. Continue c and d for the rest of the lab period 2. Week 2 a. Finish implementing methods in Floor.java b. Once the helper class is complete, remove the test code from FloorDriver,java and implement the driver class Test your program and check it against the sample output c. Deliverables Upload your completed worksheet (ChapteraLabWorksheet.dock), Floor java and FloorDriver.java MacBook Pro

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

Step: 3

blur-text-image

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

Google Analytics 4 The Data Driven Marketing Revolution

Authors: Galen Poll

2024th Edition

B0CRK92F5F, 979-8873956234

More Books

Students also viewed these Databases questions