Click here to Skip to main content
16,011,120 members
Home / Discussions / C#
   

C#

 
GeneralRe: normal FTP transfer? Pin
mahraja19-May-08 11:23
mahraja19-May-08 11:23 
GeneralRe: normal FTP transfer? Pin
Ed.Poore19-May-08 11:56
Ed.Poore19-May-08 11:56 
GeneralRe: normal FTP transfer? Pin
The Nightcoder21-May-08 13:50
The Nightcoder21-May-08 13:50 
QuestionJust checking if am on the right track with my code Pin
Angelinna19-May-08 9:11
Angelinna19-May-08 9:11 
AnswerCP Ignore Pin
leckey19-May-08 9:33
leckey19-May-08 9:33 
GeneralRe: CP Ignore Pin
DaveyM6919-May-08 9:45
professionalDaveyM6919-May-08 9:45 
AnswerRe: Just checking if am on the right track with my code Pin
DaveyM6919-May-08 9:43
professionalDaveyM6919-May-08 9:43 
AnswerRe: Just checking if am on the right track with my code Pin
#realJSOP19-May-08 10:04
professional#realJSOP19-May-08 10:04 
It doesn't appear as if you've sufficiently analyzed the problem. Until you do that, you can't possibly design the code.

You have one or more pupils, and each of them have one or more homework assignments (like the one you want us to do for you now). Since you don't know how many of either object you will have, you should use a generic list for each.

If it were me, I'd give the pupil object a numeric ID, a name, an address, and a phone number, as well as a list to hold homework assignments. I'd provide public properties to retrieve these items from the pupil object.

As for the homework object, I'd include a numeric ID, a date it was assigned, a date it was turned in, a date it was supposed to be turned in, a subject (or title), and the other required fields. By the way, how are you going to count the words in an essay? Manually? I'm glad I don't have that job (or the transcriber's job for that matter).

At this point, you can iterate through the pupils list and retrieve either average homework grades for each pupil, or determine if they completed a specific homework assignment.

Welcome to the world of computer programming.


"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001


GeneralRe: Just checking if am on the right track with my code Pin
Angelinna19-May-08 12:20
Angelinna19-May-08 12:20 
QuestionInheritance of class properties Pin
redivider19-May-08 8:48
redivider19-May-08 8:48 
AnswerRe: Inheritance of class properties Pin
Gareth H19-May-08 9:37
Gareth H19-May-08 9:37 
AnswerRe: Inheritance of class properties Pin
Guffa19-May-08 12:06
Guffa19-May-08 12:06 
QuestionRemote control a DirectX application Pin
Valar8319-May-08 7:56
Valar8319-May-08 7:56 
AnswerRe: Remote control a DirectX application Pin
Thomas Stockwell19-May-08 8:02
professionalThomas Stockwell19-May-08 8:02 
QuestionPrinting from a web application. Pin
Furi Goled19-May-08 7:01
Furi Goled19-May-08 7:01 
AnswerRe: Printing from a web application. Pin
Pete O'Hanlon19-May-08 8:29
mvePete O'Hanlon19-May-08 8:29 
QuestionRemoting + Events Pin
smoke8619-May-08 7:01
smoke8619-May-08 7:01 
Questionc# windows application browse and upload functionality sourcecode Pin
jay10019-May-08 7:00
jay10019-May-08 7:00 
AnswerRe: c# windows application browse and upload functionality sourcecode Pin
SomeGuyThatIsMe19-May-08 7:40
SomeGuyThatIsMe19-May-08 7:40 
QuestionRetrieving the identity value after insert a row. Pin
aecordoba19-May-08 6:51
aecordoba19-May-08 6:51 
AnswerRe: Retrieving the identity value after insert a row. Pin
SomeGuyThatIsMe19-May-08 7:01
SomeGuyThatIsMe19-May-08 7:01 
GeneralRe: Retrieving the identity value after insert a row. Pin
aecordoba19-May-08 7:29
aecordoba19-May-08 7:29 
GeneralRe: Retrieving the identity value after insert a row. Pin
SomeGuyThatIsMe19-May-08 7:36
SomeGuyThatIsMe19-May-08 7:36 
GeneralRe: Retrieving the identity value after insert a row. Pin
aecordoba20-May-08 2:18
aecordoba20-May-08 2:18 
GeneralRe: Retrieving the identity value after insert a row. Pin
SomeGuyThatIsMe20-May-08 3:16
SomeGuyThatIsMe20-May-08 3:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.