Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Could I get the answers for questions 1 and 2. C++ 2. Settlix Video uses classes and oblects to keep track of their movie rentals.
Could I get the answers for questions 1 and 2. C++
2. Settlix Video uses classes and oblects to keep track of their movie rentals. Below is the class definition for a Video class. class Video public: Video (char* = ", char* = "", int=0); char" get name () {return name;} char* get tapeid (return id;} void check out (int num) (number on hand -= num;) void return movie (int numXnumber on hand +- Dumo:) void printo: private: char* name; char* id; int number an.band: a) Write the constructor for class Video. Keep in mind that the number on band should never be a negative number!! b) If the method for function print were defined as follows: void Video.print() cout #include "video.h" using namespace std: int main) Video movie ("Fargo", "F455", 15); Video movie2("The Big Stuff", "S123"); movie stinto; movie2.print(); movie check out(3); movie printo: c) (3 points) Why would the compiler give us an error message if we included the following statement in our program? cout using namespace std; int mai no float a = 0.1; float b = 0.3; float c, d, *pa, "pb: coutStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started