3 Write a CH program using classes and objects, which can find out the overall average of the entire group ( say n) of p
Posted: Sat May 14, 2022 7:00 pm
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