Array and Strings – Arithmetic – Problem #1
IIT Kharagpur CS10001 / CS11001 Programming and Data Structures Lab Question Archive
Problem Statement
In the PDS laboratory there are four components as shown below: Regular Assignments (RA): 40 Lab Test-I (LT-I): 25 Lab Test-II (LT-II):25 TA assessment (TA): 10 Write a program, which reads marks of every student in four components (ra,lt1,lt2,ta), such that re, lt1, lt2 and ta denote marks for RA (out of 100), LT-I (out of 100), LT-II (out of 100) and TA (out of 100) in four separate arrays. The program computes the total marks in the PDS laboratory and store it in another array. Finally it prints the total marks for every students rounded to the nearest integer, followed by their mean, standard deviation, maximum and minimum. It also prints the number of students who got grades EX, A, B, C, D, P, and F. The grading policy is provided below. EX >89, 90>A>79, 80>B>69, 70>C>59, 60>D>49, 50>P>34, F<35 Provide output for the following input data set. (i) N=5 (70,60,50,20), (90,80,70,100), (20,30,50,80), (60,80,95,65), (100,95,94,30) (ii) N=10 (60,20,30,10), (80,90,70,38), (44,37,86, 78), (89,28,35,95), (91,24,80,83), (30,60,80,67), (90,20,10,100), (100,92,100,100), (25,59,80,82), (20,10,5,3)