c++ program to print Average of a batsman using classes and objects.
/*write a c++ program to define a class batsman with the following information private variable bcode 4 digit,bname 20 char,innings,notout,bat avg(float) which calculated(runs/(innings-notout))byfunction calc_avg public member : readdata() to accept values of bcode,bname,innings,notout,runs and invoke calc_avg to calculate the avg. display() to display */ #include<iostream> using namespace std; class Batsman{ int bcode,innings,notout,runs; float bat_avg; char …
c++ program to print Average of a batsman using classes and objects. Read More »