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
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
0
Answer:
I can't in understand....
Similar questions