473,788 Members | 2,707 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

An app to generate the standing of a race

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

Mar 31 '07 #1
3 1084
Rita,

Is this homework for a programming course?

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

Kerry Moorman
"mr*****@hotmai l.com" wrote:
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

Mar 31 '07 #2
Rita,

Is this homework for a programming course?

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

Kerry Moorman
"mr*****@hotmai l.com" wrote:
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

Mar 31 '07 #3
On Mar 31, 10:56 am, mrja...@hotmail .com wrote:
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.WriteLi ne().

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

Apr 2 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
15856
by: GIMME | last post by:
One of my coworkers insists that one should never use static methods because race conditions exist. Thinking along the lines that all variable assignments are assignments to static variables. He's wrong. Right? Two users in a web session could both access a static method at the same time and never have any trouble.
5
1748
by: Rebecca Smith | last post by:
I'm building log book to keep track of a racers stats during a long ultra marathon race. Things such as time on the bike, time off, H20 intake, electrolytes and the like. When I say long I mean days! I'd like to have on the input form, the running number of hours the race has been in progress. DateDiff only allows me "h" or hours and this won't take me past 24. I've tried other combinations of formats and formulas but am just spinning my...
1
2668
by: Swami Tota Ram Shankar | last post by:
"Bob Weigel" <dontuwish@nothing.net> wrote in message > > While George Bush, is the epitome of evil, racism, and uncompassionate > > conservatism, Kerry is either deluded, very deluded, or plainly a liar. > As to bush being racist...sorry I dont' see that. You make nasty > presumptions about others which makes you no fun to read... uncompassionate > conservativism...I'd like to take you on a trip where we help people. I'd > give...
18
5862
by: Urs Vogel | last post by:
Hi I wrote an application server (a remoting sinlgeton), where processes must be stopped in very rare cases, done thru a Thread.Abort(). Occasionally, and only after a Thread.Abort(), this component becomes instabile, throwing a Windows like error (access violation on 0x00000002), not an framework exception. The component and all of its subcomponents are 100% managed code. What could go wrong with Thread.Abort()? Thanks for any hints.
18
2210
by: Larry Herbinaux | last post by:
I'm having issues with garbage collection with my long-standing service process. If you could review and point me in the right direction it would be of great help. If there are any helpful documents that you could point me to help me control the GC, then that would be great also. The .Net GC does not cleanup memory of our service process unless it is forced to by another process that hogs memory. · GC Algorithm - This is an issue...
3
2389
by: RossettoeCioccolato | last post by:
Is there a brief tutorial somewhere on how to use the VC8 linker to generate a manifest for an isolated application with a dependency section for an arbitrary dll? There are some implementation details that I don't understand. Supposing I want to bind my application to a specific version of kernel32.dll using a hash, for example? What hash is used? Is it the hash generated by the CryptCATAdmin* functions or just a simple hash of the...
2
1395
by: aldaris | last post by:
"race N cars are lined up at the starting line of a Formula 1 race. Task Write a program that determines in how many ways the cars can pass the finish line, knowing that there may be more than one car arriving at the same time. Input Data Input file race.in contains a single line which has positive integer N on it. Output Data Output file race.out will contain a single line with the number of ways the cars can pass the finish line....
1
1068
by: mrjaune | last post by:
Hello Everyone, I want to create an application to do the standing of a race. First part, for each pilot I want to enter: his name, his number, his team, the number of points. Second part, when I click the button 'standing' the application make the standing from the pilot who have the most point to the pilot who have the less point. Third part, then you can print the list.
7
2312
by: Berryl Hesh | last post by:
I wouldn't nomally post this here, as it has something to do with the ListView control usage I think, or maybe with a race condition or some windoes messaging. I'm just not sure. The test below succeeds IF i walk through the debugger and IF I examine the ListViewItem's properties in the debugger visualizer. Otherwise, it fails. Any ideas? Thanks. BH
0
9498
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10370
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10177
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10113
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9969
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6750
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5402
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5538
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3677
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.