Question: I need help with some homework I am to create a uml diagram and a program with these instructions I need 2 different objects 1.

 I need help with some homework I am to create a
I need help with some homework I am to create a uml diagram and a program with these instructions
I need 2 different objects
1. Using 3 parameter constructor
2. Using default constructor then use 3 set functions to set values
Needs to be done in 2 to 3 files
C++
Thank you

Population ulation, the birth rate and death rate are calculated as follows: ates Number of Births Population Birth R De ath Rates Number of Deaths Population For example, in a population of 100,000 that has s ,000 births and 6,000 deaths per year, Birth Rate 8,000 + 100,000 0.08 Death Rate-6,000+ 100,000-0.06 a Population class that stores a current population, annual number of births, and annual number of deaths for some geographic area. The class should allow the ee values to be set in either af two ways: by passing arguments to a three-parameter constructor when a new Population object is created or by calling the setPopulat ion, setBirths, and setDeaths class member functions. In either case, if a population figure less than 2 is passed to the class, use a default value of 2. If a birth or death figure less than 0 is passed in, use a default value of 0. The class should also have getBirthRate and getDeathRate functions that compute and return the birth and death rates. Write a short program that uses the Population class and illustrates its capabilities

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!