Ferreira Logo

Ferreira's Gentle Sailing Web Site

BCC Logo Home CIS132 CIS134 CIS158 CIS271 CIT150


CIS158 - Introduction to Procedural Programming

Programming Assignments - Spring 2019


During the first week of class you will be given a userid to the Linux server (CISWEB) at BCC. This userid is to be use for CIS158. As this course makes use of linux commands and C programs, you can/should use CISWEB to practice. You will be required to complete all programming assignments on CISWEB using the userid specific to this class.

You may have received a CISWEB userid that is the same as your accessBCC userid. That uesrid is NOT the userid for CIS158 assignments or programs.

CISWEB can be accessed at any time from any computer that has Internet access. To do this, the computer will need a secure shell (ssh) client. If your computer is Linux or even Mac, then you are ready to access the CISWEB. To do this all you need to do is go to you command prompt or terminal and at the command prompt ($) enter the following:
ssh yourid@cisweb.bristolcc.edu

Obviously the "yourid" is the userid you received the first week of class. The first time you access the CISWEB server from that machine, you will be asked to accept a security certificate. This is normal and you should accept it. Next you will be asked for your password. Just type it in (please note that nothing will show on the screen as you type). If you did this all correctly, then you are in. Please note that both the userid and password are case sensitive

If your computer uses Microsoft Windows as the operating system as is the case in the BCC labs, then you will need to get an ssh client. Fortunately, there is putty which is free, small, efficient and easy to use and configure. At BCC, putty is ready to go but at home you will need to get and configure it yourself. I have provided a link above to the official Putty site but before you begin, please review my putty tuorial .


Before you begin these assignments, review the Class Policies for Programming. It is important that you follow these policies carefully with the exception that programs are NOT to be zipped and/or e-mailed. When you have completed the all the programs for the assignment, send an e-mail indicating that the assignment is complete and ready to be graded.

All programming assignments must be done on the Linux server CISWEB. Each programming assignment create in your home directory a directory with the same name as the programming assignment number (all lower case please). The program is to be created in the assignment directory. If there is more than one program in the assignment, then create a subdirectory in the assignment directory for each program. These directory names are indicated in the assignment.

Starting with programming assignment P02, each program must have a makefile that contains directives to the make command. The makefile directives will have a target for each .c that will create the object file, a target to create the executable (binary) file using the object files created by the object targets and a target called clean to remove all object files. An example of a makefile is in your home directory in the demos subdirectory. Use it as a template. More help/tutorials for makefile are available at makefile_Help.shtml and Wikipedia - makefile

If you are not sure what is required please see me or ask at the beginning of class. For information about accessing CISWEB, go to CISWEB Help.

Make sure you follow all the instructions!

Number Due Date Programming Assignment
P00 7-Feb Integer Math - P00
P01 14-Feb Table of Powers & Name Age - P01
P02 21-Feb Random Numbers & Weights - P02
This is the first programming assignment that requires a makefile. See the instructions above for more information
P03 28-Feb Trigonometric Table - P03
P04 7-Mar Line Word Character Count & Sum Times - P04
P05 18-Mar Prime Numbers - P05
P06 31-Mar
Grades - P06
P07 7-Apr
Merge Sort - P07
P09 21-Apr IPv4 Addressing - P09
P10 28-Apr TBA
P11 4-May