User Tools

Site Tools


lab:start

Lab 1 Due Monday Oct 15

Here is Lab 1 do man grep for help on grep

This lab is due end of day Monday

—-



Lab 2

Here isLab 2 do man grep for help on grep This lab is due end of day Monday

—-



Lab 3 Here is lab 3

As usual, due to end of day Monday




Lab 4

Her is Lab 4

For problem 1, here is an example of an input file in1 and an output file out1

For problem 3, here is an example of an input file in.txt and output file out.txt

The formula for monthly payments is

P=principle * (rate *(1+rate)^n ) /( (1+rate)^n -1) where rate is the monthly rate = annual_rate/12




Lab 5 Due Monday Oct 15

Lab 5

Hints

  1. Your program should not prompt the user.
  2. The user should enter the length of the list (n) then hit return. Then enters the n numbers
  3. When you display error message or the answer, your program should exit
  4. Check what is the return value of scanf. For more of a hint, scanf returns EOF when there is no data to read



Lab 6 Due Wed. Oct 31, 2018

Lab 6

Corrections

  • Submit to as submit 2031 lab_6 a1.c (and a2.c for part 2)
  • Rotation is to the right (for part 1)

for part 1, I will put the values here instead of a file

5

1 4 7 23 17

23 4 5 6 77

Shift of 4 (r=to the right), added information not displayed distance = 65

3

1 5 6

2 4 8

shift of 0 (distance = 4)

6

7 4 5 6 2 8

6 5 1 4 2 3

shift of 0

For part 2

The input file is inl62.txt the output is -1,2 (difference = 40)




Lab 7 Due Monday Nov 5 lab sections Nov. 2,5

Her is Lab 7

A sample input file and the corresponding ouput file




Lab 8 Lab sections Nov. 9,12

here Lab 8

In the pdf file, the input in the example is given as 2,2. make that 2 2 it is easier to scanf




Lab test 2 Nov. 16,19 (C only)




Lab 9 Nov. 23,26

Here is Lab 9

I will be posting sample files for input and output shortly

The original name file

The uncompressed binary file file

The compressed file





Lab test 3 C and bash Nov. 30, dec. 3

Some of you asked me about “practice test”. I have a problem with that, any example I put on this page will be interpreted by many, not all, as this is how the test will be.

Instead, here are some example code tests to test your ability in C. https://www.w3resource.com/c-programming-exercises/

lab/start.txt · Last modified: 2018/11/27 18:52 by aboelaze