Question: (32 points) Problem 4-Write a program. Submit gift_wrap.c Gifts And More is a store that offers giftwrapping for items in rectangular shaped boxes. Customers can
(32 points) Problem 4-Write a program. Submit gift_wrap.c Gifts And More is a store that offers giftwrapping for items in rectangular shaped boxes. Customers can either buy standard wrapping paper or holiday wrapping paper. The owner of this store wants customers to be able to know how much they will spend on wrapping paper before they get to the counter in order to speed up the check out process. Standard wrapping paper costs $1 per square inch and holiday edition wrapping paper costs $2 per square inch. Customers are expected to enter measurements of the rectangular shaped box themselves. *Hint: look up the formula for surface area of a rectangular prism to calculate how much actual wrapping paper you need Example Program Run 1: ***Hello! Please pick from the following options:*** 1) Buy standard wrapping paper press 1 2) Buy holiday edition wrapping paper-press 2 1 You have selected standard wrapping paper. Please enter the size of your gift (in inches): Length: 2 Height: 5 Width: 4 You will pay $76 at the counter. Thank you for shopping with us! Example Program Run 2: ***Hello! Please pick from the following options:*** 1) Buy standard wrapping paper-press 1 2) Buy holiday edition wrapping paper-press 2 2 You have selected holiday wrapping paper. Please enter the size of your gift (in inches): Length: 2 Height: 5 Width: 4 You will pay $152 at the counter. Thank you for shopping with us
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
