Question: 3. COMPLETE the code in all the yellow boxes given below as per instructions. class o1 { float f; public: 010); M010); void assign(float); //

3. COMPLETE the code in all the yellow boxes given below as per instructions. class o1 { float f; public: 010); M010); void assign(float); // Write the prototype to return the sum of the values of four objects. }; I/Write the function heading & a COMPLETE method "SUM to return the sum of the values of four objects. main() // Write a CALLING statement to "SUM" method. Make sure that all the variables/parameters in the calling statement are valid before the method is called. } 4. Complete the code inside the yellow box based on assignment 1. class dancer { Int id, hrs; float rate; public: op(); mop(); void read_val(ifstream &); // reads from a file into the array of objects } // Write a COMPLETE code for "read_val" method along with the function heading. main() // Write a COMPLETE code for "main" to call the above method }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
