Preview

C Programming

Better Essays
Open Document
Open Document
1333 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
C Programming
Spring 2011
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

You May Also Find These Documents Helpful

  • Powerful Essays

    1. The program will present a series of user screens that prompts the user for specified input.…

    • 1488 Words
    • 6 Pages
    Powerful Essays
  • Good Essays

    It/210 Final Exam

    • 1235 Words
    • 5 Pages

    1. The program will present a series of user screens that prompts the user for specified input.…

    • 1235 Words
    • 5 Pages
    Good Essays
  • Satisfactory Essays

    2. The program will display a series of screens prompting the user to enter the item name or number, price and quantity.…

    • 498 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Nt1330 Unit 1 Assignment 1

    • 4614 Words
    • 19 Pages

    A ______ is rectangular area that can contain a document, program, or message option1 A __________ contains icon buttons that access frequently used commands A __________ provides access to features of the program A built-in tool that performs calculations automatically is a(an) A collection of related data that has been entered into a computer is called a A collection of separate software applications that are sold as a group, like Microsoft Office, is called a(n) A database sort directs the software to find and display one or more records option2 option1 option3 option3 option4 option2…

    • 4614 Words
    • 19 Pages
    Good Essays
  • Satisfactory Essays

    PT1420week5exdkinney

    • 404 Words
    • 2 Pages

    Built in functions are valuable and convenient because they can cut down the time and energy it takes into writing the entire program repeatedly. The built-in functions work like mini programs that perform simple tasks so that you can concentrate your efforts elsewhere. As with all functions, the built-in functions return values and, optionally, accept arguments that you pass to the functions when you call the functions. This essay will list different Visual Basic’s built in functions.…

    • 404 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    IT210 R5 Appendix D 2

    • 197 Words
    • 2 Pages

    K. Program interface that allows the user to make choices with a mouse, icons, and dialog boxes…

    • 197 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    This is our first individual assignment for Programming unit this semester. This assignment was given in December 2013, and submission date is on 10th February 2014.…

    • 1859 Words
    • 8 Pages
    Good Essays
  • Powerful Essays

    IT/210 Appendix D

    • 453 Words
    • 4 Pages

    Up to this point, you have identified the processes the program must perform, but you have not given any consideration to exactly how the processes work together to solve the problem. At this point, you must generate a description of the processing using pseudocode, a natural language description of the processing the application must perform.…

    • 453 Words
    • 4 Pages
    Powerful Essays
  • Satisfactory Essays

    Mis 302 Flowchart

    • 262 Words
    • 2 Pages

    Complete Java Program to accept the required input and accordingly produce the output as expected.…

    • 262 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    cmis 102 HW 2

    • 748 Words
    • 6 Pages

    Using the Hierarchical Design, I am creating a flow chart or blueprint of how basically this program will work:…

    • 748 Words
    • 6 Pages
    Satisfactory Essays
  • Satisfactory Essays

    o Provide a set of values that will test the normal operation of this program segment.…

    • 349 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    It/210 Course Design

    • 2571 Words
    • 11 Pages

    Due Points Objectives 2.1 Identify the purposes and definitions of software development concepts. 2.2 Use pseudocode to design a program to solve a computational…

    • 2571 Words
    • 11 Pages
    Satisfactory Essays
  • Powerful Essays

    Lisa Gamel CSU Global Campus ITS320 Basic Programming Dr. Biswajit Panja Final February 26, 2015 / * * Program number: University – ITS-320 – Basic Programming * Name * Date: 02/26/2015 * */ public class NegativeAmountException extends Exception { private static final long serialVersionUID =…

    • 444 Words
    • 6 Pages
    Powerful Essays
  • Satisfactory Essays

    Skill questions

    • 318 Words
    • 2 Pages

    3. What are the three key control structures in programming and what are they used for?…

    • 318 Words
    • 2 Pages
    Satisfactory Essays