Question
A student organization is selling t-shirts as one of their fund-raising activities. The t-shirts they are selling are for both male and female with a
A student organization is selling t-shirts as one of their fund-raising activities. The t-shirts they are selling are for both male and female with a variety of sizes and design. The following age group, average sizes and price range are provided in the table below: KIDS (Ages 3 to 12) Small Medium Large X-Large Chest(inches) 27-29.4 29.5-31.4 31.5-35.4 35.5-38 Price PhP 350.00 TEENS (13 to 20) Extra Small Small Medium Large X-Large Chest(inches) 31-32.5 32.6-34.5 34.6-36.5 36.6-38.5 38.6-40 Price PhP 370.00 WOMEN (Ages 21 and Up) X-Small Small Medium Large X-Large 2X-Large Chest(inches) 31-32.5 32.6-34.5 34.6-37.4 37.5-39.4 39.5-43.4 43.5-46 Price PhP 370.00 PhP 380.00 PhP 390.00 MEN (Ages 21 and Up) Small Medium Large X-Large 2X-Large Chest(inches) 35-36.5 36.6-40.5 40.6-44.5 44.6-49.4 49.5-52 Price PhP 380.00 PhP 390.00 PhP 400.00 Write a program in C language that shall ask for the Age, Gender and Chest Size. After entry of the necessary information, it shall then display the following: a. T-Shirt Size b. Corresponding Size of the shirt c. Price of the shirt After displaying the t-shirt details as response to the entered data, have your program further perform the following
a. ask user if continue with purchase or not.
b. If the user does not desire the purchase, have the program display. Thank You! Have A Nice Day!!!
c.If the user desires to purchase, do the following:
i. Ask for the number of items to be purchased from displayed information.
ii. Compute and show total cost of order.
iii. Prompt the user for payment and give change when necessary. Note: The cash payment of the user must not be less than the total cost for purchase of the t-shirt.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started