subject

A school maintains academic record of its students (of a class) in different arrays. The information stored is: 1. Roll Number (in an integer array)
2. Midterm Marks (in a float array)
3. Final Marks (in a float array)
4. Class of a student e. g. Class 1, Class 2, Class 3 (in an integer array)
5. The Grades based on final marks (in char array)
a. Final Marks less than 50 – F
b. Final Marks: 50 to 59 (both inclusive) – D
c. Final Marks: 60 to 72 (both inclusive) – C
d. Final Marks: 73 to 85 (both inclusive) – B
e. Final Marks: 86 and above – A

This program can display data from the existing student record. At the start of program, a menu will be displayed. The program will continue to work until e or E is entered. Error message will be displayed if any number (or a character) other than the given option is entered. Each array must have a size 100 and for the sake of my convenience, the arrays should be populated with exactly 50 student entries. The roll numbers must be unique – you have to take care of this. . . . outputs for options 2-8 must be similar to option 1/* .
2. Sort and display all the records roll number wise in descending order.
3. Sort and display all records in ascending order based on marks in Midterm
4. Sort and display all records in descending order based on marks in Midterm
5. Sort and display all records in ascending order based on marks in Final
6. Sort and display all records in descending order based on marks in Final
7. Sort and display all records in ascending order based on Grade 8. Sort and display all records in descending order based on Grade 9. Add a new entry of a student.
/*Assuming that the arrays got sorted after option 1 was selected, the new student entry which got added is shown below. Addition must be done on the next available index. You must ensure that the arrays are not full. In this option you will also make sure that the roll number that is being entered in unique:

Roll
Number

Midterm
(50 marks)

Final (100 marks)

Class

Grade
25 10.5 55 6 D
45 8 55 7 D
66 36 75.5 6 B
40 25 87.5 8 A
. . . . .
. . . . .
. . . . .

*/
10. Delete a student record based on his roll number.
/*In this option, the user will enter a roll number and the whole data related to it must be deleted. The entries must be shifted so that there is no space in between any entry. Assuming that the user enters 66, the arrays after deletion are shown below:

Roll
Number

Midterm
(50 marks)

Final (100 marks)

Class

Grade
25 10.5 55 6 D
45 8 55 7 D
40 25 87.5 8 A
. . . . .
. . . . .
. . . . .
*/
11. Display record of all the students greater than X marks in final exam (in descending order with respect to marks obtained in final exam). The value of X will be entered by the user.
12. Display record of all the students greater than X marks in final exam (in ascending order with respect to marks obtained in final exam). The value of X will be entered by the user.
13. Display record of all the students less than or equal to X marks in final exam (in descending order with respect to marks obtained in final exam). The value of X will be entered by the user.
14. Display record of all the students less than or equal to X marks in final exam (in ascending order with respect to marks obtained in final exam). The value of X will be entered by the user.
15. Display record of all the students greater than X grade (in descending order with respect to grade). The value of X (character) will be entered by the user.
16. Display record of all the students greater than X grade (in ascending order with respect to grade). The value of X (character) will be entered by the user.
17. Display record of all the students less than or equal to X grade (in descending order with respect to grade). The value of X (character) will be entered by the user.
18. Display record of all the students less than or equal to X grade (in ascending order with respect to grade). The value of X (character) will be entered by the user.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 10:50
Using least squares fitting, you are to fit the data sets to the following models and solve for the parameters ai , where i is the index of the parameter. the input/output data for the systems are linked in the bblearn site. for each of the systems use matlab to plot the supplied data vs. the model fit on one plot. include your code in the solutions. (a) linear fit "lineardata.mat" y=a1x^3 + a2x^2 + a3x + a4 (b) plant fit "plantdata.mat g(s) = a1/(s + a2)
Answers: 1
question
Computers and Technology, 22.06.2019 22:30
Jason needs to learn a new web tool. he went through his books to understand more about it. now he wants hands-on experience with using that tool. what would him? jason can use websites where workspace is provided to test the results of your code.
Answers: 2
question
Computers and Technology, 23.06.2019 20:40
On nba 2k 19, every time i try to join a my park game, it leads ro a website telling my dad that he needs ps plus. i already have ps plus though. how do i fix this?
Answers: 2
question
Computers and Technology, 24.06.2019 13:00
George heard about the benefits of a data warehouse. he wants to try implementing one for his organization. however, he is afraid that transferring data to the data warehouse will affect transaction time. which element ensures that transactions are not affected when moving data to a warehouse? when data is transferred to a data warehouse, the a area frees the source system to continue transaction processing.
Answers: 2
You know the right answer?
A school maintains academic record of its students (of a class) in different arrays. The information...
Questions
question
Mathematics, 08.03.2021 05:40
question
Mathematics, 08.03.2021 05:40