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.
Max Function
Statistical function is of many categories. One of them is a MAX function. The MAX function returns the largest value from the list of arguments passed to it. MAX function always ignores the empty cells when performing the calculation.
Power Function
A power function is a type of single-term function. Its definition states that it is a variable containing a base value raised to a constant value acting as an exponent. This variable may also have a coefficient. For instance, the area of a circle can be given as:
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
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.

Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images









