subject

Assume that a file contains students' ids, full names, and their scores (Assignments grade, quizzes grade, Midterm grade, Practical exam grade, and final exam grade) (each column is separated by $). You are
required write a C program to do the following:
.
• Using the concept of parallel arrays create records for students with above attributes (id, full name,
score). (you are not allowed to use structure)
Ask the user to enter the input file name and read it (suppose that, there are different files you
could read data from). Read the data from the file and store it in record for students, which has
IDs, Names, and Scores. The IDs should be declared as integers, the Names as a two-dimensional
array of characters and the Scores as doubles. Assume that the maximum length of full name of
any student is 50 characters. Also, you may assume that there will be no more than a 1000 student
records in the file.
• Calculate the final grade as the flowing:
Grade (Assignment)*15%+(Quizzes) "15%+(Midterm exam) •25%+(Practical Exam)
* 10%+(Final)*35% Assuming that data in files are arranged in same order of the above equation with
respect to grades
Hint: read form file, calculate the final score, and store it in the record before going to the next step
Display the following menu to the user and read the entered choice:
1) Sort data in ascending order according to students' IDs and then display it.
2) Sort data in ascending order according to students' names and then display it.
3) Sort data in descending order according to students' scores and then display it
Note: After running any of the above menus items, ask the user if he/she would like to save the current result, if so,
prompt user to enter file name.
4) Ask the user to enter a student ID and display his score
5) Ask the user to enter a student name and display his score
6) Exit the program
The program should keep displaying the menu until the user selects to exit from program implement each other of the first five menu options as a separate function the attached file “data. txt” is for test

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 10:30
Aconstruction company is creating a powerpoint presentation describing how they calculate costs during each construction step. they plan to email this presentation to clients. the individual clients will be watching the presentation slide show on their own personal computers. what is the most important formatting step the company should take to make the text readable and pleasing to the eye?
Answers: 2
question
Computers and Technology, 22.06.2019 11:00
Which are examples of note-taking tools? check all that recording devices sticky notes digital highlighters paper flags highlighting pens digital displays digital flags
Answers: 1
question
Computers and Technology, 22.06.2019 13:30
Write lines of verse that rhyme to remember the following information: acid rain is a type of air pollution caused by chemicals in the air.
Answers: 1
question
Computers and Technology, 23.06.2019 17:30
Write pseudocode to represent the logic of a program that allows the user to enter a value. the program multiplies the value by 10 and outputs the result.
Answers: 1
You know the right answer?
Assume that a file contains students' ids, full names, and their scores (Assignments grade, quizzes...
Questions
question
Mathematics, 21.04.2021 21:10
question
Mathematics, 21.04.2021 21:10
question
Health, 21.04.2021 21:10
question
Mathematics, 21.04.2021 21:10
Questions on the website: 13722363