3 Write a CH program using classes and objects, which can find out the overall average of the entire group ( say n) of p
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
3 Write a CH program using classes and objects, which can find out the overall average of the entire group ( say n) of p
3 Write a CH program using classes and objects, which can find out the overall average of the entire group ( say n) of patients. A single object with default constructor adds 10 patients with 60 kg average weight, while another object of the same class with parameterized constructor adds ni patients with wi kg overweight or underweight ( for eg.. ni-5, and wi-10 means 5 patients are added where their average weight is 10 kg above the average weight of 60 kg). ALL objects of this patient class (and ONLY objects of this patient class) update the total weight and the total number (n) of patients and can display the overall average. Your C# program should provide all these facilities CO3, L3 Marks -10
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!