TAB

One of the works done by our Robotics and Machine Learning division,
SELF-LEVELING QUADCOPTER
Arduino based Quadcopter.
Self-leveling is acheived by the aligning the quadcopter using the readings from the gryo as well as the accelerometer.
A four channel RC transmitter is used to control the movement of the quadcopter when in flight. Kindly subscribe to our YouTube Channel and stay tuned.

Wednesday 23 March 2016

PRACTICE PROBLEM 5: Price of book and CD/DVD

====================================

====================================
void learning_Material::get()
{
cin>>isbn;
cin>>title;
cin>>author;
cin>>year;
}
void learning_Material::print()
{
cout<<isbn<<endl;
cout<<title<<endl;
cout<<price;
}
class book:public learning_Material
{
int pages;
public:
void get()
{
learning_Material::get();
cin>>pages;
}
void print()
{
learning_Material::print();
}
void calc_Price()
{
price=pages;
}
};
class CD:public learning_Material
{
int min;
public:
void get()
{
learning_Material::get();
cin>>min;
}
void print()
{
learning_Material::print();
}
void calc_Price()
{
price=min*2;
}
};

No comments:

Post a Comment