Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Question#3: A company that market is publishing both book and audiocassette vers

ID: 3552297 • Letter: Q

Question

Question#3:


A company that market is publishing both book and audiocassette versions. Below is an


implementation of the class publication.


Hint: Separate class interface from the implementation.


#include <iostream>


#include <string>


using namespace std;


class publication


private:


string title;// publication that stores the title (a string)


float price; // price (type float) of a publication


public:


publication(){title =""; price=0 }


publication(string t, float p){ title=t; price=p;}


void getdata()


{


cout <<

Explanation / Answer

#include<iostream>
#include<string>
using namespace std;

class Publication
{
private:
    string title;
    float price;
public:
    void getData()
    {
        cout

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote