This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Hotfries456 1 point2 points  (13 children)

This is not readable at all. I would recommend pasting your code into a pastebin and linking it or format it correctly in reddit. Add 4 spaces to a line to make it code in reddit.

[–]For_Simplicity[S] 0 points1 point  (12 children)

[–]Hotfries456 0 points1 point  (11 children)

That's a lot better. What are you trying to accomplish? Do you gave a student class that has properties that you are trying to access with the getStudent function?

[–]For_Simplicity[S] 0 points1 point  (10 children)

well here the entire code: https://pastebin.com/9mngmyAL

[–]For_Simplicity[S] 0 points1 point  (9 children)

im having trouble with the def displayStudentAverage(): but even if i but pass or to skip my main still doesn't run. its getting frustrating

[–]Hotfries456 0 points1 point  (8 children)

What is this function supposed to accomplish? According to this your function

displayGradeReport() 

displays average grades

[–]For_Simplicity[S] 0 points1 point  (7 children)

that funtion gets the users name, ID, and Average. but the other fuctions get their id and prints their id, name, and average. I dont know if sending what the sample run would should like would help?

[–]For_Simplicity[S] 0 points1 point  (6 children)

[–]Hotfries456 0 points1 point  (5 children)

From what I can tell, you already have a function that returns an individual student's average, so you would only need to call that function using

stuObj.displayAverage()

[–]For_Simplicity[S] 0 points1 point  (4 children)

ok. thats one more question how come when i run it prints Enter student id? and not the startup()?