subject
Computers and Technology, 04.06.2021 18:00 des9263

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 scoreand 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.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 18:00
Which of the following is a true statement about milestones
Answers: 1
question
Computers and Technology, 21.06.2019 21:00
When a rectangular region is defined using an appropriate style, which value matches the specified edge of the clipping region to the edge of the parent element?
Answers: 3
question
Computers and Technology, 22.06.2019 18:00
Write a method named addall that could be placed inside the hashintset class. this method accepts another hashintset as a parameter and adds all elements from that set into the current set, if they are not already present. for example, if a set s1 contains [1, 2, 3] and another set s2 contains [1, 7, 3, 9], the call of s1.addall(s2); would change s1 to store [1, 2, 3, 7, 9] in some order. you are allowed to call methods on your set and/or the other set. do not modify the set passed in. this method should run in o(n) time where n is the number of elements in the parameter set passed in.
Answers: 2
question
Computers and Technology, 23.06.2019 03:00
Jason, samantha, ravi, sheila, and ankit are preparing for an upcoming marathon. each day of the week, they run a certain number of miles and write them into a notebook. at the end of the week, they would like to know the number of miles run each day, the total miles for the week, and average miles run each day. write a program to them analyze their data. your program must contain parallel arrays: an array to store the names of the runners and a two-dimensional array of five rows and seven columns to store the number of miles run by each runner each day. furthermore, your program must contain at least the following functions: a function to read and store the runners’ names and the numbers of miles run each day; a function to find the total miles run by each runner and the average number of miles run each day; and a function to output the results. (you may assume that the input data is stored in a file and each line of data is in the following form: runnername milesday1 milesday2 milesday3 milesday4 milesday5 milesday6 milesday7.)
Answers: 3
You know the right answer?
Assume that a file contains students' ids , full names, and their scores (Assignments grade, quizzes...
Questions
question
Mathematics, 25.03.2021 07:40
question
Mathematics, 25.03.2021 07:40
Questions on the website: 13722363