Find Jobs
Hire Freelancers

C++ program using structs, C-strings, and dynamic memory allocation

$10-30 USD

Κλειστή
Αναρτήθηκε περίπου 8 χρόνια πριν

$10-30 USD

Πληρωμή κατά την παράδοση
Program Steps Read a file containing team names, their conferences and divisions. This data will be stored in an array of structs. Memory for each of the team names must be allocated dynamically. Read a file containing scores. Each record in the file must be parsed to determine the winning and losing team. The number of wins, losses, ties and percentage must be calculated using the data in the scores file. The array of structs must be sorted by conference, division, and percentage to produce output equivalent to that shown below. Program Requirements Use the input files, team name file and scores file. Use this struct to store the data for each team: struct NFL_Team { char* name; char conference[9]; char division[6]; unsigned short wins; unsigned short losses; unsigned short ties; float pct; }; Use char arrays to store all character data for this assignment. The C++ string class may not be used in this assignment. The program output must show the current standings using the team input data and the percentage calculations. Program Output Your output should look quite similar to the following. Note: the actual statistics will be different when you use the current scores file. Output updated 11/3/14 National Football Conference NFC WEST W L T Pct Seattle 8 1 0 0.889 San Francisco 6 2 0 0.750 Arizona 4 4 0 0.500 St. Louis 3 6 0 0.333 NFC SOUTH W L T Pct New Orleans 6 2 0 0.750 Carolina 5 3 0 0.625 Atlanta 2 6 0 0.250 Tampa Bay 0 8 0 0.000 NFC NORTH W L T Pct Green Bay 5 2 0 0.714 Detroit 5 3 0 0.625 Chicago 4 3 0 0.571 Minnesota 1 7 0 0.125 NFC EAST W L T Pct Dallas 5 4 0 0.556 Philadelphia 4 5 0 0.444 Washington 3 5 0 0.375 NY Giants 2 6 0 0.250 American Football Conference AFC WEST W L T Pct Kansas City 9 0 0 1.000 Denver 7 1 0 0.875 San Diego 4 4 0 0.500 Oakland 3 5 0 0.375 AFC SOUTH W L T Pct Indianapolis 5 2 0 0.714 Tennessee 4 4 0 0.500 Houston 2 5 0 0.286 Jacksonville 0 8 0 0.000 AFC NORTH W L T Pct Cincinnati 6 3 0 0.667 Cleveland 4 5 0 0.444 Baltimore 3 5 0 0.375 Pittsburgh 2 6 0 0.250 AFC EAST W L T Pct New England 7 2 0 0.778 NY Jets 5 4 0 0.556 Miami 4 4 0 0.500 Buffalo 3 6 0 0.333 Program Notes There are 32 NFL teams, 16 in each conference. The conferences are National and American. There are 4 divisions with 4 teams in each division. The divisions are NORTH, SOUTH, EAST and WEST. To read the team file, you will have to specifically look for conference records and division records. The scores file will also require specific parsing techniques. To skip over the date and week records, you can look for the text, "SUN", "MON", ... , or "Week". To parse a scores record, you can use strtok(), looking for a comma. It will be handy to write a function that can pick out a team name from a text String. The strstr() function might be useful here. To calculate the team percentage, use the formula: pct = (wins + 0.5 * ties) / total games played To sort the data for the output standings, you might want to create a "sortkey" function, consisting of the conference, division, and percentage. Then you can sort using the "sortkey". And finally, as usual, this assignment contains some subtle aspects.
Ταυτότητα εργασίας: 9685683

Σχετικά με την εργασία

22 προτάσεις
Απομακρυσμένη Εργασία
Ενεργός/ή 8 χρόνια πριν

Ψάχνεις τρόπο για να κερδίσεις μερικά χρήματα;

Πλεονεκτήματα πλειοδοσίας στο Freelancer

