Você está na página 1de 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.

Você também pode gostar