Sunday, 26 March 2017

STARTING QUESTIONS WITH BASIC TROUBLES.

First questions for all guys.



A point on a two dimensional plane can be represented as X coordinate and Y coordinate. The sum of two points can be defined as new point whose X coordinate is sum of X coordinates of two points and same for the Y coordinate. Write a program that uses a class point to model a point. Define three point , and have the user input value for two of them. Then set the third point equal to the sum of the other two and display the value of third point.
(You have to show the concept of Using this pointer.)
I'll provide the code for this questions on (29/03/2017).
make sure you have to try the questions and code if there is any problem keep it with you and then ask me together. 
 
 


No comments:

Post a Comment