ECE222(2007Fall)Prog1(C-Review)

ECE222(2007Fall)Prog1(C-Review) - Fall 2007 ECE 222 System...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Fall 2007 ECE 222 System Programming Concepts 1 of 2 Lab 1 –Review of C In this lab, each student is to write a menu-driven program called prog1.c that allows the user to enter and display data about a 2007 USC football game. The program should keep track of the following quantities for that game: Name of the Opponent: a single string with a maximum of 32 characters. Number of Points Scored by USC: an integer between 0 and 99 inclusive. Number of Points Scored by Opponent: an integer between 0 and 99 inclusive. Number of Fans who left at half-time: an integer between 0 and 100,000 inclusive. Number of USC players on parole during given game: an integer from 0 to 100 inclusive. Total amount of money given to the players by “rooster boosters” at the time of the game: a real number in dollars and cents from 0 to 2 billion dollars inclusive. Number of time Steve Spurrier threw his visor during the game: an integer between 0 and 1000 inclusive. ( Initially, these quantities are to be unknown and should be related as such.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/20/2008 for the course ECE 222 taught by Professor Reid during the Spring '08 term at Clemson.

Page1 / 2

ECE222(2007Fall)Prog1(C-Review) - Fall 2007 ECE 222 System...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online