[Solved] : Question 130599

Write a program with following steps

● STEP 1: Start the program.

● STEP 2: Declare the class name as Base with data members and member functions.

● STEP 3: The function get() is used to read the 2 inputs from the user.

● STEP 4: Declare the friend function mean(base ob) inside the class.

● STEP 5: Outside the class to define the friend function and do the following.

● STEP 6: Return the mean value (ob.val1+ob.val2)/2 as a float.

● STEP 7: Stop the program.


Expert Answer


Answer to : Question 130599

Leave a Comment

About

We are the best freelance writing portal. Looking for online writing, editing or proofreading jobs? We have plenty of writing assignments to handle.

Quick Links

Browse Solutions

Place Order

About Us

× How can I help you?