


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Information about lab 2 for the fundamentals of computer programming course (csci 101) at the university of southern california (usc). It includes the grading scheme, submission instructions, and a sample program for i/o programming using printf and scanf. Students are required to submit their source code files using the 'submit' command before the lab session at the due date.
Typology: Lab Reports
1 / 4
This page cannot be seen from the preview
Don't miss anything!



Grading Scheme: 5% - Information Block (Name, Email, Section, etc.) 10% - Program Algorithm (Comments, Implementation) 65% - Core Program (Compilation, Other Key Issues) 10% - Programming Style (Indentation, Meaningful Identifiers, etc.) 10% - Output (Correctness and Format) Submission Instructions: In the directory containing your source code file, you want to submit test1.c for homework 1 : A) The command used for submission is: submit -user csci101 -tag hw1_***** test1.c ***** indicates your LAB section number. This will be the same for all homework submissions. The following message will appear if the submission is successful: Submitting file "test1.c" to "csci101" ... SUCCEEDED. B) Submitting Multiple files (say test1.c, test2.c, test3.c): submit -user csci101 -tag hw1_***** test1.c test 2.c test3.c The following message will appear if the submission is successful: Submitting file "test1.c" "test2.c" "test3.c" to "csci101" ... SUCCEEDED. Once you submit the file, you can't get it back. But you can always modify the file in your USC account and resubmit it again and again. The old file(s) will be overwritten. E- submission must be done before your lab session at the due date. For homework 2 , change the tag to hw2_***** and so on to ensure that your submission is properly graded. If you submit with the wrong tag, you will be heavily penalized for it. Lab Sections:
8:00 - 9:50 (Th) 10:00 - 11:50 (T) 10:00 - 11:50 (F) 12:00 - 1:50 (W) 3:30- 5:20(W) 5:00 - 6:50 (W) 5:00 - 6:50 (Th)
Jenny Shyam, Bansal Shyam, Bansal Shyam, Kale Jenny, Kale Jenny, Kale Bansal, Bilal
Exercise: As an exercise, create the algorithm and write a program that does the following: a) Requests for the area of a circle b) Calculates the radius of the circle c) Prints out the value in a coherent manner When completed, demonstrate it to the lab assistant to get full credit. Hint: You will need to include the math.h header file and compile your program with the following command: gcc –lm exercise2.c The new option is a lowercase L and it stands for linking. You want to link your compiled program with the math library.