The questions below are meant to stimulate the preparation of the final exam. They cover some of the most important but not all topics in the course. You must review all course materials: textbook, exercises, lecture notes, quizzes, and exams.
int n = 11;
printf("%o", n);
int i, s = 0;
do
{
scanf("%d", &i);
s += i;
} while (i != 0);
printf("%d", s);
int n, i = 0;
int ws = 0;
while (i++ < 5)
{
scanf("%d", &n);
ws += n/i;
}
printf("%d", ws);
int max,n, i = 0;
scanf("%d",&max)
for (i = 1; i < 5 ;i++)
{
scanf("%d", &n);
if (n > max) max = n;
}
printf("%d", max);
Choose one of the following options :
D. make a deposit;
W. withdraw funds;
A. ask customer assistance;
R. return to the main menu;
T. terminate the session;
Type D, W, A, R, or T to choose :
reads the character typed in by the user and
returns 0,1,2,3, or 4, corresponding to the 5 possible
character choices. An error message should be displayed
and -1 must be returned in case the user makes an invalid choice.
void read_forwards ( int *n );
/* reads a positive number in pental notation,
starting with the most significant digit */
void read_backwards ( int *n );
/* reads a positive number in pental notation,
starting with the least significant digit */
void write_forwards ( int n );
/* writes a positive number in pental notation,
starting with the most significant digit */
void write_backwards ( int n );
/* writes a positive number in pental notation,
starting with the least significant digit */
Which of these functions need arrays to define?
Give the definitions of the functions.
FINAL EXAM is in Lecture Center C6 on Monday 3 December 2001 from 1:00 till 3:00PM.
Please let me know as soon as possible if you cannot attend the exam and need to schedule a makeup.
Incomplete grades are only given in exceptional cases. At least the two following conditions must be satisfied: the student is in good standing (has decent scores on midterm exams, projects, and quizzes) and the student is unable to take an exam during the finals week.