[go: up one dir, main page]

0% found this document useful (0 votes)
16 views1 page

Cricket Player Data Structure ASCII

cn

Uploaded by

2006297
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views1 page

Cricket Player Data Structure ASCII

cn

Uploaded by

2006297
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Cricket Player Data Structure Design

Data Field Identifier Data Type Example Reason for Using this Data Ty

player_name String Virat Kohli Names consist of alphabetic character

age Integer 34 Age is a whole number, making intege

teams List of Strings ["India", "RCB"] A player may represent multiple teams

formats List of Strings ["Test", "ODI", "T20"] A player may participate in multiple for

total_runs Integer 12000 Runs are counted as whole numbers,

total_wickets Integer 200 Similar to runs, wickets are also whole

batting_average Float 50.5 Batting average can have decimal valu

bowling_average Float 25.8 A decimal value is possible for bowling

highest_score Integer 183 A player's highest score is a whole num

player_role String Batsman Player roles like 'Batsman' or 'Bowler'

matches_played Integer 250 The number of matches is a whole num

strike_rate Float 135.5 Strike rates are often decimal numbers

centuries Integer 43 Centuries are counted as whole numb

debut_year Integer 2008 Years are always integers, so an integ

is_active Boolean True A boolean is ideal to represent if the p

You might also like