Question: few java programs I need help with Write a JAVA program to check if a number entered by the user is Odd or Even. If

few java programs I need help with

Write a JAVA program to check if a number entered by the user is Odd or Even. If the number is Odd, also check whether it is Prime or not.

Write a JAVA program using method() to find the compound interest on a principle entered by the user for a period of 5 years compounded annually at 2% rate of interest.

What is the difference between run-time and compile-time error ?

THANKS !!!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!