Introduction to Computer Science - Fall 2009
CSCI 151
Lab 5

  
Objectives:
practice with basic LINUX commands,
integer and float/double arithmetic in C, equality and relational operators, if, if else, if else if , and while statements;
compiling and executing C code.   

There is LAB ASSIGNMENT ONLY TODAY!!!


Practice PART:

  1. Login to the system using your login name and the initial password
  2. Change to your CSCI151 directory: cd CSCI151
  3. Create a new directory lab5 under your CSCI151 directory: mkdir lab5
  4. Change to lab5 directory: cd lab5
  5. All programs that you will write in this lab you will save in your lab5 directory. Important: Start each of your programs with comment part that includes:
    your first and last names
    your e-mail
    today's day
    the name of the program ( the name of the file)
    the short description what this program is doing
    list of the variables with the short description for each variable - name, type, purpose (this information could be written in the declaration of the variable section of your program)

    Lab Assignment

  6. Program 1 (35 points):

  7. Program 2 (35 points)

  8. Program 3 (30 points)

  9. Program 4 BONUS (10 points)

  10. Program 4 BONUS (10 points):