Answer only one question: 1- Write a C+t class and choose any name for it. The class should have two private members and two public members. Write a constructor to initialize these members to zero....


Answer only one question:<br>1- Write a C+t class and choose any name for it. The class should have two private<br>members and two public members. Write a constructor to initialize these members<br>to zero. Write another constructor to initialize these members to non-zero values.<br>Write a method to return the average of the class members. Write a C++ program<br>and initialize the members of the class with [2,5,8,3] respectively and call its method<br>to calculate the average.<br>

Extracted text: Answer only one question: 1- Write a C+t class and choose any name for it. The class should have two private members and two public members. Write a constructor to initialize these members to zero. Write another constructor to initialize these members to non-zero values. Write a method to return the average of the class members. Write a C++ program and initialize the members of the class with [2,5,8,3] respectively and call its method to calculate the average.

Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here