Closed

C Programming task

You must first load all run data from the given text file to an array of bicycle results (an array of structs). In your program, the text file must be called "cykelloeb". Each line in the data file represents one result of one cycle race for one rider. The format of a line in the text file is:

race name rider name rider-age rider-hold nationality placement driving time

The placement can also be specified as DNF (did not finish) as a sign that the rider did not complete the race or as an over time limit (OTL) indicating that the rider did not reach the goal within the time limit of the race (thus not achieving a proper placement) . Driving time is specified in hours, minutes and seconds separated by the drawn colon. Riders who have not completed the race have a driving time indicated by the sign '-'. The seven components of a race result are separated by one or more spaces, although the group of age, team and nationality is encircled with the character '|'. Here is an example of a race result:

ParisRoubaix "Greg VAN AVERMAET" | 32 BMC BEL | 1 5:41:07

Cyclists are awarded a number of points based on their participation, and their achievements, in the bicycle race that is included in the data. Here are the rules for awarding points:

1) Participation points: Participation and implementation in a cycling race within the time limit gives 3 points. Participation and implementation in a cycling race outside the time limit gives 1 point.

2) Placement points: If you complete the cycle race without exceeding the time limit of the race, you get (M - P) / 13 extra points, where M is the number of riders who have run the race (including the riders who have received DNF) and P is the rider's position in run.

3) Podie points: In addition to this, the winner of a bicycle race will receive 10 extra points, the second two will receive 5 extra points, and the number three will get 2 extra points.

Write a C program with the following troubleshooting features:

Find and print the race results for all Italian cyclists over 30 years. In this task, it is OK to create a function that just prints the results directly.

Write a function that returns an array of all the Danish riders who have completed one or more of the four bicycle races, either with a location or with OTL. Call the feature and print these Danish riders and how many races each Danish rider has completed. Note that each rider only wishes to be printed once.

Print the 10 riders who have achieved the most points. Sort primarily riders by number of points. By punctuality, the riders are sorted alphabetically by surname. (The last name is that part of the rider's name, which is written in uppercase letters. Note that the surname may also contain spaces and special characters).

In this task, focus is on the two cycling race Paris Roubaix and the Amstel Gold Race. Write a function that finds the rider who has completed both of these races and has the minimum total driving time in the two races. The function must have the rider and total driving time as output parameters. Call the function and print the rider's name and total driving time (in hours, minutes and seconds).

Calculate the average age (of the double type) among all the riders who have achieved a top position in one or more cycling bets. Be sure that riders who have a top ten result in two or more of the four races are not included once more in the average calculation.

Write a main function, which in a simple text-oriented dialog with the user allows activation of the above functions. It is recommended that this part of the program be made as simple as possible.

Suppose your translated program is on the [login to view URL] file. When your program is running as

[login to view URL] - print

it must - without receiving any input from the user - print your results for all tasks in a clear and clear way on the standard output. (Use program parameters to main to achieve this).

Skills: C Programming

See more: fun programming task, freelance programming task, simple programming task java, outsource programming task, java programming task, post small programming task, shell programming task, joomla programming task, network programming task, pascal programming task, android aspnet c programming mvc php, android aspnet c# programming mvc, php,, arm microcontroller c programming, basic c programming, c easy programming task, C programming task , c++ easy programming task, c++ programming task, c# programming task freelancer

About the Employer:
( 0 reviews ) Haderslev, Denmark

Project ID: #18261333

32 freelancers are bidding on average $365 for this job

freelancerLatino

Hello, I am a guru with C and C++ ... I can do it in few days....please, let me know when you need it, and I will do it. Best regards!

$333 USD in 5 days
(83 Reviews)
7.1
hbxfnzwpf

I am very proficient in c and c++. I have 16 years c++ developing experience now, and have worked for more than 7 years. My work is online game developing, and mainly focus on server side, using c++ under Linux environ More

$250 USD in 5 days
(101 Reviews)
6.8
logos104

Hi. I have about 15 years of programming experience. Mostly I used C, C++ and C# for my projects development. I can implement the task.

$400 USD in 5 days
(82 Reviews)
6.4
AwaisChaudhry

Hi there, I have checked the details I have rich experienced with C Programming. Please initiate chat so we can discuss this job.

$555 USD in 10 days
(5 Reviews)
5.6
kcbStar

Hello, I am interested in this project and so wanted to discuss more it in details. I have a lot of experience in C programming. I will provide you quality work according to your instrument. I am ready to discuss with More

$555 USD in 10 days
(91 Reviews)
5.8
xzan88

Hi, I have over 10 years of experience in C and C++. I have read the entire description. I can do this in a day or two. Please message me.

$500 USD in 2 days
(66 Reviews)
6.0
maysam

quality work. .

$500 USD in 5 days
(15 Reviews)
5.5
NewHorizons2016

Hello there, I teach C++ and have 20+ years experience of commercial R&D based C and C++ engineering experience. Can I help you with this task? :)

