CMIS242 Homework 2 Java Exceptions and Interface

$ 12

CMIS242 Homework 2 Java Exceptions and Interface

Write a Java application that asks a user to enter two integers (A and B) and then display the results of A/B. Catch any division by zero errors and prompt the user to reenter the value of B. Be sure your code compiles and runs as expected. Name your Java file SafeDivision.java.

Write a Java interface named Searchable with two abstract methods: one named Way2Search that returns a String and another named MaxTime that returns an Integer. Write another class that implements that interface and that contains a simple test. Be sure your code compiles and runs as expected. Name your Java files Searchable.java, and TestSearchable.java.

100 in stock

SKU: CMIS242HOMEWORK2 Category:

Description

CMIS242 Homework 2 Java Exceptions and Interface

Write a Java application that asks a user to enter two integers (A and B) and then display the results of A/B. Catch any division by zero errors and prompt the user to reenter the value of B. Be sure your code compiles and runs as expected. Name your Java file SafeDivision.java.

Write a Java interface named Searchable with two abstract methods: one named Way2Search that returns a String and another named MaxTime that returns an Integer. Write another class that implements that interface and that contains a simple test. Be sure your code compiles and runs as expected. Name your Java files Searchable.java, and TestSearchable.java.

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.