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 to 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 the program. Implement each of the first five menu options as a separate function. The attached file “data.txt" is for test. 1172121$Imad Qahtani$85$88$77.8$66.67$90.5 1202145$Saja Qanatra$75$78$87.8$65.67$83.5 1187458$Salem Abdalhafeez$85$88$77.8$66.67$77.5 1197845$Tarek Masoud$85$88$77.8$66.67$67.5 1204587$Tala Hamdan$85$88$77.8$66.67$95.5

Oh no! Our experts couldn't answer your question.

Don't worry! We won't leave you hanging. Plus, we're giving you back one question for the inconvenience.

Submit your question and receive a step-by-step explanation from our experts in as fast as 30 minutes.
You have no more questions left.
Message from our expert:
Hi and thanks for your question! Unfortunately we cannot answer this particular question due to its complexity. We've credited a question back to your account. Apologies for the inconvenience.
Your Question:

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 to 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 the program.
Implement each of the first five menu options as a separate function.

The attached file “data.txt” is for test.

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 to 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 the program.
Implement each of the first five menu options as a separate function.
The attached file “data.txt" is for test.
Transcribed Image Text: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 to 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 the program. Implement each of the first five menu options as a separate function. The attached file “data.txt" is for test.
1172121$Imad Qahtani$85$88$77.8$66.67$90.5
1202145$Saja Qanatra$75$78$87.8$65.67$83.5
1187458$Salem Abdalhafeez$85$88$77.8$66.67$77.5
1197845$Tarek Masoud$85$88$77.8$66.67$67.5
1204587$Tala Hamdan$85$88$77.8$66.67$95.5
Transcribed Image Text:1172121$Imad Qahtani$85$88$77.8$66.67$90.5 1202145$Saja Qanatra$75$78$87.8$65.67$83.5 1187458$Salem Abdalhafeez$85$88$77.8$66.67$77.5 1197845$Tarek Masoud$85$88$77.8$66.67$67.5 1204587$Tala Hamdan$85$88$77.8$66.67$95.5
Knowledge Booster
Data analytics tools
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, management and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Understanding Business
Understanding Business
Management
ISBN:
9781259929434
Author:
William Nickels
Publisher:
McGraw-Hill Education
Management (14th Edition)
Management (14th Edition)
Management
ISBN:
9780134527604
Author:
Stephen P. Robbins, Mary A. Coulter
Publisher:
PEARSON
Spreadsheet Modeling & Decision Analysis: A Pract…
Spreadsheet Modeling & Decision Analysis: A Pract…
Management
ISBN:
9781305947412
Author:
Cliff Ragsdale
Publisher:
Cengage Learning
Management Information Systems: Managing The Digi…
Management Information Systems: Managing The Digi…
Management
ISBN:
9780135191798
Author:
Kenneth C. Laudon, Jane P. Laudon
Publisher:
PEARSON
Business Essentials (12th Edition) (What's New in…
Business Essentials (12th Edition) (What's New in…
Management
ISBN:
9780134728391
Author:
Ronald J. Ebert, Ricky W. Griffin
Publisher:
PEARSON
Fundamentals of Management (10th Edition)
Fundamentals of Management (10th Edition)
Management
ISBN:
9780134237473
Author:
Stephen P. Robbins, Mary A. Coulter, David A. De Cenzo
Publisher:
PEARSON