Time remaining:
c++ programming

Programming
Tutor: None Selected Time limit: 0 Hours

c++

Write a program that uses two structures to store the following data:

Student

Ø  id    // student id

Ø  name  // student name

Ø  tests   // a pointer to an array of test scores

Ø  avg    // average test score

Ø  grade  // course grade

Course

Ø  crn    // course registration number, such as 21719

Ø  cid   // course id, such as CIS-022B-01

Ø  noStu  // number of students in the class

Ø  noTests  // number of tests

Ø  stuList  // a pointer to an array of Student structures

The program keeps a list of test scores for a group of students. It reads data from cis22B.txt. It dynamically allocates a course structure and reads the corresponding data from the text file into the structure (crn, cid, noStu, noTests). Then it uses noStu to dynamically allocate an array of Student structures (stuList). Each structure’s tests member should point to a dynamically allocated array that will hold the test scores (noTests)

After the array has been created and loaded, the program calculates the average test score and determines the grade for each student (A: 91-100 , B: 81-90, C: 71-80, D: 61-70, F: 60 or below).

Sort the array in ascending order by student name.

Write to sorted.txt the following: crn, cid, noStu, and a table (header included) containing the student id, the name of the student, the average score and the grade.


Nov 9th, 2013

.i can help you in your assignments...i can provide you good quality work so that you can get A gradings in your course.I can do your work in a very short time .......answers will be upto mark and correctly written..thanks.....waiting for your reply ,,ans soon
Nov 9th, 2013

how much pay you $ plz reply

Nov 9th, 2013

Did you know? You can earn $20 for every friend you invite to Studypool!
Click here to
Refer a Friend
...
Nov 9th, 2013
...
Nov 9th, 2013
Dec 8th, 2016
check_circle
Mark as Final Answer
check_circle
Unmark as Final Answer
check_circle
Final Answer

Secure Information

Content will be erased after question is completed.

check_circle
Final Answer