Question: help please using c++ language Question 1: (25 marks) Suppose the birth rate and death rate in Malaysia are calculated as given below: Birth Rate

help please using c++ language

help please using c++ language Question 1: (25 marks) Suppose the birth

Question 1: (25 marks) Suppose the birth rate and death rate in Malaysia are calculated as given below: Birth Rate = No. of Births + Population Death Rate = No. of Deaths + Population For example, in a population sample of 200,000 that has 16,000 births and 12,000 deaths per year, the birth rate and death rate are calculated as follows: Birth Rate = 16,000/200,000 = 0.08 Death Rate = 12,000 / 200,000 = 0.06 Create a class Population that stores the data for the current population, annual no. of births, and no. of deaths for a period of time. Member functions should return the birth rate and death rate. Implement the class in a driver program. Input Validation: Implement appropriate input validations and display error message(s) for invalid inputs

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!