Computes revenuevalue and displays revenuevalue


Discussion:

Q: Define a class called Revenue that has 2 private members of demand and price. Include a constructor and a public function that calculates the RevenueValue of the class. RevenueValue = demand * price

Use public functions of the class in a program that computes RevenueValue and displays RevenueValue when demand is 2000 and price is 2.

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Computes revenuevalue and displays revenuevalue
Reference No:- TGS01936601

Now Priced at $20 (50% Discount)

Recommended (99%)

Rated (4.3/5)