Question: Question ONE. Java is known as an object-oriented programming language. What is the difference between an object-oriented programming language and a structured programming language? (4

Question ONE.

Java is known as an object-oriented programming language. What is the difference between an object-oriented programming language and a structured programming language?

(4 Marks)

Using an editor of your choice, write a Java program that checks whether a given number is even or odd. (8 Marks)

Write a Java program to find the sum and average of two numbers. (8 Marks)

Variables have a special kind of attention in Java. What are the preset rules that effect the naming of variables in Java? (5 Marks)

(25 Marks)

Question TWO.

Write a Java program that performs a few roles of a calculator, namely; addition, subtraction, multiplication and division. (12 Marks)

Operators are symbols that help in performing operations of mathematical and logical nature. Explain the different types of operators available in Java. (8 Marks)

With examples define all the data types available in Java? (5 Marks)

(25 Marks)

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!