Create a Program for PSL
It must have a class for each of the 5 teams.
Islamabad United - Karachi Kings - Lahore Qalandars - Multan Sultans - Peshawar Zalmi
There will be a property of total score for each of the 5 classes.
total score will store all the points after winning matches for each of the 5 teams, so there will be a separate total score for kk, lq, ms, pz, iu.
“There will be a property to store current match score.
You will create an object for each match”.
For example:
Karachi vs Lahore
KarachiKings kk = new KarachiKings();
LahoreQalandars lq = new LahoreQalandars();
kk.currentScore +=1;
//current score barhane se karachi kings ka total score bhi barh jana chye automatically.
kk.runrate += 0.75;
lq.runrate -= 0.6;
match 2: multan vs Karachi
match 3: Lahore vs Islamabad
match 4: Peshawar vs multan
match 5: Lahore vs Peshawar
match 6: multan vs Islamabad etc.
1
Expert's answer
2021-08-22T15:52:16-0400
Dear Tehseen, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment