Chat with us, powered by LiveChat use c++ to make a project | Writedemy

use c++ to make a project

use c++ to make a project

Question Description
Instructions:

1) This assignment should be done in teams of two members.

2) When you finish with the code, submit the a zip file in Canvas.

3) The zipped file you send must have the following format. “Last name1_LastName 2_ CS2_Project”. Example: John Adams and Michael Lee, then the file you submit must be named “adams_lee_Cs2_project. zip”. No need to submit both members but the submission need to clearly specify who is working on the assignment.

4) The zip file should contain:

Project .cbp file (The project created)
class.h file , clas.cpp file and main.cpp
Just zip the project folder and upload it.
5) Ask the instructor for any doubt when doing the assignment.

A basketball team develop a program that hold the statistics (points per team and player). The team has 7 players.

Each player provides the following information:

Name
Position
Points in each game (10 games played)
Write a program that reports the following information to the output file “Basketball_report.txt”

Player 1 Name Position total points avg per game

Player 2 Name Position total points avg per game

…….

Team Total points: xxxx Avg per game : xxx.xx

Requirements of the program:

1) Create a class called Player: Write the proper attributes

Name (string), Description (string), points[] for every game (array of int) and the correct functions (Accessors and mutators that access and update the info of the variables. Create the right specification file and implementation file. (.h and .cpp files)

2) Create a player (player1) and initialize its members to the following values: name=””, description=”” and points [0,0,0,0,0,0,0,0,0,0] through a constructor. (Create a private function called by the constructor to build the array)

3) Create 5 more players using a copy constructor. (Keep those players in an array.

4) The program asks to enter every player’s info to the user and keep that info in the instance variables of every player (Use the mutators).

5) Create an extra object of the class player (player_extra) and assign player1 to player_extra . (Overload the =operator) Then change Player_extra points (use the mutator to update the array contents)

6) Use the iomanipulators to display the total points of the team ,average points per game, total points per player, and avg per player results in the output file.

Use fixed, setw(), setprecision(2), and showpoint.

2 Extra point(voluntary) : Update the program to read the input data from a file called “data.txt” this should contain all the info for every player but the “player_extra” in every line.

Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteDemy. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.

Do you need an answer to this or any other questions?

About Writedemy

We are a professional paper writing website. If you have searched a question and bumped into our website just know you are in the right place to get help in your coursework. We offer HIGH QUALITY & PLAGIARISM FREE Papers.

How It Works

To make an Order you only need to click on “Order Now” and we will direct you to our Order Page. Fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Are there Discounts?

All new clients are eligible for 20% off in their first Order. Our payment method is safe and secure.

Hire a tutor today CLICK HERE to make your first order