Click here to Skip to main content
15,894,896 members

Comments by spin_1085 (Top 3 by date)

spin_1085 13-Aug-13 22:52pm View    
Thanks Sergey. I am very appreciative of this.
I am reading the text now. I am going to have to go back to loops then to classes/methods and relearn everything. Arrg! Oh well nothing like having to focus on what you really want. Thanks again
spin_1085 13-Aug-13 22:02pm View    
SA & Bill,

Thanks guys, I have modified the post to include what the stated mission is. Thanks for taking the time to help out a brand new noob. This what I really want to do. I am willing to do anything to learn and master programming. I have included what I have so far. From the looks of it I am need to get my ass in gear, This is week 5 of programming for me.
spin_1085 13-Aug-13 19:56pm View    
Sergey thanks for the brutal honesty. Yes the problem is artificial. I have been sporadically reading the textbook, I have not been practicing. I have been trying to learn how to code only from my lectures in class. I know now that I need to apply myself better than this. Thank you again. below are the details to this question from the pseudocode provided.

Main Function:
Declare player and score arrays, and variables for number of players and average score.
Call the InputData() function, passing arrays and number of players variable by reference.
Call the DisplayPlayerData() function, passing the arrays and number of players variable by reference
Call the CalculateAverageScore() function, passing arrays and number of players by reference
Store returned value in average variable
display the average score
Call the DisplayBelowAverage() function, passing arrays and number of players variable by reference, passing average by value.

InputData function:
Loop while the number of players is less that the length of the array
prompt for the palyers name
If the users entered Q, break out of the Loop
Prompt the user for the players score
add 1 to the number of players

DisplayPlayerData function:
loop to display the name and score of each player

CalculateAverageScore Function:
Loop to add up the scores
Divide by the number of players to calculate the average score
Return the average score to main

DisplayBelowAverage function:
Loop to display the names and scores of all players who scored below the average score.

This should give a little clarity to what I am trying to accomplish. Thanks again for the awakening.