CODE:
#include<iostream>
#include<string>
#include<conio.h>
using namespace std;
class mobile{
public:
float price;
float dimension;
float weight;
string
network,color;
void display();
void camera_front();
void camera_back();
void sound();
void bluetooth();
void messaaging();
};
void mobile::display()
{
cout<<"QHD Display\n";
}
void mobile::camera_front()
{
cout<<"8 meagapixel\n";
}
void mobile::camera_back()
{
cout<<"12 meagapixle\n";
}
void mobile::sound()
{
cout<<"Organic Sound\n";
}
void mobile::bluetooth()
{
cout<<"250 meter range \n";
}
void mobile::messaaging()
{
cout<<"SMS(threaded view), MMS, Email, Push Mail,
IM\n";
}
void main()
{
mobile
samsung;
cout<<"Enter the price of your mobile\n";
cin>>samsung.price;
cout<<"Enter the dimension of your mobile\n";
cin>>samsung.dimension;
cout<<"Enter the weight of your mobile\n";
cin>>samsung.weight;
cout<<"Enter the netwrok mode of your mobile\n";
getline(cin,samsung.network);
cout<<"Enter the color of your mobile\n";
getline(cin,samsung.color);
cout<<"\n\n********Mobile Details*********\n\n";
cout<<samsung.price<<"\n";
cout<<samsung.dimension<<"\n";
cout<<samsung.weight<<"\n";
cout<<samsung.network<<"\n";
cout<<samsung.color<<"\n";
cout<<"Display:\n";
samsung.display();
cout<<"Front camera:\n";
samsung.camera_front();
cout<<"Back camer:\n";
samsung.camera_back();
cout<<"Sound: \n";
samsung.sound();
cout<<"Bluetooth:\n";
samsung.bluetooth();
cout<<"Message Type:\n";
samsung.messaaging();
getch();
}