Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

C programming ^^ Project Title: Handling students’ grades Write a menu driven pr

ID: 3693504 • Letter: C

Question

C programming ^^

Project Title: Handling students’ grades Write a menu driven program with the following options:

Before start showing the menu options, you have to make a file which contains data of some students’ ids and grades using appropriate format. The number of lines of the file is unknown. First task is to store the data in two parallel arrays (arr_ids, arr_grades). Make the ids array of type long to handle large integer values. Then the program will show a menu of choices as following:

1. Add a grade (read the id, grade from the user). The program will add the grade and id only if the entered id does not exist already among the id’s present in the array. If it exists, the program shall inform the user by showing an appropriate message. (Assume that each id has only one grade, so duplicated id is not allowed).

2. Find a grade given an id (i.e. your program will read the id from the user and find the corresponding grade to display it).

3. Delete a user from the 2 arrays given the relevant id (so you have to delete both: id and grade from the array).

4. Find the highest three grades and print them with the corresponding ids.

5. Find the lowest three grades and print them with the corresponding ids.

6. Finds the average of grades and display it on the screen.

7. Find grades which are greater than the average and print them with the corresponding ids.

8. Find the max grade among students and print its id with the corresponding grade.

9. Find the min grade among students and print its id with the corresponding grade.

10. Save (write) the id’s and grades after the updates you have done previously in a file using the same format used in the original data file.

11. Print the 2 arrays on the screen using the same format of the data file.

Practice modular programming by writing functions whenever possible. Follow the convention concerning variable names. Insert comments wherever needed.

(( Note: please as simple as you can without complexing and make sure it works in C programming. ))

THANKYOU VERY MUCH.

Explanation / Answer

import java.io.*; import java.util.Scanner; class studentDetails { public String name[][] = new String[10][10]; void getDetails(int n) { Scanner get = new Scanner(System.in); int limit=n; System.out.println("Enter "+limit+" Student Details "); for(int i=0;i