QUESTION 4 30 points Complete the following program that contains three classes One, Two and Three. • Class One contains
Posted: Fri May 20, 2022 10:15 am
QUESTION 4 30 points Complete the following program that contains three classes One, Two and Three. • Class One contains a function called D that receive number and return its double. • Class Two contains two functions; function M that display a greeting message and function P that print the numbers from 1-10 using for loop. . Class Three contains three integer variables X, Y and Z the value of the variables should be entered by the user. Create three objects from the three classes. Provide the necessary code to call all the functions and variables (read and print) of the three objects using a sample data #include <iostream> using namespace std; class One public: }; class Two public: }; class Three { public: }; int maino { } For the toolbar press ALT+F10 (PC or ALT+EN+F10 (Mac)