Please answer this, JAVA Programming

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

Grade A bonus=20% basic

Grade B bonus=15% basic

Grade C bonus=10% basic

Grade D bonus=7% basic

Grade E bonus=5% basic

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

Grade : A/B/C/D/E

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:

Units consumed=current month reading-previous month reading

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
Previous Month reading : 1000
Current Month reading : 2200
Units consumed : 1200
Total amount (OMR) : 111111

b. Students should show the result for 5 different values

Related Discussions:- Please answer this

Complete the specification of chatter, Tasks: Complete the specifica...

Tasks: Complete the specification of CHATTER, and specify ChatterLists. Implement these ADTs in Java with an abstract class Chatter and a class ChatterList. Use javado

Explain the basic applet life cycle, Explain the Basic Applet Life Cycle ? ...

Explain the Basic Applet Life Cycle ? 1. The browser reads the HTML page and seraches any tags. 2. The browser parses the tag to search the CODE and possibly CODEBASE att

Time date millis method, I neeed to create a basic code to do the following...

I neeed to create a basic code to do the following. the class is entry level and I would appreciate a brief explanation as to why you do each bit. Write a program that displays t

Describe validate() and reset() methods, Validate() : Used to validate prop...

Validate() : Used to validate properties after they have been populated; known as before FormBean is handed to Action. Returns a collection of ActionError as ActionErrors. Followin

What is the difference between jsp and jsf, JSP simply gives a Page which m...

JSP simply gives a Page which may contain markup, embedded Java code, and tags which encapsulate more complicated logic / html. JSF may use JSP as its template, but gives much more

Send input to different command prompt, I am supposed to call an external a...

I am supposed to call an external application (which is command-line based) and send input to the application from java. I created a batch file to call the application. It successf

Using rmi build robust distributed systems-jdbc odbc, This work assesses th...

This work assesses the following Outcomes: • Build robust, secure distributed systems using advanced programming techniques Use RMI to build a distributed application accessing

Explain about class in java, In Java everything exists within a class. It d...

In Java everything exists within a class. It describes the behavior of the class and its characteristics. Java applications and applets are built in the class. Rules present for cl

Explain the different kinds of exceptions, Explain The different kinds of e...

Explain The different kinds of exceptions ? Checked Exceptions  : Environmental error in which cannot necessarily be detected through testing; e.g. broken socket, disk full,

Design and implement online food delivery system, You are required to  desi...

You are required to  design & implement  online  food delivery  system  using Java RMI technology.  This involves writing both the server and the client program(s). Client programs

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd