Object Oriented Programming (in JAVA)

1. Write an application that asks the user to enter two integers, obtains them from the user and displays the larger number followed by the words “is larger”. If the numbers are equal, print the message “These numbers are equal “

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper

 

2. Write an application that inputs three integers from the user and displays the sum, average, product, smallest and largest of the numbers.

3. Write an application that reads two integers, determines whether the first is a multiple of the second and print the result. [Hint Use the remainder operator.]

4. The process of finding the largest value (i.e., the maximum of a group of values) is used frequently in computer applications. For example, a program that determines the winner of a sales contest would input the number of units sold by each sales person. The sales person who sells the most units wins the contest. Write a Java application that inputs a series of 10 integers and determines and prints the largest integer. Your program should use at least the following three variables: a. counter: A counter to count to 10 (i.e., to keep track of how many numbers have been input and to determine when all 10 numbers have been processed). b. number: The integer most recently input by the user. c. largest: The largest number found so far.

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper

5. Write a Java application that uses looping to print the following table of values:

6. Write a complete Java application to prompt the user for the double radius of a sphere, and call method sphereVolumeto calculate and display the volume of the sphere. Use the following statement to calculate the volume:

  

Still stressed from student homework?
Get quality assistance from academic writers!

Order your essay today and save 25% with the discount code LAVENDER