Title Page Of Assignment Of Bzu Multan



BZU PAGES: Find Presentations, Reports, Student's Assignments and Daily Discussion; Bahauddin Zakariya University Multan

Welcome to the BZU PAGES: Find Presentations, Reports, Student's Assignments and Daily Discussion; Bahauddin Zakariya University Multan.
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Welcome to all the Students
This site is specially made For Students of Bhauddin Zakariya University Multan
 ForumLast PostThreadsPosts
All students introduce yourself here
155669
1366
Special Discussion forum for x Graduate students of University...
533598
8271,443
Discus Tips and all information to make people healthy...
190307
Teach,Learn,Share,Discuss and Do everything other than Class Lectures
315764
Articles About Computer, internet, webmasters, mobiles etc.
443742
National & Intentional Daily News
1,1922,156
History of languages region and civilization..
87174
Urdu Dictionary that helps you to Check out the meanings of difficult English words .in roman Urdu which is easy understandable for every one.
3135
Read and share all university events and news here..Mostly News are taken from the Official Website of BZU :)
8451,295
Submit your suggestion about your class's website,Come on guys. Don't hesitate just submit Now..
130674
Entertainment & Enjoyment
The amount of pleasure or amusement you share and get here
 ForumLast PostThreadsPosts
Everybody loves a bit of randomness, care to share yours? Any one Else can talk here.
3,6588,072
Food Recipes; All about girls
6999
188380
All latest news about Lollywood, Bollywood and Hollywood
4391,113
Islamic Videos,University Videos,
Technology,Cartoons,
Howto & Style,Funny/Comedy,
Sports & Games,Indian Video Songs (Hindi),
Paki Video Songs,Classic Songs,
English Songs,My Fav Ghazal
2,5773,927
Share Audio Video Clips, Songs Videos etc
435779
Share your favorite wallpapers here with your friends...
1,8614,482
Share Poetry here,Just for the poetry loving students...
3,9786,982
Discuss here the different Derivatives of Linux...
2551
Share Anything Here which is not relevant to the all created forums
174682
Here you can Discus about the Arcade Games Scores....
1,7371,767
Graveyard: All Threads will buried here in this forum
05-11-2011 09:35 AM
2543
Institute of Computing
 ForumLast PostThreadsPosts
Discussion forum for BSIT students (Under Graduate Degree )
8911,331
5583
Bachelor of Science in Telecommunication System (Under Graduate Program )
308356
( Post Graduate Programmes)
1117
(Post Graduate Programmes)
3149
2427
11




19-04-2012, 11:08 AM   #1

 
 
Program / Discipline: MCS
assignment of data structure

We need to store a number of Cricket Players and their Scores in a list using Linked List Data Structure. The data of the players will comprise of their Names and Scores, which means each Node of the Linked List will contain Player Name, Player Score and Next Pointer as follows,

You need to write a C++ Program which contains the following two classes and main function.

We need to store a number of Cricket Players and their Scores in a list using Linked List Data Structure. The data of the players will comprise of their Names and Scores, which means each Node of the Linked List will contain Player Name, Player Score and Next Pointer as follows,

You need to write a C++ Program which contains the following two classes and main function.
  • Player Class (means Node Class):This class should define three private variables for Player Name, Player Score and Next pointer, this class should also define Constructor, Getter and Setter functions for these variable as inline functions (means define these functions within class body).
  • PlayerList Class (means Linked List Class): This Class should define private variables for Header, CurrentPlayer ( means Head pointer, CurrentNode Node) and an int variable which count the number of Players in the Linked List.
The Class should also declare the following methods/Functions,
Constructor(): Default Constructor of the Class.
Add_NewPlayer(): This method should add new player only at the end of list.
Display(): This method should Print the Players information (Names and Score) in the list.
ListLength(): This method should return the total number of Players added in the list.
getTotalScore(): This method should return (print) Total score (e.g score of player1+player2.. etc).

Main Function(): In the main function define an object of the PlayerList class and call the Add_NewPlayer method with this object multiple times (At least two times), then call the Display(), getTotalScore and ListLength functions with this object, your output should look like this.



 

0 Replies to “Title Page Of Assignment Of Bzu Multan”

Lascia un Commento

L'indirizzo email non verrà pubblicato. I campi obbligatori sono contrassegnati *