Find Jobs
Hire Freelancers

Basketball, structs, and the string class

$10-30 USD

In Progress
Posted about 7 years ago

$10-30 USD

Paid on delivery
Program Steps Read a file containing team names, their conferences and divisions. This data will be stored in an array of structs. 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 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. Scores updated 2/7/17 (games played through 2/6/17) Use this struct to store the data for each team: struct NBA_Team { string name; string conference; string division; unsigned short wins; unsigned short losses; float pct; }; Use strings to store all character data for this assignment. C-strings may not be used in this assignment. The program output must show the current standings using the team input data and the percentage calculations. You may not use stringstream (or istringstream or ostringstream) objects or c-string functions for this assignment. 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 2/7/17 (contains games played through 2/6/17) Western Conference Southwest Division W L Pct San Antonio Spurs 39 12 0.765 Houston Rockets 37 17 0.685 Memphis Grizzlies 32 22 0.593 Dallas Mavericks 20 31 0.392 New Orleans Pelicans 20 32 0.385 Pacific Division W L Pct Golden State Warriors 43 8 0.843 Los Angeles Clippers 31 21 0.596 Sacramento Kings 20 32 0.385 Los Angeles Lakers 18 36 0.333 Phoenix Suns 16 36 0.308 Northwest Division W L Pct Utah Jazz 33 19 0.635 Oklahoma City Thunder 30 23 0.566 Denver Nuggets 23 28 0.451 Portland Trail Blazers 22 30 0.423 Minnesota Timberwolves 19 33 0.365 Eastern Conference Southeast Division W L Pct Washington Wizards 30 21 0.588 Atlanta Hawks 30 22 0.577 Charlotte Hornets 23 28 0.451 Miami Heat 22 30 0.423 Orlando Magic 20 33 0.377 Central Division W L Pct Cleveland Cavaliers 35 15 0.700 Indiana Pacers 29 22 0.569 Chicago Bulls 26 26 0.500 Detroit Pistons 24 28 0.462 Milwaukee Bucks 22 28 0.440 Atlantic Division W L Pct Boston Celtics 33 18 0.647 Toronto Raptors 32 21 0.604 New York Knicks 22 31 0.415 Philadelphia 76ers 18 33 0.353 Brooklyn Nets 9 42 0.176 Program Notes There are 30 NBA teams, 15 in each conference. The conferences are Western and Eastern. There are 6 divisions with 5 teams in each division. The scores file will also require specific parsing techniques. Skip over the date and time columns (the first 12 bytes). Skip over the mostly blank records that show the tie score before overtime. To calculate the team percentage, use the formula: pct = wins / 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. Be sure to start early and allow enough time to ask the instructor for help. Recommendation, when you start, use a small subset of the scores file to make sure you are correctly calculating the statistics.
Project ID: 13087981

About the project

