![]() |
|
#1
|
|||
|
|||
BeginnerHey, i have been in a programming class for a semester but i still haven't got it all figured out. I would like to ask someone to help me write a program that read's students names followed by the test scores. The program should output each student's name followed by the setst scores and the relevant grade. It should als find and print the highest test score and the name of the students having the highest test score.
Student dats should be stored in a struct variable for the type StudentType, which has four components: studentFName and studentLName of the type string, testScore of the type int (testScore is between 0 and 100), and grade of the type char. Suppose that the class has 20 students. Use an array of 20 components of the type studentType. If someone could help me out it would be appreciated, thanks. |
|
#2
|
||||
|
||||
Re: BeginnerWhat is your progress so far?
If you have any doubts/questions regarding the program, dont hesitate to ask. But please dont ask us to do the entire program.. Regards, Paramesh. __________________
Don't walk in front of me, I may not follow. Don't walk behind me, I may not lead. Just walk beside me and be my friend. |
|
#3
|
|||
|
|||
Re: BeginnerHaha, i will show you what i have so far when i get back to my class, i meant to post it earlier but i ran out of time
|
|
#4
|
|||
|
|||
Re: BeginnerCPP / C++ / C Code:
Last edited by cable_guy_67 : 19-Apr-2006 at 09:40.
Reason: Please enclose c++ code in [c++] ... [/c++] tags
|
|
#5
|
|||
|
|||
Re: BeginnerCPP / C++ / C Code:
Alright.. I almost figured it out dude. The only problem with this is the names do not sort with the grade and one name comes up with a zero for the score...and I don't know how to fix that...at least we got something to turn in though..haha ![]() Last edited by locomonkey : 19-Apr-2006 at 09:41.
Reason: Please enclose c++ code in [c++] ... [/c++] tags
|
|
#6
|
||||
|
||||
Re: BeginnerWhat is the format of Ch11_Ex1Data.txt or GradeResults.txt? Either attach the text file or describe the format of it. It would help.
Mark BTW, locomonkey, I see you edited for the proper code tags. I do appreciate it... __________________
"Opportunity is missed by most people because it comes dressed in overalls and looks like work." --Thomas Alva Edison "Those who would give up essential liberty to purchase a little temporary safety, deserve neither liberty nor safety." --Benjamin Franklin "A happy person is not a person in a certain set of circumstances, but rather a person with a certain set of attitudes." --Hugh Downs |
Recent GIDBlog
Developing GUIs with wxPython (Part 4) by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| C++ Beginner | JYGUTI | C++ Forum | 2 | 01-Feb-2005 12:27 |
| beginner questions | fightthefuture | C++ Forum | 0 | 20-Jan-2005 02:37 |
| Beginner to VB.NET and C#.NET | theduke1997 | .NET Forum | 4 | 21-Dec-2004 18:14 |
| Help a beginner with apache pls... | seta21 | Apache Web Server Forum | 3 | 27-Nov-2004 08:27 |
| RAID 0 -- beginner questions, need recommendation | ldriskell | Computer Hardware Forum | 2 | 09-Jul-2004 19:47 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The