Forum: C May 3rd, 2007 |
| Replies: 17 Views: 2,060 I DID ALL BYMYSELF LOL JK NARUE THANK YOU VERY MUCH YOUR GUIDENCE HELPED ALOT
LOOK AT THE OUTCOME
double sum = 0;
for (x=0; x<2; x++)
{
double avg = ( st[x].assignment + st[x].quiz1 +... |
Forum: C May 3rd, 2007 |
| Replies: 17 Views: 2,060 i relized it was just a simple mistake at teh begging of the code i had set it to 25 studetns but by the time i got to the bottom i just put in a random number of students
now i am done with that... |
Forum: C May 3rd, 2007 |
| Replies: 17 Views: 2,060 hey it worked narue yo the man
i figur wat was wrong i had the tot # of student to 25 so i changed it all to 2 and it worked
now how do i place ** next to the ones with 95 % |
Forum: C May 3rd, 2007 |
| Replies: 17 Views: 2,060 /*for (x=0; x<2; x++)
{
if (st[x].id == 0)
break;
printf("\n %ld ", st[x].id);
printf("\t %s ", st[x].name);
printf("\t %.1f ", st[x].assignment); //print average instead and *** when >95
} ... |
Forum: C May 3rd, 2007 |
| Replies: 17 Views: 2,060 also it is givin me the wrong output
i need to list the avg of all the students entered with a *** next to the ones with 95% or higher |
Forum: C May 3rd, 2007 |
| Replies: 17 Views: 2,060 so why do u divede by 5 not 3 |
Forum: C May 3rd, 2007 |
| Replies: 17 Views: 2,060 ok lets see
so far i got this as your alredy know now where do i start, like how do I total the avg for all students.
struct student
{
long id;
char name[26];
float assignment;
float... |
Forum: C May 3rd, 2007 |
| Replies: 17 Views: 2,060 lol its not homework school is done lastweek
I just had this problem left over and couldt seem to get the avg of all the students also the *** beside all who scored over 95
i did this program... |
Forum: C May 3rd, 2007 |
| Replies: 17 Views: 2,060 at the end of this program we have to add the average of all the students* add and divide by 3* also put a ** next to student who have over 95 % both thses should be displayed at the end
so... |