Dinah Shore of Shore We Can Building is attempting to determine the cost for building a custom lumber dog house. Each dog house starts at a cost of $1000. Each house has a different possible size in square feet, which the user will enter. The size in square feet must be in the range of 1200-2000 inclusive. However, since each dog house is made from found wood, the actual size of the dog house varies depending on the materials they have on hand. Once the size has been entered, create a random number to determine the actual size the house will be. This size number should be in the range of 800 to 2200. If the actual size of the dog house is over the square footage the user entered, they only get charged $3 per square foot. If the actual size is equal to or under the square footage entered they get charged $4 per square foot. The program should calculate the total cost for the dog house. The output for this program must include the customer’s name, entered size, actual size and total cost, in that order. The program should also inquire as to whether the user would like to continue running the program. If they would like to continue, the user should enter continue, any other response should end the program. You must create a main function to use, as well as 4 other functions for this program.

Operations Research : Applications and Algorithms
4th Edition
ISBN:9780534380588
Author:Wayne L. Winston
Publisher:Wayne L. Winston
Chapter19: Probabilistic Dynamic Programming
Section19.4: Further Examples Of Probabilistic Dynamic Programming Formulations
Problem 7P
icon
Related questions
Question
100%

Dinah Shore of Shore We Can Building is attempting to determine the cost for
building a custom lumber dog house. Each dog house starts at a cost of $1000. Each
house has a different possible size in square feet, which the user will enter. The size
in square feet must be in the range of 1200-2000 inclusive. However, since each dog
house is made from found wood, the actual size of the dog house varies depending on
the materials they have on hand. Once the size has been entered, create a random
number to determine the actual size the house will be. This size number should be in
the range of 800 to 2200. If the actual size of the dog house is over the square
footage the user entered, they only get charged $3 per square foot. If the actual size
is equal to or under the square footage entered they get charged $4 per square
foot. The program should calculate the total cost for the dog house. The output for
this program must include the customer’s name, entered size, actual size and total
cost, in that order. The program should also inquire as to whether the user would like
to continue running the program. If they would like to continue, the user should enter
continue, any other response should end the program. You must create a main function to use, as well as 4 other functions for this program.

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Mathematical functions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Operations Research : Applications and Algorithms
Operations Research : Applications and Algorithms
Computer Science
ISBN:
9780534380588
Author:
Wayne L. Winston
Publisher:
Brooks Cole
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr