Write a program to ask the user for the length of the room

Assignment Help C/C++ Programming
Reference no: EM132096027

Write a program to ask the user for the length of the room (in inches) to be carpeted, the width of the room (in inches) to be carpeted, and the price of a square foot of carpeting.

For both the length and width, make sure the number entered is a non-zero positive number, and continue to ask the user for the value until a valid number is entered.

For the price of a square foot of carpeting, make sure that the price is between $1.00 and $10.00 inclusive, and continue to ask for the price until a valid number is entered.

Then, using 5 different functions, calculate:

• The square footage of the room

• The number of hours required to carpet the room

• The price for the carpet to cover the room

• The labor charges to carpet the room

• The total cost to carpet the room

Create global constants for:

• The number of square feet that can be carpeted in 4 hours (65)

• The number of hours required to carpet 65 sq. ft. (4)

• The labor rate (25.00)

• The minimum carpet price (1.00)

• The maximum carpet price (10.00)

• Any other numbers used in your program

The program will display:

• The square footage of the room

• The number of hours to carpet the room

• The price for the carpet

• The labor charges

• The total cost to carpet the room

Reference no: EM132096027

Questions Cloud

Evidence of a problem in the area : Was it evidence of a problem in the area, or was it a chance? Can you verify this? Would Binomial or Poisson distribution be suitable for modeling this case?
Identify the rows who destination network has any chance : Identify the rows who destination network has any chance of matching the IP address (compare the first three octets)
Can you explain confidence interval to me : Can you explain confidence interval to me? For example: when someone is asking what is the 95% CI for age range in a sample.
What is the optimal order quantity : The following price schedule applies. What is the optimal order quantity? Show all total costs calculations and explain your answer.
Write a program to ask the user for the length of the room : Write a program to ask the user for the length of the room (in inches) to be carpeted, the width of the room (in inches) to be carpeted.
Population standard deviation : Estimate the mean height of females in the health profession. Use the given population standard deviation of 2.75 inches.
Rate of return of the index : Using the data below which represents the rate of return of a certain company stock for 11? months, compared with the rate of return of a certain index
Create a fraction class : Create a fraction class. This will have two attributes, a numerator and a denominator, both int.
Create a main method and use these input files to test : Create a main method and use these input files to test that you are able to input the Undergraduates, put them into an ArrayList, print out the list.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  How many times would you like to shuffle the sorted list

You are required to implement your designs in C++ Programming Language. Your program should be properly laid out and should be modular, making sure that software engineering aspects of modularity and reusability are fully considered.

  Prompt the user to enter the total capacity of the cage.

Determine when the farmer will have to separate the bunnies in order to prevent the birth of any more.

  Write a program to crypt its input accordingly

Write a program to crypt its input according to a specified transformation scheme

  Create a program with just one function

Create a program with just one function that uses the selection sort to sort a linked list IN C++

  Program to check the account status

Place the account record into an appropriate structure, and store the accounts in an array of structures.

  Program should read in the file and place periods

Create a C++ program that will read this file and correct errors in the English syntax of the file. The program should Read in the file and Place periods at the end of all sentences throughout this file

  Design a calculator program

Design a calculator program that will add, subtract, multiply, or divide two numbers input by a user. Your program design should contain the following: The main menu of your program is to continue to prompt the user for an arithmetic choice until th..

  Program that declares three variables minnum

Write a C++ program that declares three variables minNum, midNum and maxNum to receive three integers read from the keyboard.

  Program that declares three single dimensional arrays

In the gallons array store the numbers 10.3, 15.7, 14.9, 10.7 and 8.4. Each element of the mpg array should be calculated as the corresponding element of the miles array divided by the equivalent element gallons array; for example mpg[0] = miles [..

  Real time database for banking transactions

Design a real time database for banking transactions that would record actions of all transactions credited and debited. The algorithm should raise an alert to the bank manager in case any unauthorized debit is made. (model, algorithm and Cheddar ..

  What benefits do programmers get from doing this extra work

Discuss some reasons most programmers declare class data to be private and provide access to that data only through

  How would we secure a microsoft sql server

Your deliverables will require the highest level of professionalism. All of your deliverables should be presented as if your customers are paying you $225 per hour plus expenses plus per diem.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd