Question
ONE Simple interest is calculated by getting the product of principle, rate and time. Write a Java Program that calculates Simple interest. (15 Marks) With
ONE
Simple interest is calculated by getting the product of principle, rate and time. Write a Java Program that calculates Simple interest. (15 Marks)
With an editor of your choice, write a Java program that prints even numbers from 2 to n using the while loop. (10 Marks)
(25 Marks)
TWO
Explain data types in Java. (5 Marks)
Just like any other programming language, Java has keywords. Name and explain the 49 keywords and their roles in Java. (5 Marks)
Define comments in Java. (2 Marks)
Using an example, define an object to detail in Java. (3 Marks)
There are quite a number of error types in Java. Name and describe some of these errors. (4 Marks)
Why would a programmer choose an object-oriented programming language over a structured one? (2 Marks)
With examples explain the if, if else and switch statements in Java. (4 Marks)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started