Description
CMIS 242 Homework 2 Simplified Calculator and Searchable Interface
Simplified Calculator
1. Write a Java application that asks a user to enter two integers (we’ll call them A and B, but you can name them whatever you want in your program).
2. Your application should then display the results of:
– A / B
catch any divide by zero errors and prompt the user to enter a new value for B
– A ^ B
A to the B power
3. Be sure your code compiles and runs as expected.
Searchable Interface
1. Write a Java interface named Searchable with two abstract methods:
1. searchMethod that returns a String
2. minTime that returns an Integer
2. Be sure your code compiles without errors.
Reviews
There are no reviews yet.