0% found this document useful (0 votes)
159 views2 pages

Data Structure To Display The Individual Player Stats For Cricket Players

This document displays a data structure for storing individual player stats for cricket players. It lists various data fields like player name, birth date, age, playing role, and batting and bowling stats for tests, ODIs, and T20 matches. Appropriate data types are assigned to each field, with strings used for fields containing text like names and dates, integers for numeric counts, and floats for averages.

Uploaded by

Puja Sasirekha
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)
159 views2 pages

Data Structure To Display The Individual Player Stats For Cricket Players

This document displays a data structure for storing individual player stats for cricket players. It lists various data fields like player name, birth date, age, playing role, and batting and bowling stats for tests, ODIs, and T20 matches. Appropriate data types are assigned to each field, with strings used for fields containing text like names and dates, integers for numeric counts, and floats for averages.

Uploaded by

Puja Sasirekha
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/ 2

Data structure to display the individual player stats for cricket players.

Data field identifier Data type Example Your reason for using this data type

player_name String MS Dhoni Names may contain letters and any other characters.
Birth date may contain letters and any other
birth_date String July 7, 1981
characters.
age Integer 38 Age contains numeric integer
Playing role may contain letters and any other
playing_role String Wicketkeeper batsman
characters.
Batting style may contain letters and any other
batting_style String Right-hand bat
characters.
Fielding position may contain letters and any other
fielding_position String Wicketkeeper
characters.
Bowling style may contain letters and any other
bowling_style String Right-arm medium
characters.
tests_played Integer 90 Test matches played contain numeric integer

tests_inns Integer 144 Test innings contain numeric integer

tests_runs Integer 4876 Test runs scored contain numeric integer

tests_bat_avg Float 38.09 Test batting average contain decimal values


Test Higest score contains numeric integer and other
tests_HS String 224
characters
Test bowling average may contain decimal values and
tests_bowl_avg String -
other characters
Test wickets taken may contain numeric integer and
tests_wic String -
other characters
Test best bowling figures may contain numeric integer
tests_best String -
and other characters
odi_played Integer 350 ODI matches played contain numeric integer

odi_inns Integer 297 ODI innings contain numeric integer

odi_runs Integer 10773 ODI runs scored contain numeric integer

odi_avg Float 50.57 ODI batting average contain decimal values


ODI Higest score contain numeric integer and other
odi_HS String 183*
characters
ODI bowling average may contain decimal values and
odi_bowl_avg String -
other characters
ODI wickets taken may contain numeric integer and
odi_wic String 1
other characters
ODI best bowling figures may contain numeric integer
odi_best String -
and other characters
T20_played Integer 98 T20 matches played contains numeric integer

T20_inns Integer 85 T20 innings contain numeric integer

T20_runs Integer 1617 T20 runs scored contain numeric integer

T20_avg Float 37.6 T20 batting average contain decimal values


T20 Higest score contains numeric integer and other
T20_HS String 56
characters
T20 bowling average may contain decimal values and
T20_bowl_avg String -
other characters
T20 wickets taken may contain numeric integer and
T20_wic String -
other characters
T20 best bowling figures may contain numeric integer
T20_best String -
and other characters

You might also like