133k views
19 votes
Can you create a Java program perform the following ?

The main() program is to be used for input and output unless specified.
Use appropriate input and out messages and comment your code.
Create user-defined method: calculate() which takes 2 integers and
a character (+, -, / and *) as parameters and return respective result
of the operation on these parameters.
Create user-defined method rem() which takes 2 integers as
parameters from the main() program and prints the output without
returning any value.

User Dotnix
by
5.9k points

1 Answer

14 votes

Answer:

Yes I can and tht problem is correct

User Mahsa Hassankashi
by
5.5k points