$300 USD in 2 days
(12 Reviews)
5.3
endlessflier

Hi, Thanks for posting this job. I am familiar to c programming. And I have rich experience. I am interested in your project. I hope to work with you. Please invite me. Thanks. With Regards.

$500 USD in 10 days
(13 Reviews)
4.8
maksum1

Hello , i have more than 3 year work in this sphere. I stick to international standards when do work. So, guarantee really well done work with explains. And the better is the conformity price/quality With my ex More

$444 USD in 1 day
(33 Reviews)
5.0
icatherinedivya

Hi, I can do this for $200 I do a lot of C programming and I can definitely finish this in quick time. I can easily read the riders data from file, parse the strings into an array of structure and calculate the requ More

$250 USD in 1 day
(17 Reviews)
4.5
goldsea808

hello,how are you. i read your bid carefully. i am c/c++ expert and have full experience for 10 years. c++ language is my top skill. i can provide most quality and high speed. if you want to success, please contact More

$500 USD in 10 days
(5 Reviews)
4.6
TisteAndii

Hi, I'm an embedded software engineer with extensive experience with C. C/C++ is pretty much all I use for work. I understand your task, essentially to parse the input text file, extract certain pieces of data from it More

$250 USD in 3 days
(15 Reviews)
4.1
binarycodersvw

Hi.I am a Visual Basic .NET programmer with 14 years experience(others say this too but I can show proof). This is not another automated bid like the ones you see around. I have read the description of your project an More

$555 USD in 6 days
(5 Reviews)
4.2
corke123

Hi. I would like to work with you on this project. As a C developer, I can do it for you quickly and by your requirements. I have done a lot of projects like this. Message me to discuss more your project, when you need More

$250 USD in 2 days
(10 Reviews)
3.7
bluetiger12

hi, dear. i read your description. i have some experience of c/c++ programming in 6+ years. i want to work for your project with my skill. you will can discuss your project with me more detail via chat. please con More

$250 USD in 6 days
(16 Reviews)
3.6
DianaAli0608

I can do this project. I have experience of C & C++ and Java programming for 4+ years. I can satisfy you perfectly. Please contact me and discuss in detail.

$250 USD in 1 day
(10 Reviews)
3.4
LiaoFang

Dear client. Nice to meet you. I've read you project description carefully and very interested. Let's discuss over chat and get started. Waiting your reply. Warm regards.

$400 USD in 10 days
(4 Reviews)
3.5
unix515

Hello. I'm an 10 years experienced C/C++ programmer. I've already completed many algorithm related project. And for your cycling program, I can your request as simple as possible. I think my skill can be help for yo More

$500 USD in 2 days
(6 Reviews)
3.5
arajdhar

Hello, From the description of the project, it seems that you want to implement some "Database related operations" such as searching, sorting, and indexing using C by reading a given text file. As I already worke More

$275 USD in 10 days
(3 Reviews)
3.0