CS161_Topic#2

CS161_Topic#2 - CS161 Topic #2 1 CS161 CS161 Introduction...

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

View Full Document Right Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: CS161 Topic #2 1 CS161 CS161 Introduction to Introduction to Computer Science Computer Science Topic #2 CS161 Topic #2 2 Today in CS161 Lecture Handouts you should have Solving Problems with Computers Write a short Algorithm Assignments Walk through Program #1 -- step by step Question Session CS161 Topic #2 3 CS161 Handouts: From the web site, make sure to look at: ( www.cs.pdx.edu/~karlaf ) Syllabus Course Outline Style Sheet C++ Style Requirements Program Cover Sheet CS161 Topic #2 4 Solving Problems w/ Computers Programs are... an expression of a series of instructions that the computer must perform written in precise languages, called programming languages Programming languages... translate your ideas into specific language that the computer will understand C, C++, Java, Pascal, Visual Basic, Cobol, Fortran CS161 Topic #2 5 Solving Problems w/ Computers The most difficult part of programming is figuring out how to design a method to solve a problem Only then do we translate this into C++! Therefore, start by writing an algorithm once you understand the problem CS161 Topic #2 6 Solving Problems w/ Computers An algorithm is a sequence of step by step instructions for performing some task -- usually for computation An algorithm must... accomplish the task be clear and easy to understand define the sequence of steps needed to accomplish the task in the order specified CS161 Topic #2 7 Algorithms It is best to ignore the details of your programming language (C++) when trying to solve a problem Instead, figure out the steps you need to go thru to solve the problem Write these steps down in English These steps are called the algorithm ! CS161 Topic #2 8 Algorithms Think of your algorithm as a tool for creating the instructions for solving a...
View Full Document

This note was uploaded on 03/17/2010 for the course CS 161 taught by Professor Fant during the Winter '08 term at Portland State.

Page1 / 30

CS161_Topic#2 - CS161 Topic #2 1 CS161 CS161 Introduction...

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

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