need C++ code please

I need the code in C++ form for this question please:

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.
Last edited on
I need the code in C++ form for this question please:

... and I need a million bucks but nobody's gonna hand it to me, I've got to work for it
Topic archived. No new replies allowed.