cs 115 quiz # 2 information 1. when tuesday 11/10 worth: 8 points 2

10
CS 115 QUIZ # 2 INFORMATION 1

Upload: garry-malone

Post on 18-Jan-2016

214 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: CS 115 QUIZ # 2 INFORMATION 1. When TUESDAY 11/10 Worth: 8 points 2

CS 115

QUIZ # 2 INFORMATION

1

Page 2: CS 115 QUIZ # 2 INFORMATION 1. When TUESDAY 11/10 Worth: 8 points 2

When

• TUESDAY 11/10• Worth: 8 points

2

Page 3: CS 115 QUIZ # 2 INFORMATION 1. When TUESDAY 11/10 Worth: 8 points 2

What to Study

• Text:– Chapter 3– Chapter 7– Pages 374-416 (up to section 7.12)

– Chapter 5 – Pages 210 - 262

3

Page 4: CS 115 QUIZ # 2 INFORMATION 1. When TUESDAY 11/10 Worth: 8 points 2

What to Study

• Lectures– Lecture 5– Lecture 6– Lecture 7– Lecture 8– Lecture 9

4

Page 5: CS 115 QUIZ # 2 INFORMATION 1. When TUESDAY 11/10 Worth: 8 points 2

What to Study

• Labs– Lab 4– Lab 5– Lab 6

• Practice Exercises: 4, 5, 6, 7

5

Page 6: CS 115 QUIZ # 2 INFORMATION 1. When TUESDAY 11/10 Worth: 8 points 2

Topics to concentrate

• Creating Service and Client Classes.– Understand how to create an equals method in the

service that would allow objects of the same class to be compared for equality.

– Usage of the equals method in the client class to compare two objects of the service class.

• How to receive input from user– Command line– Scanner (keyboard input)

• How to use the API (import statements where needed)

6

Page 7: CS 115 QUIZ # 2 INFORMATION 1. When TUESDAY 11/10 Worth: 8 points 2

Topics to concentrate

• Static variables and methods. Specifically know how to use a static variable to create a current id for an object every time you call the constructor of the class.

• Usage of a static variable to track the total values of a quantity for all instantiated objects of a service class.

• Study the if selection structures.• If and else selections• If and if/else selections• Equality between two objects!!!!

7

Page 8: CS 115 QUIZ # 2 INFORMATION 1. When TUESDAY 11/10 Worth: 8 points 2

Topics to concentrate

• Boolean expressions and their evaluation– Understand how to set up your own logic to be

evaluated.

8

Page 9: CS 115 QUIZ # 2 INFORMATION 1. When TUESDAY 11/10 Worth: 8 points 2

Quiz Format

• Duration: class period• Closed book• Closed Notes• Computers: No access to anything but

Notepad++ – You are not allowed to use your laptop. You have

to use your station computer.– No flash drives are allowed.

9

Page 10: CS 115 QUIZ # 2 INFORMATION 1. When TUESDAY 11/10 Worth: 8 points 2

Questions

• Three programs to be written.– Service class– Client class– A program that involves Boolean logic conditions

to be evaluated.

• Each program is worth :– Program 1: 3.5 points– Program 2: 4.5 points.

10