User Tools

Site Tools


lab:start

This is an old revision of the document!


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/start.1540940692.txt.gz · Last modified: 2018/10/30 23:04 by aboelaze