

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Quiz; Professor: Padua-Perez; Class: OBJECT-ORIENTED PROG I; Subject: Computer Science; University: University of Maryland; Term: Unknown 1989;
Typology: Quizzes
1 / 2
This page cannot be seen from the preview
Don't miss anything!


CMSC131 Spring 2005 Quiz #3, Duration 25 Minutes
First Name: Last Name: Class account LOGIN ID: Section: TAs:
Write pseudocode for a program that computes the sum of the even numbers from user-provided values. The program will first read the number of values (N) that the user will input. It will then process the N values from user input, one by one. Finally, it will print the sum.
To keep things simple, you can read in the next integer and store it in some variable x as follows:
x = read()
You can print a value x or message as follows:
print(x) or print(“Hello”)