Computer Science, asked by yellinasatyasubhash, 5 months ago

2. Define a class batsman with the following speclications:
Private members:
bcode
4 digits code number
bname
20 characters
innings, notout, runs integer type
batavg
it is calculated according to the formula -
batavg runs/innings-notout)
calcavg()
Function to compute batang
Public members:
readdata)
Function to accept value from bcode, name, innings, notout and invoke the function
calcavg()
displaydata)
Function to display the data members on the screen.

Answers

Answered by Anonymous
4

2. Define a class batsman with the following speclications:

Private members:

bcode

4 digits code number

bname

20 characters

innings, notout, runs integer type

batavg

it is calculated according to the formula -

batavg runs/innings-notout)

calcavg()

Function to compute batang

Public members:

readdata)

Function to accept value from bcode, name, innings, notout and invoke the function

calcavg()

displaydata)

Function to display the data members on the screen.

Answered by Immanuel7
0

Answer:

I can't in understand....

Similar questions