Академический Документы
Профессиональный Документы
Культура Документы
Due Date: 11:00 pm, Sunday 17th February 2019 Maximum Marks: 40 Marks
• This is an individual task. Plagiarism is not allowed, do your own work and do not lend or borrow
Assignment solution.
• Anybody found to have copied any assignment task will be given a straight zero and referred to
the disciplinary committee for further action.
• Deadline is final, there will be no extensions! Finish your work an hour before the deadline time
and submit it to make sure any issues with internet connectivity etc, can be avoided.
• Task 1 should be done in MS-Word and Task 2 and Task 3 should be done in C (using code blocks)
• Save all above Tasks as Task1, Task2 and Task 3 in a folder
• Save above folder as following Naming convention:
o AssignmentNo_RollNo_Name_Section
o Example:
▪ Assignment1_BSE1234_YOURNAME_C
• Compress the folder by right-clicking on it and choosing send to→ compressed zipped folder
• Submit the compressed folder at Google Classroom “Assignment-1” folder, by uploading it from
your file location.
(a)
#include <stdio.h>
int main(){
printf(Hello);
return 0;
}
(b)
#include <stdio.h>
/*This is a comment
int main(){
printf("Hello\n");
return 0;
}
(c)
#include <stdio.h>
int main(){
printf("Hello")
return 0
}
(d)
int main(){
printf(Hello);
return 0
}
Task 2: Print following shape using simple printf( ) statements [10 marks]
* ********** * * * * *********
*** * * ** ** * * *********
***** * * *** *** * *********
*** * * **** **** * * *********
* ********** ***** ***** * * *********
Task 3: Write a C program to print your own name, roll number, Age and batch in following
format: [10 marks]
-------------------------------------------------------------------------------------------
************************ Student Record*******************
-------------------------------------------------------------------------------------------
Name: ABC Age: 19 years (for example)
Roll number: SP19-BSE001 (for example) Batch: SP19-BSE