1- Write a C++ 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...


1- Write a C++ 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>• You are allowed to use materials that is not covered in our lectures<br>

Extracted text: 1- Write a C++ 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. • You are allowed to use materials that is not covered in our lectures

Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here