*Problem 1: Carpet Sale Program Specifications Write a program to calculate the cost for replacing carpet...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
*Problem 1: Carpet Sale Program Specifications Write a program to calculate the cost for replacing carpet for a single room. Carpet is priced by square foot. Total cost includes carpet, labor and sales tax. Dollar values are output with two decimals. For example, print(f'Cost: ${cost:2f), Note: This program is designed for incremental development. Complete each step, take snapshots of the results, and include them in the final document you submit for grading. Template: import mathi #type your code adding plenty of comments for better understanding of the steps Step 1 (2 pts). Read from input the carpet price pe square foot (float), room width (int) and room length (int). Calculate the room area in square feet. Calculate the carpet price based on square feet with an additional 20% for waste. Output square feet and carpet cost. Ex: If the input is: 1.10 15 12 the output is Room: 180 sq ft Carpet: $237.60 Step 2 (2 pts). Calculate the labor cost for installation ($0.75 per actual square foot). Output labor cost. Ex: If the input is 0.95 10 16 the output is Room: 160 sq ft Carpet: $182.40 Labor: $120.00 *Problem 1: Carpet Sale Program Specifications Write a program to calculate the cost for replacing carpet for a single room. Carpet is priced by square foot. Total cost includes carpet, labor and sales tax. Dollar values are output with two decimals. For example, print(f'Cost: ${cost:2f), Note: This program is designed for incremental development. Complete each step, take snapshots of the results, and include them in the final document you submit for grading. Template: import mathi #type your code adding plenty of comments for better understanding of the steps Step 1 (2 pts). Read from input the carpet price pe square foot (float), room width (int) and room length (int). Calculate the room area in square feet. Calculate the carpet price based on square feet with an additional 20% for waste. Output square feet and carpet cost. Ex: If the input is: 1.10 15 12 the output is Room: 180 sq ft Carpet: $237.60 Step 2 (2 pts). Calculate the labor cost for installation ($0.75 per actual square foot). Output labor cost. Ex: If the input is 0.95 10 16 the output is Room: 160 sq ft Carpet: $182.40 Labor: $120.00
Expert Answer:
Answer rating: 100% (QA)
Heres a Python program that calculates the cost for replacing a carpet for a single room following t... View the full answer
Related Book For
Financial Algebra advanced algebra with financial applications
ISBN: 978-0538449670
1st edition
Authors: Robert K. Gerver
Posted Date:
Students also viewed these programming questions
-
In your own words, explain the concept of 'organisational control'. What are 'control systems' and why do we need them? Make use of Flamholtz's 1996 framework. 2. Browse the 2023 Netflix annual...
-
Managing Scope Changes Case Study Scope changes on a project can occur regardless of how well the project is planned or executed. Scope changes can be the result of something that was omitted during...
-
Busaba Domitila (Domi) invented a new digital camera and data-storage system that is smaller than a grain of rice. She has named it The Camerice. She designed a unique typeface and logo for all...
-
Find RL for maximum power transfer and the maximum power that can be transferred to the load in the circuit in figure. 1 mA 1 kn 2 mA RL 0.5 kn 1 kn 2 mA +)6 V
-
Air flows through a converging diverging nozzle between two large reservoirs, as in Fig. P9.65. A mercury manometer reads h = 15 cm. Estimate the downstream reservoir pressure. Is there a shock wave...
-
Show that P, the set of all polynomials, is a vector space?
-
Figure 26.8 shows that the thermal conductivity of \(\mathrm{S} 3\) and \(\mathrm{S} 4\) increased by \(30.25 \%\) and \(111.37 \%\) by adding \(5 \mathrm{wt} \%\) and \(10 \mathrm{wt} \%\) of silver...
-
Hesselwood Companys market research division has projected a substantial increase in demand over the next several years for one of the companys products. To meet this demand, the company will need to...
-
Suppose an investor is considering investing $X in a one-month portfolio consisting of ONE risk-free asset and ONE ACTUAL (not synthetic) risky asset. Suppose r f = 2%, E [ r r ] = 18%, and r = 3%....
-
BCE has included service revenue of $22,100 as a result of a number of one year service policies sold late in December as an experiment. These service policies became effective on January 1, 20X4, or...
-
The statement of financial position of Grand Hypermarket and Golden Supermarket at 31 Dec 2021 are as follows, Assets Non-Current Assets Property, plant and equipment Investment in Rocket LLC Total...
-
Today, you invested $ 1 , 0 0 0 in an investment with a promised rate of return of 1 2 % APR with weekly compounding. You plan to sell this investment in 2 0 years. How many weeks will your money be...
-
The purpose of this lab assignment is Problem Statement: 1. In Project 1, you will write a program to simulate a simple game named Nim: two players alternately take marbles from a pile. In each...
-
if you deposit $ 3 , 0 0 0 at the end of each quarter into an account which earns 1 0 % APR compounded monthlyhow much will be in this account after 3 years
-
(b) Fig. 1 illustrates the evolution of TCP's congestion window (cwnd). The unit of time (on the x-axis) is equal to the Round Trip Time (RTT). Reconstruct the sequence of events that explains TCP's...
-
Cash and cash equivalents Deposits Marketable securities Inventory Property & equipment, net Loan to shareholders Notes receivable Trade accounts receivable TOTAL ASSETS Sales tax payable Retained...
-
Convert the following concentrations as indicated: 2. 50 ppmv (parts-per-million on volume basis) HS in air at 1 atm and 20C as: (a) mol/L (b) mg/...
-
In a certain school district, 3% of the faculty use none of their sick days in a school year. Find the probability that 5 faculty members selected at random used no sick days in a given year.
-
Jamie wants to borrow $15,000 from South Western Bank. They offered her a 4-year loan with an APR of 5.5%. How much will she pay in interest over the life of the loan?
-
United Bank offers a 15 year mortgage at an APR of 6.2%. Capitol Bank offers a 25 year mortgage at an APR of 6.5%. Marcy wants to borrow $120,000. a. What would the monthly payment be from United...
-
Use a spreadsheet to determine the 7-day SMA for Citigroup Inc. 7-Apr 24.60 14-Apr 22.51 21-Apr 25.03 28-Apr 26.81 5-May 25.75 8-Apr 23.76 15-Apr 22.80 22-Apr 25.12 29-Apr 26.32 6-May 25.87 9-Apr...
-
A dimensionless grouping of variables and parameters that are important in pipe flow is called the Reynolds number: where $V$ is the average velocity over the cross section in a pipe of diameter $D$...
-
A layer of water is flowing down a flat plate that is inclined at an angle of $20^{\circ}$ to the vertical. If the depth of the layer is $1 / 4 \mathrm{in}$., what is the shear stress exerted by the...
-
Basic Concepts by considering the simple one-dimensional steady flow between two parallel plates, Figure 1.1. The area of each plate $A_{y}=1 \mathrm{~m}^{2}$ and the gap between the two plates is...
Study smarter with the SolutionInn App