Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a class marks with three data members to store three marks.Write three member functions, set_marks() to input marks, sum() to calculate and return

 

Write a class marks with three data members to store three marks.Write three member functions, set_marks() to input marks, sum() to calculate and return the sum and avg() to calculate and return average marks. "Using C++"

Step by Step Solution

3.40 Rating (153 Votes )

There are 3 Steps involved in it

Step: 1

C program to create and test marks class include using namespace std class marks privat... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

C++ Primer Plus

Authors: Stephen Prata

6th Edition

978-0321776402, 0321776402

More Books

Students also viewed these Computer Engineering questions

Question

How could loyalty programmes undermine brands?

Answered: 1 week ago