Professional Documents
Culture Documents
March 2019
3. (a) Examine the following program fragment; What does the fragment write
to the monitor?
(b) Examine the following program fragment; What does the fragment write
to the monitor?
(c) Examine the following program fragment; What does the fragment write
to the monitor?
int[] array = { 1, 4, 3, 6 };
int what = 0;
(b) Write a program, graduate.py, that prompts students for how many
credits they have. Print whether or not they have enough credits for
graduation. Use array to solve this problem.
(At Loyola University Chicago 120 credits are needed for graduation.)