CIS 459.21 LAB1


*** Due Date: Friday 4/8/2005 11:59pm ***

Objectives:

Points: 100

Description:

In this lab, you are asked to code a program to do the following:

  1. ask for input of any positive integer
  2. factorize the integer and print it out in the increasing order of factors
  3. Note: all factors need to be prime numbers only.

To represent exponents, you can use a a caret character "^". For example, if you are given an integer 36, your output needs to be 2^2 * 3^2.

Requirements:

With your interests in 459.21, I am assuming you are interested in system programming. So you are required to meet the following requirements:

  1. Docment your programs well.
  2. Following a good coding style (see course page for links to different coding sytles).
    In the worst case, use the indent program to process your source file before your submission.

Submission:

When you finish with the lab, you need to turn it in for grading. The submit command submits your lab electronically. You MUST use the submit command to turn in your labs. The format of submit command is as follows:

submit classname labname files-to-submit

where, to submit your first lab for this class, use the following command from the directory which contains your files (in this lab, lab1.c only):

submit c459.21aa lab1 lab1.c


Last updated: Wed Mar 23 15:56:05 EST 2005