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.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
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
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education