15,894,896 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
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.