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

Assignment 2

This document outlines an assignment for an introduction to programming course. It includes 5 questions to write programs for, with the 5th question providing an example of a program to calculate the average marks for multiple classes. Students are instructed to submit their code as a single .c file with labeled sections for each program/question and the deadline is November 2, 2012. Late or copied submissions will not be graded.

Uploaded by

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

Assignment 2

This document outlines an assignment for an introduction to programming course. It includes 5 questions to write programs for, with the 5th question providing an example of a program to calculate the average marks for multiple classes. Students are instructed to submit their code as a single .c file with labeled sections for each program/question and the deadline is November 2, 2012. Late or copied submissions will not be graded.

Uploaded by

Munir Shah
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Introduction to Programming

BEE4D

Assignment 2

Question 1

Question 2

Question 3
Introduction to Programming
BEE4D

Question 4

Question 5
Write a program to compute the average marks of each of a set of classes (total number of
classes is unknown). For each class, calculate the average marks and display the average. You
need to be careful that the average marks for each class is computed independently of other
classes.

Enter marks: 10
Enter marks: 90
Enter marks: -1
Average = 50.0

Another class: 1
Enter marks: 99
Enter marks: 93
Enter marks: 80
Enter marks: -1
Average = 90.67

Another class: 0

Deliverables:

Submit your code on LMS. Create one .c file and paste all the programs in that file with the
heading Task 1, Task 2, Task 3, etc for each program. Name the file as Assign2_Your_Name.c

Submission deadline: November 2, 2012

Late or copied submissions will carry zero marks.

You might also like