Καθόρισε τον προϋπολογισμό σου και το χρονοδιάγραμμα
Πληρώσου για τη δουλειά σου
Περίγραψε την πρόταση σου
Η εγγραφή και η πλειοδοσία σε εργασίες είναι δωρεάν
22 freelancers δίνουν μια μέση προσφορά $30 USD για αυτή τη δουλειά
Avatar Χρήστη
Looks like it is easy assignment, it can be completed in few hours of pure working time .
$26 USD σε 1 ημέρα
4,9 (1202 αξιολογήσεις)
7,7
7,7
Avatar Χρήστη
Hi. i have a lot of experience in C++ programming. I can easily help you with this project in given time. we can have a chat about it. thanks
$60 USD σε 1 ημέρα
4,9 (325 αξιολογήσεις)
7,4
7,4
Avatar Χρήστη
Hi, I have read the requirements and I would like to do this project if given the opportunity. I am a computer science practitioner and having the "C++ and Algorithms Certification Badge" in my profile gives me confidence and assurance that I can deliver you the project as required. Let me know if you are interested so I can have further details besides what was posted. Thanks.
$25 USD σε 1 ημέρα
5,0 (649 αξιολογήσεις)
7,3
7,3
Avatar Χρήστη
Hi, I ' ve done lots of C++ things for random guys and even a few girls :) .............................................
$30 USD σε 1 ημέρα
5,0 (137 αξιολογήσεις)
6,6
6,6
Avatar Χρήστη
I am very proficient in c and c++. I have 16 years c++ developing experience now, and have worked for more than 6 years. My work is online game developing, and mainly focus on server side, using c++ under linux environment. I used c++ to make many great projects, for example, I made the tools which can convert java files into c++ scripts, of course garbage collection included, this job is very similiar to a compiler, and is very complex. I also made our own mobile game using c++, I can show you the demo of client, if you like. I am very proficient in java also. I have a very good review on Freelancer.com, I never miss a project once I accept the job, you can check my review. Trust me, please let expert help you.
$50 USD σε 1 ημέρα
4,9 (141 αξιολογήσεις)
7,0
7,0
Avatar Χρήστη
need an A?contact me :)
$54 USD σε 1 ημέρα
5,0 (39 αξιολογήσεις)
6,1
6,1
Avatar Χρήστη
Hello, my name is Kostas and I am an experienced c++ developer with an extensive knowledge of algorithms and data structures. All of my clients were very satisfied with my work. Please send me a message to discuss the details. After that I will have your program ready within some hours!! Thank you in advance, Kostas.
$25 USD σε 1 ημέρα
5,0 (23 αξιολογήσεις)
4,1
4,1
Avatar Χρήστη
I have done BSCS from Pakistan's 1st Rank IT university named FAST-NUCES and I believe that I can do this task in a pure professional manner and can satisfy all of your requirements regarding this project as I have already done this kind of projects in the past. Money is not the priority! My first priority is to work with full dedication and satisfy you! You can contact me on personal message and don't worry! if I feel that this task cannot be done with perfection by me then I will not let you hire me. You will be completely satisfied before hiring. I am highly qualified for this project and would love to speak with you further about taking this project on. Contact for further details. Thanks You.
$45 USD σε 3 ημέρες
4,8 (21 αξιολογήσεις)
4,4
4,4
Avatar Χρήστη
I can do this task for you.I can do this task for you.I can do this task for you.I can do this task for you.I can do this task for you.
$35 USD σε 1 ημέρα
4,7 (12 αξιολογήσεις)
3,9
3,9
Avatar Χρήστη
I have experience working with C and C++ code, as well as having helped some students on my univeristy. I am on vacation so I can start working on it right away. I put a deadline of 2 days just to be sure, but will finish it as soon as possible.
$20 USD σε 2 ημέρες
5,0 (9 αξιολογήσεις)
2,6
2,6
Avatar Χρήστη
Hello. How are u. I saw your description I have done several project like this. I'm an expert in Data Structures and Algorithms. And I know Java ,C/C++, C# and Python well. I'm interested this Project. I want to discuss with you about this project. If it's possible,please contact me and explain more detail. I wait your good reply. Bye.
$30 USD σε 1 ημέρα
4,2 (9 αξιολογήσεις)
3,1
3,1
Avatar Χρήστη
Hello, I had enough spare time today to sit and write this program. So I'm finished, the program is fully working and I'm willing to send you screenshots of it and the whole project. I only have some questions about parsing of results, I took an example where all results were taken in (Arizona 17-14 New England) format, but changing that should not be a problem. Please contact me when you see this. Looking forward to hearing from you. --------------------------------------------------------- Great c and c++ developer just starting with freelancer willing to do it for low cost. Written many programs using structs, c-strings and dynamic memory allocation. Already written one particular program very similar to this, just with soccer league, teams and results were read from .txt files as well. can do it in a few hours.
$18 USD σε 1 ημέρα
5,0 (4 αξιολογήσεις)
2,2
2,2
Avatar Χρήστη
Hello i have been graduated from computer Engineering Dept. I have very good experience in C++ and i took data structure course i can help in this project contact me
$15 USD σε 1 ημέρα
5,0 (1 αξιολόγηση)
0,8
0,8
Avatar Χρήστη
Dear Sir(Madam), I'm interested in your assignment. This assignment I can finish in some hours. Could your send me the 2 input file(s) : the one contains team names, their conferences and divisions, and the other contains scores (win, loss, tie). I'll send you the code for your view. Which do I use malloc/call/free, or use new/delete for allocate/free memory blocks? Hope receive your reply soon. Thanks, Liem
$25 USD σε 3 ημέρες
0,0 (0 αξιολογήσεις)
0,0
0,0
Avatar Χρήστη
I love to code. I think I can do this project very efficiently and in a very good way. i can do it in one day.
$30 USD σε 1 ημέρα
0,0 (0 αξιολογήσεις)
0,0
0,0
Avatar Χρήστη
Hey There!!! I am an undergrad student of Software Engineering in SEECS NUST. I have a strong hold on c and filing in c language. I am one of the top coder of my class. And i'm quite confident that i can do your project quite easily and efficiently. Price can be further negotiated. Hope we'll enjoy working together
$20 USD σε 2 ημέρες
0,0 (0 αξιολογήσεις)
0,0
0,0

Σχετικά με τον πελάτη

Σημαία της UNITED STATES
United States
0,0
0
Μέλος από Φεβ 17, 2016

Επαλήθευση Πελάτη

Ευχαριστούμε! Σου έχουμε στείλει ένα email με ένα σύνδεσμο για να διεκδικήσεις τη δωρεάν πίστωση σου.
Κάτι πήγε στραβά κατά την προσπάθεια αποστολής του email σου. Παρακαλούμε δοκίμασε ξανά.
Εγγεγραμμένοι Χρήστες Συνολικές Αναρτημένες Δουλειές
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Φόρτωση προεπισκόπησης
Δόθηκε πρόσβαση για Geolocation.
Η σύνδεση σου έχει λήξει και τώρα έχεις αποσυνδεθεί. Παρακαλούμε συνδέσου ξανά.