![]() |
|
|||||||
|
|
Thread Tools | Search this Thread | Rate Thread |
|
#1
|
|||
|
|||
Write a program to compute for the average grade of N scholarsi have a machine problem assignment about arrays, but this topic was least taught to us. so i only have a very little knowledge about array programming
my task is to compute for the average grade of N scholars. N will be entered on the keyboard. The student no. and grades of the scholars in 8 subjects will also be entered by the user on the keyboard. i have a short syntax but it seem not to be correct. please help me as i very much need this thank you in advance my code is this CPP / C++ / C Code:
output should be like this (sample only, average is not really computed) output is for N = 2 STUDENT NO. S1 S2 S3 S4 S5 S6 S7 S8 AVERAGE 123 56 76 34 89 56 90 87 67 79.4 235 34 76 21 99 76 80 45 35 56.8 Last edited by admin : 12-Oct-2008 at 23:10.
Reason: Please insert your example C/C++ codes between [CPP] and [/CPP] tags
|
|||
|
#2
|
|||
|
|||
Re: Help In Array ProgramingJust add the score and divide by number of students.
|
|
#3
|
|||
|
|||
Re: Help In Array Programinghere is the copy of my problem
and computing the average is not the only problem Write a program to compute for the average grade of N scholars. N will be entered on the keyboard and the Student No. and grades of the scholars in 8 subjects will be entered in tabulated form as shown below: sample input/output display for N=5 FIRST SEMESTER: student no. s1 s2 s3 s4 s5 s6 s7 s8 average 113 80 80 80 80 80 80 80 80 80 222 85 85 85 85 85 85 85 85 85 334 90 90 90 90 90 90 90 90 90 435 70 70 70 70 70 70 70 70 70 555 95 95 95 95 95 95 95 95 95 SECOND SEMESTER: student no. s1 s2 s3 s4 s5 s6 s7 s8 average 222 90 90 90 90 90 90 90 90 90 334 80 80 80 80 80 80 80 80 80 555 95 95 95 95 95 95 95 95 95 FINAL REPORT: STUDENT NO. 1ST SEM 2ND SEM AVERAGE 113 80 x x 222 85 90 87.5 334 90 80 85 435 70 x x 555 95 95 95 RANK NO. 1: STUDENT NO. 555 In the above tabulation, the Student No. and the 8 grades are keyboard input while the last column is the output of the average of the 8 grades as computed by the program. Only the scholars who maintain an average grade of 85 or higher are qualified for scholarship for the second semester. A final report at the end of the school year is generated as shown above, and the highest final average for the 2 semesters should be determined, to know who ranks first among the scholars. |
|
#4
|
|||
|
|||
Re: Help In Array ProgramingQuote:
Last edited by ocicat : 12-Oct-2008 at 21:36.
|
|
#5
|
|||
|
|||
Re: Help In Array Programingthanx for the reply!
CPP / C++ / C Code:
this is only for the FIRST SEMESTER, how can i evaluate the scholars to be eligible for the 2nd semester? thanx for the help |
|
#6
|
|||
|
|||
Re: Help In Array ProgramingQuote:
|
Recent GIDBlog
Problems with the Navy (Chiefs) by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| where is the problem and can you fix it (php) | oggie | MySQL / PHP Forum | 8 | 14-Apr-2008 16:08 |
| Getting a line error in register | oggie | MySQL / PHP Forum | 5 | 13-Apr-2008 17:16 |
| What is an array? | Howard_L | C Programming Language | 3 | 05-Oct-2007 06:11 |
| How to sort in C++ alphabetically | wilen | C++ Forum | 5 | 20-Apr-2007 15:43 |
| Need help deleting the last element in the array | headphone69 | C++ Forum | 2 | 15-Mar-2006 20:31 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The