Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications 15th International Conference Dexa 2004 Zaragoza Spain August 30 September 3 2004 Proceedings Lncs 3180

Authors: Fernando Galindo ,Makoto Takizawa ,Roland Traunmuller

2004th Edition

3540229361, 978-3540229360

More Books

Students also viewed these Databases questions