# C++ Looping assignment

• November 13th, 2011, 03:28 PM
TheRayMan54
C++ Looping assignment
I have an assignment given to me since I'm trying to learn C++ but I don't know how I can to put it into code. I'm having a little bit of a problem with loops and am wondering if I could get some help.

Here is what I need

Diver's name, City
JudgeScore1 - Scores are entered from 1-10
JudgeScore2
JudgeScore3
Judgescore4
Judgescoe5
DegreeOfDifficulty - Assigned once for each diver
OverAllScore - Individual's scores totaled and then divided degree of
difficulty. Highest and Lowest Scores are removed as they are often skewed entires.
DegreeOfDifficulty - Degree of difficulty ranges from 1.00 to 1.67
Display the diver's information and overall score

Then list the number of divers and the average of the overall scores

Which variables would I need to define? How would I go about doing this?
• November 13th, 2011, 06:05 PM
Re: C++ Looping assignment
What are the steps you would do if you were to tell a very dense person to do this? What information will they need to remember from one step to the next?

Writing psudocode like this is a very effective way of trying to understand the problem and find a solution.

BTW, we don't do your homework for you, but if you have problems and you try, then find out you can't figure out how to do something, explain what it is you are having trouble with. Include a small code piece that shows your attempt and describe what your problem is. If you can break down the problem into a small isolated segment of code, you may find that you may come up with your own solution.

A
• November 13th, 2011, 06:22 PM
TheRayMan54
Re: C++ Looping assignment
Sorry about that, I wasn't expecting homework done just help.

I'm still a beginner in C++. I'm having issues with a few portions of the code.

How do I define the names of the divers?

And how do I properly use a nested loop?

• November 14th, 2011, 03:48 AM
monarch_dodra
Re: C++ Looping assignment
Quote:

Originally Posted by TheRayMan54
Sorry about that, I wasn't expecting homework done just help.

I'm still a beginner in C++. I'm having issues with a few portions of the code.

How do I define the names of the divers?

And how do I properly use a nested loop?