Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Quiz 1 worksheet - Object Oriented Programs I | CMSC 131, Quizzes of Computer Science

Material Type: Quiz; Professor: Mount; Class: OBJECT-ORIENTED PROG I; Subject: Computer Science; University: University of Maryland; Term: Unknown 1989;

Typology: Quizzes

Pre 2010

Uploaded on 02/13/2009

koofers-user-810
koofers-user-810 🇺🇸

10 documents

Partial preview of the text

Download Quiz 1 worksheet - Object Oriented Programs I | CMSC 131 and more Quizzes Computer Science in PDF only on Docsity!

CMSC 131 Quiz 1 Worksheet

The first Quiz of the course will be on Monday Sept 13 during your lab session (either at 10 am or 11 am). The following list provides more information about the quiz:

  • You will have 15 minutes to complete the quiz.
  • It will be a written quiz (not using any computer).
  • It will be closed-book, closed-notes, and no calculator is allowed.
  • Answers must be neat and legible. We recommend that you use pencil and eraser.
  • The quiz will be based on the exercises you will find below. Iteration statements (do whiles/whiles) will not be part of the quiz.

The following exercises cover the material you are expected to be familiar for Quiz #1, Solutions to these exercises will not be provided but you are welcome to discuss your solutions with TAs and instructors during office hours. When asked to write a Java application, you should give the entire class definition, not just the main method.

1. From Lewis & Loftus a. Page 56 (“programming projects section”): 1.1, 1.3. b. Page 120 (“exercises”): 2.6 (a, b, c, d, e, f, g, n, o, p, q) c. Page 123 (“programming projects”): 2.2, 2.3, 2.5, 2.6, 2.7, 2.11. (Assume that input values come from JOptionPane.showInputDialog.) d. Page 198 (“exercises”): 3.4, 3.5, 3.6. 2. Write a Java program that computes the letter grade associated with student based on a numeric grade value. The program will read the numeric grade of the student and will compute a letter grade using the following cutoff values:

Letter Grade Cutoff

A 90.

B 80.

C 70.

D 60.

Any grade value lower than 60.0 will have F as letter grade.