Email
Chat with tutors
logo

Ask Questions, Get Answers

X
 
Answer
Comment
Share
Q)

A perfect square is an integer which is the square of the another integer.

A perfect square is an integer which is the square of the another integer. For example : 4, 9, 16, 25 ... are perfect squares. Design a class Square with the following details : Class name : Square Data members/instance variables: num: to stores an integer number Methods/Member functions: Square ( ): default constructor to initialize the instance variable. Square ( int nm): parameterized constructor to assign num=nm void PerfectSquare( ) : to print 10 perfect squares greater than num.( Eg if num=13 , then the perfect squares in the sequence are 16, 25, 36... )

Please log in or register to answer this question.

Home Ask Tuition Questions
Your payment for is successful.
Continue
...