Computer Science, asked by PravatKumarBhanja, 11 months ago

Question 9.
(15]
Design a class to overload a function calculation () as follows:
a) int calculation (int n, char ch) with one integer argument and one character
argument. It computes the cube of an integer if choice 'ch' is 'C' otherwise computes its
square.
b) int calculation (int a, int b, char ch) with two integer arguments and one character
argument. It Computes the remainder if choice 'ch' is 'R' otherwise find the quotient.
c) boolean calculation (char ch) with one character ch. It checks whether the character is
a digit or a letter which will retrun a boolean value true or false.
--BEST OF LUCK​

Answers

Answered by Anonymous
3

Answer:

See the attachment.........

Attachments:
Similar questions