Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
Convert coordinate:
class rect{
private :
float x,y;
public :
void input()
{
cout <<"enter rect coords\n";
cin >> x>> y>>"\n";
}
void output()
cout << x<<"\n" << y;
rect ()//dummy consructor
rect (float a,float b)//constructor
x=a;
y=b;
}; //end of class
class polar {
float r,q;
cout <<"enter polar coords\n";
cin>>r>>q;
cout << r< } operator rect(); };//end of class polar :: operator rect() { float a=r*cos(22*q/(7*180)); float b=r*sin(22*q/(7*180)); return rect(a,b);//calling constructor inbuild that it will //return rect type } void main() { rect a; polar p; clrscr(); p.input(); a=p; a.output(); getch(); }
} operator rect(); };//end of class polar :: operator rect() { float a=r*cos(22*q/(7*180)); float b=r*sin(22*q/(7*180)); return rect(a,b);//calling constructor inbuild that it will //return rect type } void main() { rect a; polar p; clrscr(); p.input(); a=p; a.output(); getch(); }
operator rect();
};//end of class
polar :: operator rect()
float a=r*cos(22*q/(7*180));
float b=r*sin(22*q/(7*180));
return rect(a,b);//calling constructor inbuild that it will
//return rect type
void main()
rect a;
polar p;
clrscr();
p.input();
a=p;
a.output();
getch();
Write a program to input two integers. If they are equal display "The numbers are equal". Otherwise display a message if the first is a multiple of the second or if it is not a mul
Demonstration using Moss Open Source Machine Translation Project Description: Moses is an open source Statistical Machine Translation System. I need someone to provide me a d
write a prgm to find minimum total number of shelves including the intial one required for loading process
Question 1 Explain the following Object Oriented Concepts with suitable examples for each Question 2 Explain the following Object Oriented Methodologies Question 3 Descr
write a program to accept ten numbers and display the total
Consider text comprised of sentences and sentences comprised of words. Words in a sentence will be space delimited. Given a text and K strings, task is to find out the number valid
At a shop of marbles, packs of marbles are prepared. Packets are named A, B, C, D, E …….. All packets are kept in a VERTICAL SHELF in random order. Any numbers of packets with thes
Project Description: I am seeking a developer who can start an app from scratch and get it delivered to me as soon as possible. It is a little android based app. A background on
A: Provided that function parameter is "const reference", compiler create temporary variable in following two ways. a) The actual argument is the correct type, however it isn't
Damjibhai and Shamjibhai are two jeweler friends. They decide to play a simple game. The game comprises of removing the jewels for polishing, turn by turn. Once a jewel is removed
Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!
whatsapp: +1-415-670-9521
Phone: +1-415-670-9521
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd