Computers and Technology

The project in c You are not allowed to use structure

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

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 16:00, cravens511peeelg
An english teacher would like to divide 8 boys and 10 girls into groups, each with the same combination of boys and girls and nobody left out. what is the greatest number of groups that can be formed?
Answers: 2
image
Computers and Technology, 24.06.2019 12:30, nomood
Select all that apply. what two keys listed below should you use to enter data in an excel worksheet? tab backspace enter right arrow
Answers: 2
image
Computers and Technology, 24.06.2019 20:00, Cookie320
Write c++programs for the following problem: let the user enter two numbers and display which is greater. !
Answers: 1
image
Computers and Technology, 25.06.2019 07:30, ineedhelp2285
In a single day more than blank people's lives are affected simply by driving a motor vehicle
Answers: 1
Do you know the correct answer?
The project in c You are not allowed to use structure

Assume that a file contains stude...

Questions in other subjects: