0% found this document useful (0 votes)
84 views2 pages

CS112 Assignment-1 (G9-G12)

1. The document provides instructions for students taking the CS112 programming course. It details how assignments should be formatted, compiled, and submitted by the deadline to receive marks. Files must be saved correctly, submitted as a zipped folder, and will be checked for plagiarism. 2. The first assignment asks students to write C programs to print messages in different formats, and to print shapes using asterisks. Programs are to be saved as individual files named by question number. 3. Students must submit their zipped assignment folder before the given deadline, after which the submission link will close. Late or corrupted submissions will not be accepted or evaluated.

Uploaded by

Shubham raj
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
84 views2 pages

CS112 Assignment-1 (G9-G12)

1. The document provides instructions for students taking the CS112 programming course. It details how assignments should be formatted, compiled, and submitted by the deadline to receive marks. Files must be saved correctly, submitted as a zipped folder, and will be checked for plagiarism. 2. The first assignment asks students to write C programs to print messages in different formats, and to print shapes using asterisks. Programs are to be saved as individual files named by question number. 3. Students must submit their zipped assignment folder before the given deadline, after which the submission link will close. Late or corrupted submissions will not be accepted or evaluated.

Uploaded by

Shubham raj
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

CS112 (G9-G12)

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 assignment question paper.

Note: You must make sure to upload in .zip or .rar. Files submitted with any other
extension 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. Corrupted files that cannot be opened will be given zero.

5. You will be able to upload your assignment only once and no plea/request for any
relaxation 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 will be automatically
awarded zero.

7. Your code will be checked for similarity and you will be penalized according to the following
rule:
The similarity between 50% to 75%: 25% deduction
The similarity between 75% to 100%: 50% deduction

For coding, you may take help of online compilers. Some are listed below

1. https://paiza.io/en/projects/new?language=c
2. https://www.onlinegdb.com/online_c_compiler
3. https://www.codechef.com/ide
CS112: Programming & Data Structure Laboratory (G9-G12)
Date: 07 April 2021
Assignment 1
Submission deadline: 08.04.2021 - 6:00 pm

Submission Instruction: Store your assignments in folder and compress it as a rar/zip file
(filename should be in this format: roll-number_assign1.rar or roll-number_assign1.zip). For
example, if your roll number is 1921CS01, store your assignment as 1921CS01_assign1.rar or
1921CS01_assign1.zip. Also, save each program in the format given beside each question.
Upload the same at the below link:

https://docs.google.com/forms/d/e/1FAIpQLScNF-TSr1FA52ARBTTJk-z6CowsT-zbxAYXmSezDf9KjyQnJA/viewform?usp=sf_link

Problem 1:- Write a single C program to accomplish each of the following:

a) Print the message "This is a C program." on one line.


b) Print the message "This is a C program." on two lines so that the first line ends with C.
c) Print the message "This is a C program." with each word on a separate line.
d) Print the message "This is a C program." with the words separated by tabs.

Problem 2:- Write a C program that prints the following shapes with asterisks.

a) *
***
*****
*******
*
*
*

b) *
* *
* *
* *
* *
* *
*

You might also like