day1 - COP 3503 Computer Science II CLASS NOTES...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
COP 3503 – Computer Science II CLASS NOTES DAY #1 INTRODUCTION Problem-Solving Techniques 1. Understand the problem completely. 2. Divide the problem into manageable pieces (divide and conquer) 3. Create solutions 4. Consider alternative solutions and refine the one selected 5. Implement the solution 6. Test and fix the solution Polymorphism (a general definition – having many forms) Creating a general solution for a class of problems which may be further specified to solve particular instances of the problem. Syntax A set of rules of a programming language that dictates the legal form of a program Semantics Describes the meaning of the program statements Day 1 -1 Example: Class of problem: addition Polymorphic solution: counting Specific problem #1: 3 + 1 Specific solution for #1: counting on your left hand Another specific solution for #1: counting on your right hand Specific problem #2: 3 + 4 Specific solution for #2: counting on both hands Specific problem #3: 10 + 7 Specific solution for #3: counting on fingers and toes
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Compile-Time Errors Errors in syntax that can be caught by the compiler.
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/22/2009 for the course COP 3503c taught by Professor Staff during the Spring '08 term at University of Central Florida.

Page1 / 5

day1 - COP 3503 Computer Science II CLASS NOTES...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online