Homework Assignment #1

 

CS 161: Introduction to Computer Science 1

 

 

Submit your assignment to the D2L Dropbox (sign on via www.my.pdx.edu)

 

***Homework in CS161 consists of written homework and programming***

 

1.      Create an Algorithm for the process of looking for a job. Write the algorithm in an outline form using complete sentences. Think of (a) how do you fill out applications (b) how do you select which places to apply, etc.

·        Assume you are writing the algorithm for someone else who plans to look for a job

·        Be careful not to skip any steps

·        Desk check your algorithm (go through the algorithm and see if you can follow these instructions!)

 

2.      Think about Style Background: With programming, we can add components to a program to enhance its readability. This may include blank lines, indentation, comments, etc. Take a look at a paper that you have written in the past. Looking it over – what could be done to make it more readable without changing its content? Find three things that you could have done to improve the readability of the paper. Use complete sentences.

 

3.      Ethics. In Computer Science we are many times placed in positions of having access to sensitive or private information. We also develop programs that work with this information and that must keep that data private and secure. In addition, in Computer Science we develop programs that are expected to create accurate output (for example, banking software can’t be off by a penny, or more!). Brainstorm on what you think 3 important ethical responsibilities are when dealing with computers. List these in 3 complete sentences, explaining why you believe these are important.

 

4.      Programming. Part of our first homework is to have logged on, entered, compiled, and executed a simple C++ program. This can be either on Unix or on your own computer with a compiler (e.g., Dev-C++ on a PC or others).

·        You are allowed to use the demo programs provided on our web site or from a book. The purpose is to get used to the software we will be using for the next 5 assignments.