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
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