#### All Pages

Assignment Help:
Assignment Help >> JAVA Programming
Learning Outcomes:

1. Use different program control statements in a programming language

2. Demonstrate the use of arrays with a programming language

3. Define and work with classes and objects in a programming language.

1.1 a. XYZ Group is a leading construction company in Oman and they are specialize in delivering solutions to diverse businesses in Oman and UAE. Inorder to motivate the employees, the company has decided to announce the different types of bonus depends up on the employee''s Grade

If the employee belong to

Write a Java program using classes and object to read the employee code (Integer), employee name (string), Basic salary (double), Category (Character) then calculate the bonus (double) and the total salary (double) eligible for each employ. The output should have the employee code, employee name, basic salary, grade bonus and the total salay. The program must use switch-case construct for calculations. Test your program for 5 employees.

Sample Output

Employee code 1234

Employee Name : aaaaa

Basic Salary : 1000 OMR

Bonus : 1111 OMR

Total Salary : Basic salary + Bonus

b. Students are instructed to show the 5 test cases for the above scenario

1.2 Write a Java program to declare and store numbers from 1 to 10 in a single dimensional array and display the output in the following format.

1

2 3

4 5 6

7 8 9 10

1.3 a. Oman Data Park is an organization in Oman providing IT Services to its customers. The company has a turnover of around 2.0 Billion OMR in a year. The company has assigned with a new project to automate the electricity bill processing using Java technology. As a learners of Java technology you are expected to help the Oman Data Park by wring a Java program using classes and objects that calculates and prints the monthly electricity bill for the customers. The programs should read the customer number (Integer), Customer name(string), previous month reading (Integer), current month reading (Integer).

Note: Assume that OMR refers to Omani Rials

Calculations:

First 100 units, unit rate = 1.25 OMR

Next 250 units (101-250), unit rate = 3.10 OMR

Next 300 units (251-550), unit rate = 5.00 OMR

Remaining units, unit rate = 4.00 OMR

A sample output is as follows:

Customer Id : 1234
Customer Name : xxxxxxxxxxxxxxxx
Units consumed : 1200
Total amount (OMR) : 111111

b. Students should show the result for 5 different values

#### Develop a java - html5 based game, Develop a java/html5 based game Proje...

Develop a java/html5 based game Project Description: I want a game designed that mostly allows users to bid a certain amount of dogecoin and depending on how far they get in

#### I want five page website design, I want five page website design Project...

I want five page website design Project Description: Five page website CMS Front end design Skills required are Graphic Design, Java, HTML, PHP, Website Design

#### Create a simple object based gui application, Objective: create a simple o...

Objective: create a simple object, put that object in a simple collection class, use that object and collection in a simple GUI application. Specification:  Consider a Librar

#### Object oriented programming, Theobjectiveoftheassignment is tofamiliarize y...

Theobjectiveoftheassignment is tofamiliarize youwithinheritance, GUIand abstraction. Create anabstractclass named that includesprivatefields for the InternationalStandard BookNumbe

#### Polymorphism carbonfootprint interface program, (CarbonFootprint Interface:...

(CarbonFootprint Interface: Polymorphism) Using interfaces, as you learned in this chapter, you can specify similar behaviors for possibly disparate classes. Governments and compan

#### How much cpu time does an applet get, How much CPU time does an applet get?...

How much CPU time does an applet get? One of the few legitimate concerns about hostile applets is excessive use of CPU time. It is possible on a non-preemptively multitasking s

#### JAVA GUI, CHEMISTRY PROBLEMS

CHEMISTRY PROBLEMS

#### What content issues is happened in java language, What Content Issues is ha...

What Content Issues is happened in java language? Some people claim in which Java is insecure since it can show the user erotic pictures and play flatulent noises. By this stan