An app to generate the standing of a race

M

mrjaune

Hi,
I'm quite a newbie and I want create an application to generate the
standing of a race.
1 - You enter the data relating to the racers:
Name
Number
Points in round 1
Points in round 2

2- The app calculates the total of points for each racer.

3- The app give the list of the racers from the one who have the most
of point from the one who have the less of point.

4- I can print and save the list.

5- I want to a the possibility to load it again.

Any help would be appreciate.
Thank you.

Rita
 
G

Guest

Rita,

Is this homework for a programming course?

If not, you should consider signing up for a programming course.

Kerry Moorman
 
C

Chris Dunaway

Hi,
I'm quite a newbie and I want create an application to generate the
standing of a race.
1 - You enter the data relating to the racers:
Name
Number
Points in round 1
Points in round 2

2- The app calculates the total of points for each racer.

3- The app give the list of the racers from the one who have the most
of point from the one who have the less of point.

4- I can print and save the list.

5- I want to a the possibility to load it again.

The people who help others here will not write your program for you.
It is generally expected that you will attempt the write the program
yourself and then ask specific questions about things you are having
trouble with.

Here are some hints to help you get started:

1. You will need some way to store the Name, Number, and points. The
Name and Number will probably be string variables (unless you need to
do some calculation with Number in which case it should probably a
numeric type). Since you will doing calculations using the points,
they should be a numeric variables.

2. You will need a numeric variable to hold the sum of the points for
each racer.

3. Once you have calculated the points, you will want keep track of
each racer, perhaps using a list. To display them in order, you will
have to sort the list.

4. For printing, do you mean to paper? Or to the screen? If to the
screen, you can use a label or if you are writing a console program,
you can use Console.WriteLine().

5. For saving and loading the list, you will use the classes in the
System.IO namespace.

In general, when writing a program, you should break it down in to
smaller tasks. So take each of the 5 items you listed and just
concentrate of getting each one to work. But as you do, try to keep
in mind how each of the smaller tasks will affect the others.

Good luck,

Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top