..........23÷357=0.0644257703........
Answer:
your answer is correct
Explanation:
You have the correct mapping from inputs to outputs. The only thing your teacher may disagree with is the ordering of your inputs. They might be written more conventionally as ...
A B Y
0 0 1
0 1 0
1 0 0
1 1 1
That is, your teacher may be looking for the pattern 1001 in the last column without paying attention to what you have written in column B.
Answer:
#include <iostream>
#include <iomanip>
using namespace std;
class pointType
{
public:
pointType()
{
x=0;
y=0;
}
pointType::pointType(double x,double y)
{
this->x = x;
this->y = y;
}
void pointType::setPoint(double x,double y)
{
this->x=x;
this->y=y;
}
void pointType::print()
{
cout<<"("<<x<<","<<y<<")\n";
}
double pointType::getX()
{return x;
}
double pointType::getY()
{return y;
}
private:
double x,y;
};
int main()
{
pointType p2;
double x,y;
cout<<"Enter an x Coordinate for point ";
cin>>x;
cout<<"Enter an y Coordinate for point ";
cin>>y;
p2.setPoint(x,y);
p2.print();
system("pause");
return 0;
}