Introduction to C - Programming Assignment #5
Due date: Please consult WebCourses for your section
Objectives
1. Learn how to design a program using functions.
2. Review of if statements and loops.
Note: In this assignment, you are required to write one program.
Problem: Universally Comical Funland Unified (ucf.c)
Your internship with UCF has gone quite well so far. You’ve helped design software for many different areas of the park ranging from the roller coasters to the custom t-shirts and even the ever-popular UCF Idol attraction.
At some point however, your boss would like you to unify much of your work into a single large program so that the park can run more cohesively. Instead of adding any new functionality into your program, you’ll be using your recently learned skill of writing functions to make this large program more manageable.
In particular, you will write a menu-driven program that provides the user with the following options:
1) Gift Shop Shipping
2) Calorie Counter Application
3) Roller Coaster Design
4) Printing Heart T-Shirts
5) UCF Idol
6) Quit
Each of these options will mimic Program 2A, Program 2B, Program 2C, Program 3B, and Program 4, respectively. Thus, please consult these descriptions with respect to the functionality of your program. All input specifications and output specifications will remain the exact same as in the previous write-ups of these problems.
Implementation Requirements
The main program will read the input and will invoke different functions to carry out the above subtasks (note that the main program will pass the proper values to each function). You will have to write several functions in your program and these functions must adhere to the function prototypes, pre-conditions and post-conditions specified below.
/* Pre-condition: None Post-condition: Prints the menu.
*/
void printmenu();
/* Pre-condition: price, weight: a positive real numbers