Monday, May 24, 2010

How to solve this using c++?

there can be minimum of 1 student or maximum 40 students ina class.it is mandatory for all students to take 4 subjacts every semester namely mathematics, science,history and english for the final exam students can get marks between 0 and 100.


write a c++ program to accept number of students in the cladss, all student's names and final exam marks foe each subject.Print the names of students,mark foreach subject,and aggregate in acsending order of the aggregrate marksfor the final exam.

How to solve this using c++?
Yes, it can be done. That's why it was assigned as a class assignment.
Reply:should of cut back on the damn drinking and went to class





if you did go to class change your major





if you did go to class and got something out of it just need a basic understanding of were to start go to devshed.com





it is a forum of programs and designers





good luck
Reply:Hello dear, we are here to solve your problems. we can tell u how to do it. but dont ask us to write the lengthy programs, that is not in the spirit of yahoo answers.


if u want the way, it should be something like, u need to create a class called student, which has all the attributes like 4 subjects, name, id...


depending on the no. of students, dynamically create an array of that class.


use some constraints for cheking input range for marks.


finally use conditional operators to put them in order %26amp; print them using cout.


thats it.
Reply:constraints for 1-40 and 0-100


conditional operators such as if(){} else{} statements


and logical operator such as %26amp;%26amp;, ||





a sorting algorithm to sort by ascending order or predefined library function, if that is applicable in this case.





http://mathbits.com/MathBits/CompSci/Arr...


http://en.wikipedia.org/wiki/Sort_(C++)


No comments:

Post a Comment