CPS 1: Computer Science Principles

Course information
Outline of topics
Schedule and notes
Projects
Assignments
Resources

Lab assignment 8,9

In this lab, we will work on excercises on algorithm complexity and database design. The first 2 parts of the assignments are for lab8 and the rest for lab 9. Here is your assignment.

Lab assignment 7

Today, we will write a very simple public key encryption program. Click on this link to see the lab assignment.

Lab assignment 6

We have no programming assignments, today. In groups of four, you will need to solve several problems related to algorithms that we learnt in Lecture 14.

Lab assignment 5

In this lab assignment, we will create our first java applet. You can find the problem statements here

Lab assignment 4

We will continue with programming with java. As by now you are more familiar with programming, in this lab, I am assigning you three problems. You can find the problem statements here

Lab assignment 3

For our third lab, we will continue learn Eclipse and write a little more advanced programs. I have posted the instructions for the third lab here

Lab assignment 2

For our second lab, we will install and learn how to use a program called Eclipse. It is essential to understand how to use it clearly as we will be using Eclipse to write our own programs. The instructions for the second lab have been posted here

Class assignment for Wednesday, May 21

Write algorithms for the following problems and hand it to me before the class starts:

  1. Making a peanut-butter jelly sandwich
  2. Coming to school
  3. Checking your facebook

Don't forget to consider the requirements of an algorithm (namely, the termination requirement). Be as detailed as you can.

Submission: You can use any of the the following methods to submit your work: email, blackboard digital drop box, or bring printed copy at class.

Lab assignment 1

Due on Thursday, May 22

For your first assignment, please design your homepage. Your home page doesn't need to contain a lot of content for the moment; it will serve as a building block for your homepage. However, design it so that it would be interesting and easily accessable (Blue fonts on yellow background is always a bad idea :). Keep in mind that your home page would be your business card in the WWW.

Design at least 2 web pages(index.html and another one) and make a link between the two. For all style elements, you must use CSS. Your homepage must include at least one of each of the following elements:

  • Table
  • List
  • Text: At least 2 paragraphs with multiple formats(text color, font style, font size)
  • Links: change the color of the link, so that when you hover over the link, the color changes to red. Also make the link without an underline
  • Image
  • (extra points)Frame
  • (extra points)Form: a form to submit an email

As stated in class policy, if you use help from others, please cite your collaborators in comment brackets, like:

<!-- Collaborators: Susie Student, Ted TA--> <!-- Resources used: Google, W3C HTML tutorial --> If you design a web page with more advanced features and elements, you can get extra points.

If you don't know how to setup your homepage(access your files, where to upload/save, etc), please read either the PreLab slides that we used on our first class, or check this page.

Finally, to have the lab graded, upload your homepage to Duke ACPUBS (we have already set it up during Prelab)

Azbayar Demberel 2008.