Monday, October 14, 2013

Assignment #5

/* /// I created an extra duty crabed single out_weigth in lodge to sort the structure roam by name weigth (for the binary program bet of names) /// everything works, still, I re each(prenominal)(prenominal)y hope I didnt block up anything... repair a structure called Class (with uppercase C) with the ultime info: title, units and make. Define a structure called Student with the pursuit selective information: name (full name), mannequin point average, and categorizees which is an soldiers of Class structures (all the straines the schoolchild has interpreted so far). Write an initialize intention that receives an array of Student structures and its sizing and sets the grade point average of all to 0.0. In main, create 50 Students and call the above function to initialize the gpa for all 50 Students to 0.0. Then, go past the array of student structures and its size to a take up function that forget read student data from the core group ab substance ab drug user and store the entered data in the array of student structures. The user will enter student name followed by the coterie title, units and grade true for to each one class he or she has taken. When finished entering class information for a student, the user will just mash Enter (an empty string) and to oddment entering more students, he or she will do the same for the student name.
Order your essay at Orderessay and get a 100% original and high-quality custom paper within the required time frame.
one time all Students have been entered, pass each element of the array of Student structures (element by element) to a gpa function which will compute and return the gpa for each Student victimisation the classes array within each Student structure which contains t he units and grade for each class taken by t! he student. Store the gpa returned by the above function in the gpa fellow member of the Student structures. GPA is mensural by multiplying the digit of units for each class by the points received for that class, and then adding all these products unneurotic and dividing it by total number of units. The points received for a class is based on the grade: for A, its 4; for B, its 3; for C, its 2; for D its 1; and for F its 0. For example, if...If you want to get a full essay, order it on our website: OrderEssay.net

If you want to get a full information about our service, visit our page: write my essay

No comments:

Post a Comment