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

Could you help me solve the qusetion? USing C++. Thanks! Create a class (named:

ID: 3702327 • Letter: C

Question

Could you help me solve the qusetion? USing C++. Thanks!

Create a class (named: Sculpture) with a default constructor, a constructor with parameters for each data member, and the following private data members: Question 11 title, which is a string (initialize to empty string in the default construtor). value, which is a floating point value (initialize to O in the default constructor). artist, which is a string (initialize to empty string in the default constructor). Not answered Mark 0.00 out of 5.00 Your second constructor should take all data member variables as input in the order they are specified above. You only need to write the class definition and any code that is required for that class. Place all code within the class definition. Answer: (penalty regime: 0 %) P Flag question

Explanation / Answer

Here is the cpp code for the class

#include <string>

using namespace std;

class Sculpture

{

private:

string title;

double value;

string artist;

public:

Sculpture()

{

title = "";

value = 0;

artist = "";

}

Sculpture(string sculpture_title, double sculpture_value, string sculpture_artist)

{

title = sculpture_title;

value = sculpture_value;

artist = sculpture_artist;

}

};

int main() {

// Declare an object of class Sculpture

Sculpture sculpture;

}

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