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
7
Answer:
The answer is attached.
hope it will help.
Attachments:
Similar questions
Biology,
3 months ago
India Languages,
3 months ago
Computer Science,
7 months ago
English,
11 months ago
Math,
11 months ago
History,
11 months ago