0% found this document useful (0 votes)
8 views

Assignment 1

1. The document provides instructions for submitting assignments for the CS559 Computer Systems Lab course. Students must submit assignment solutions as individual .c files within a compressed folder using the correct file naming convention and extension by the deadline. 2. Files will be checked for plagiarism and compilation, and marks will be deducted for similarities over 75% or files that do not compile. The final marks report with remarks will be sent to students and a rebuttal period allowed. 3. Assignment 1 involves implementing a simple stack in Python to perform push and pop operations, providing the code and checking if the stack is empty, and printing the final state of the stack. Evaluation criteria include points deducted for indentation errors, compilation

Uploaded by

Deepak Kumar
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views

Assignment 1

1. The document provides instructions for submitting assignments for the CS559 Computer Systems Lab course. Students must submit assignment solutions as individual .c files within a compressed folder using the correct file naming convention and extension by the deadline. 2. Files will be checked for plagiarism and compilation, and marks will be deducted for similarities over 75% or files that do not compile. The final marks report with remarks will be sent to students and a rebuttal period allowed. 3. Assignment 1 involves implementing a simple stack in Python to perform push and pop operations, providing the code and checking if the stack is empty, and printing the final state of the stack. Evaluation criteria include points deducted for indentation errors, compilation

Uploaded by

Deepak Kumar
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

CS559: Computer Systems Lab

READ THE FOLLOWING INSTRUCTIONS CAREFULLY. FAILING TO ADHERE TO IT


WILL LEAD TO DEDUCTION OF MARKS.

1. Make sure to give the correct information in your submission link. You will receive a response email for
every submission. You must save it for future reference for the whole semester as you will be
asked to show it.
2. Every assignment will have multiple questions. For every question, you will save your solution (i.e.
program) as a .c file. So if “Assignment 01” has 4 questions (marked as 1, 2, 3 and 4), then you will
save your solution program as 1.c, 2.c, 3.c and 4.c.

Note: Your program will be compiled to check if your solution is correct and you will
be marked accordingly. If any solution file is missing or not submitted, the marks for that
solution will be zero.

3. Submit your files in a compressed folder (rar or zip) as per “submission instructions” given in your as-
signment question paper.

Note: You must make sure to upload in .zip or .rar. Folders submitted with any other exten-
sion or wrong extension will not be evaluated and awarded zero.
4. The student must ensure that the submitted file is not corrupted and can be unzipped properly. Cor-
rupted files that cannot be opened will be given zero. Similarly bad filenames having any
other extension than “.c” will not be evaluated and given zero.

5. You will be able to upload your assignment multiple times within the deadline span, but only your last
submission will be treated as final and considered for evaluation. No plea/request to consider inter-
mediate submissions for evaluation will be entertained. So, make sure to carefully check that you
are submitting the correct assignment.
6. The submission link will be automatically deactivated after the deadline, and no request/plea for extension
will be accepted. Non-submission /wrong submission will be automatically awarded zero.

7. Your code will be checked for similarity and you will be penalized according to the following rule:

Similarity above 75%: 50% deduction


Similarity of 100%: full deduction

8. Compiler Information: Program must be compiled using online gdb compiler. If your
program can not be compiled using gdb compiler then marks will be reduced.
Compiler Link : https://www.onlinegdb.com/online_c_compiler

9. Marks for every assignment (other than practice assignments) will be mailed to you with remarks. You
will be allowed a deadline for rebuttal, after which no rebuttal will be entertained.

1
CS559: Computer Systems Lab
Date: [18th February,2024]
Assignment[1]
Submission deadline: [24th February, 2024 - 23:59 Hrs. IST]
Submission Instruction: Store your assignments in folder and compress it as a rar/zip file (filename should
be in this format: roll-number assign(1).rar or roll-number assign[1].zip ). For example, if your roll number is
2211CS01, store your assignment as 2211CS01 assign[1].rar or 2211CS01 assign[1].zip. Also, save each program
in the format given beside each question. Upload the same at the below link:
https://forms.gle/uPDCxhzXp3eXdpDv7

1 Problem:1
Implement a simple stack in Python and perform the following operations:

1. Push the elements 5, 10, and 15 onto the stack.


2. Pop an element from the stack.

3. Push the element 20 onto the stack.


4. Push the elements 25 and 30 onto the stack.
5. Pop two elements from the stack.

6. Push the element 35 onto the stack.

Provide the Python code for each operation and Check if the stack is empty. If not, then print the final
state of the stack.[10 points]

Expected Output:
False
[5, 10, 20, 35]

2
CS559: Computer Systems Lab
Evaluation Criteria
Date: [18th February,2024]
Assignment[1]
Submission deadline: [24th February, 2024 - 23:59 Hrs. IST]

Problem [1]:
• Improper indentation: -1 points
• Compilation error: -1 points

• Input not taken(i.e hard-coded): -2 points


• Wrong logic/output: -6 points
– Wrong report about the Stack is Empty or Not: -2
– Wrong Final State : -4

You might also like