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
Physics,
4 months ago
Political Science,
4 months ago
English,
4 months ago
Computer Science,
8 months ago
Math,
1 year ago
History,
1 year ago