Computer Science, asked by dhanashrijagadale199, 7 months ago

ou are the class representative and your class adviser wants you to prepare the result analysis after every internal assessment. Given the scores of ‘N’ students in the class for 6 courses, one of the tasks in the analysis is to find the maximum mark scored in each course. Write an algorithm for the same. Marks cannot be negative or greater than 100. On such erroneous input, stop the flow deliberately displaying – ‘Invalid input’.


Answers

Answered by safety2010
5

sorry

I don't know computer science

Answered by mad210219
8

Result analysis after every internal assessment

Explanation:

ALGORITHIM:

1.Start

2.N=take input(thenumber of students are there in the class)  

3.Recurrsively for 6 times(6 subjects)

3.1.Take input of each  subject marks for all N students  

And store them in an array  

3.2. if 6 times then terminate

4.Caluclate sum of arrays of each subject  6 times

4.1.Take one subject array and calucalte sum by iterating through the array

4.2.Then calculate the max element in the array by using max() function or compare using for loop and print the max marks  

4..3.if 6 times then terminate

Example:

IF STUDENTS =4

THEN

MARKS FOR SUB1

13,54,66,88

Marks for SUB2

99,55,66,77

Marks for SUB3

31,21,41,51

Marks for SUB4

71,21,41,81

Marks for SUB5

92,82,42,52

Marks for SUB6

33,44,55,66

Max marks in each subject

Maxm marks in Sub1 is 88

Maxm marks in Sub2 is 99

Maxm marks in Sub3 is 51

Maxm marks in Sub4 is 81

Maxm marks in Sub5 is 91

Maxm marks in Sub6 is 66

 

Similar questions