Computer Science, asked by tripathiseema41, 8 months ago


Define a class someOperations as follows:
class variables : double N
Methods :
(i)
void Input: To accept the value of N (in decimals).
void show: Using mathematical functions perform the following operations :
(i) Print the rounded value of N.
(ii) Print the square root of N.
(iii) Print the rounded down value of N.
Write a main() function to create an object of the class and invoke the methods to output the results.
write this program in Java language....​

Answers

Answered by AdityaRaj626
7

Answer:

The answer is attached.

hope it will help.

Attachments:
Similar questions