24 proposals
Remote project
Active 7 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
24 freelancers are bidding on average $54 USD for this job
User Avatar
Hi there, I would like to do this project if given the opportunity. Let me know if you are interested so I can have further details. Thanks.
$30 USD in 1 day
5.0 (643 reviews)
7.3
7.3
User Avatar
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 client side, using c++ under Windows environment. I made many great projects using c++, for example, I made the tools which could convert java codes into c++ scripts, of course garbage collection included, this was very similar to a compiler, and was 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 in 1 day
4.9 (141 reviews)
7.0
7.0
User Avatar
I m software engineer. I have read the description and I would like to work for you. For further details please inbox me. Thank you
$200 USD in 1 day
4.9 (56 reviews)
6.1
6.1
User Avatar
Hi, I am experienced software developer and I am ready to complete this project for you very quickly, in few hours. You can find more information about me and my professional experience on the my freelancer profile page. We can discuss all details in the private chat. Looking to cooperate with you. Please do not hesitate to leave offline messages - I will answer as soon as possible.
$30 USD in 1 day
5.0 (73 reviews)
6.2
6.2
User Avatar
Hello. How are you. I have read and understood the project. I'm an Expert in Data Structures and Algorithms. And I know well ; Java ,C/C++, Python ,PHP. I'm interested this project. So, firstly I want to discuss with you about this project. Then I'll be happy. I wait for your good reply. Thanks.
$30 USD in 1 day
4.9 (125 reviews)
6.2
6.2
User Avatar
Hi, I've got quite some experience with C and C++ and I'm sure I can help you out with your project. May I get more details over the chat?
$30 USD in 1 day
5.0 (67 reviews)
5.3
5.3
User Avatar
Hi, I have Master Degree in Computer Science. and great experience in C++ and algorithms. I read carefully the description and understand how to solve this task. All of my employers are satisfied with the quality and speed of my work. See my profile to be sure of this. https://www.freelancer.com/u/zabolotniipavel.html If you want to get a quality result done on time - hire me. It will be the best solution for you work. I can start the work right now. Don't lose your money and time. contact me please for more information. Best regards, Pavel.
$30 USD in 1 day
4.9 (44 reviews)
5.1
5.1
User Avatar
Hi, I hope you will be doing well. I believe on perfect work with 100% satisfaction of my client then payment. I deliver only exceptionally robust and well-designed work as a rule to my client. I understand your project and I am confident that I can do your project with great accuracy and 100% efficiency. I have seven years programming/teaching experience in Java/ C++/ C/Matlab/Software Architecture/ C#/Algorithm Design and Analysis. I am software developer and providing software solutions to my client from last seven years. I will provide you quality work with 100% accuracy. I want to do best to best work for my client, gain 100% satisfaction and quality work. You can trust me and consider me for your project. I am also faculty member (Instructor) at Computer Science and Engineering Department in FAST-NUCES National University Pakistan since February 2013. Thanks! Best Regards, Engr. Shahi
$25 USD in 1 day
4.7 (42 reviews)
5.0
5.0
User Avatar
Hi, Could you please clarify on whether the input is going to be RTF format or in text format that you've just converted to RTF for upload? If it is a text file, could you please share the same? I am assuming scores files have fixed width wrt team names. I've authored books on Java, C, C++ and Data Structures and Algorithms, and have over 12 years of professional experience as a software engineer and consultant. I specialize in implementing algorithms in Java/C++/Python. I believe I can deliver high quality code suiting your needs. Looking forward to working with you on this project, and establishing a basis for an ongoing professional relationship. Thanks, Gaurav
$50 USD in 1 day
5.0 (6 reviews)
4.6
4.6
User Avatar
Hello My name is Ahmed, i'm a top rated freelancer. i worked over 250 projects and over 600 hours doing C++ and Java projects. small overview of feedback on my profile "you want to get your projects completed with quality? Hire Ahmed. Highly recommended." "Thoroughly satisfied with Ahmed, and would recommend him for anyone looking for an excellent developer!" "Highly recommended. Very smart and well experience" looking forward to work with you Regards
$25 USD in 1 day
5.0 (30 reviews)
4.5
4.5
User Avatar
Hi, can finish your task in max 2-6 hrs after bid acceptance. Will provide fully functional, bug free and commented code. And if you consider my bid, please also let me know the compiler you are using. Kind Regards, Narek.
$50 USD in 0 day
5.0 (7 reviews)
4.0
4.0
User Avatar
A proposal has not yet been provided
$111 USD in 7 days
5.0 (10 reviews)
3.3
3.3
User Avatar
A proposal has not yet been provided
$30 USD in 3 days
4.6 (3 reviews)
1.3
1.3
User Avatar
The task is a simple manipulation of string information for sorting and statistics. I can do this job in due time. But I will have to convert the RTF file into text file in MSWord.
$30 USD in 1 day
5.0 (1 review)
0.5
0.5
User Avatar
$40 USD in 1 day
5.0 (1 review)
0.6
0.6
User Avatar
Hello! I have 15 years experience with Java and C++ as an assistant professor in SouthWest University Bulgaria. I teach courses on Introduction In Programming(C++), Object Oriented Programming (C++) and Programming and Data Structures (Java). I have research papers in this topic and I believe that my theoretical knowledge and my skills for algorithmic thinking are required for this project. I would enjoy to work with you
$35 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
Hi there, I’d like to be considered for your project i used to teach C++ to computer science students ,and i used to give them assignments like that. i think i could really help you with your assignment.
$20 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
Have 7+ Years in C++ programming. worked with C/C++/C# software houses which has given me core knowledge of the languages.
$30 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
Hello We are excellent c++ programming with grate working experience. Only goal is customer satisfaction , We are very much successful in it If you give a chance to work with grate persons like you ! we will show talent in our work Thanks !! cheers !!
$20 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
Hi! I'm a new freelancer and I've been programming in c++ for 3 years. I have got your requirements and I will absolutely build your assignment in just one day exactly according to your demand. I am waiting for your sharp response. Hope we will get a great experience. Thank you!
$55 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
San Jose, United States
5.0
1
Payment method verified
Member since Feb 13, 2017

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.