

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
Information about quiz 3 for the cmsc 131 spring 2005 course, including instructions, exercise list, and examples. Students are required to write pseudocode for various programming problems, such as computing the number of digits in an integer, determining if a sequence is decreasing, and generating a multiplication table.
Typology: Study notes
1 / 3
This page cannot be seen from the preview
Don't miss anything!


CMSC 131 Spring 2005 Quiz 3 Worksheet
The third Quiz of the course will be on Wednesday, Feb 16 during your lab (discussion) session. The following list provides more information about the quiz:
The following exercises include the material to be covered in Quiz #3. Solutions to these exercises will not be provided, but you are welcome to discuss your solutions with TAs and instructors during office hours. Keep in mind that in the following exercises you are being asked to provide only pseudocode.
90 87 30 0 -1 - 110 4 0 -
The following are non-decreasing sequences:
90 100 20 4 30 24 -2 -1 8 9
1 2 3 4
1 1 2 3 4
2 2 4 6 8
3 3 6 9 12
4 4 8 12 16
Element Atomic Weight Ca 20 H 1 N 7
For example, the weight of the component 2Ca3N will be 40 + 21 → 61. Examples of other possible components are: Ca3N4H3N, 2H, CaHN.