User Tools

Site Tools


labs

This is an old revision of the document!


LABS

Lab 2

Jan 16,17

Lab 2 here

submit as

submit 2032Z LAB2 file_name

when the arguments are 2 3 1 5 the output is out1.txt

Exercise DO NOT SUBMIT

In problem two, the solutions x=a, y=b, z=a, w=b, or x=a, y=b, z=b, w=a is known as trivial solution, redo problem 2 in order not to display trivial solutions


Lab 3

Jan 23,24

here is lab 3

I will be posting some input output and data files, but first you have to prepare some sample files yourself

Note to enter as a command line argument a value that contain spaces you mustenclose it in double quotes “input with spaces”

Here are some examples names.txt and courses.txt

for the first run, run it as

bash l3.sh -f “Mo Salah”

The output is

Mo Salah A should be EECS3311 A will leave submission open for 24 more hours

Run it as

bash l3.sh -c EECS2032

The output is

1

Test cases used in marking, check your code before asking for remarking

Test cases

Data Files

names file

Abram Kelly 123456

Amirah Skinner 234567

Mitchell Rodgers 345678

Sofia Downs 456789

Damari Zimmerman 567890

Rashad Mitchell 678901

Adriana Hardy 789012

Avery Quinn 890123

Kayden Mcfarland 901234

River Roth 111111

Valentino Conley 222222

Rachel Carrillo 333333

Ariel Bryan 444444

Irene Ramsey 555555

Kassidy Doyle 666666

Course File

123456 EECS2032 A

234567 EECS2032 C

123456 EECS3201

111111 EECS3311 D

222222 EECS2200

567890 PHYS3050 B+

890123 ECON1010 C+


Lab 4

Jan 30, 31

lab_4.pdf

Two test cases for part 1

in1.txt and out1_lab4.txt

in2.txt and out2.txt

For part 2

inc1.txt and outc1.txt

inc2.txt and outc2.txt

Exercise DO NOT SUBMIT

For part 1, your code probably doesn't deal well with empty lines, for example if there is an empty line, you will get an error message. modify your code to ignore empty lines

Test cases used in marking, check your code using these cases before asking for remarking

Test cases


Lab 5

Feb 6,7

Here is lab_5.pdf


Lab Test 1 (covering bash)

Feb 13,14

Here is the Model answer with the test cases for section A Model answer Product.txt

Section B

Here is the model answer Model Answer_B product file product.txt


Lab 6

Feb 27, 28

Lab 6 Don't use any string functions in part 1. Do not include <string.h> in part 1

The submitted files will be checked for plagiarism Please look at the Academic honesty tab on the left side of this page


Lab 7

Lab 7 here is an example of the text without checksum tt.txt and here is the text with the checksum oo.txt

March 5,6


Lab Test 2 Covering C

March 12,13

Here are some Practice Cprograms from previous years

This lab test will not file operations and I/O


Lab 8

March 19,20


Lab 9

March 26,27


Lab Test 3 Covering C and microcontrollers

April 4,5


labs.1583853946.txt.gz · Last modified: 2020/03/10 15:25 by aboelaze

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki