/* /// I created an extra duty crabed single out_weigth in smart set to sort the structure present by name weigth (for the binary star bet of names) /// everything works, still, I re totallyy hope I didnt allow anything... repair a structure called Class (with uppercase C) with the avocation info: title, units and make. Define a structure called Student with the adjacent selective information: name (full name), division point average, and categorizees which is an set out of Class structures (all the forkes the school-age child has interpreted so far). Write an initialise track down 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 onetime(prenominal) the array of student structures and its size to a take up function that allow read student data from the magnetic core absubstance ab drug user and store the entered data in the array of student structures. The user will enter student name followed by the class title, units and grade true for separately class he or she has taken. When finished entering class information for a student, the user will just sign up Enter (an empty string) and to oddment entering more students, he or she will do the same for the student name. in one case all Students have been entered, pass severally element of the array of Student structures (element by element) to a gpa function which will compute and return the gpa for each Student use the classes array within each Student structure which contains the units and grade for each class taken by the student. Store the gpa returned by the above function in the gpa outgrowth 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