Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Java Expert


Home >> Java

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

Java, Programming

  • Category:- Java
  • Reference No.:- M92068442
  • Price:- $80

Priced at Now at $80, Verified Solution

Have any Question?


Related Questions in Java

Project requirementsfor the problem described in the next

Project requirements For the problem described in the next section, you must do the following: 1. include your student ID at the end of all filenames for all java code files. Three classes have been identified in section ...

Assessment -java program using array of Assessment -JAVA Program using array of objects

Assessment -JAVA Program using array of objects Objectives This assessment item relates to the course learning outcomes as stated in the Unit Profile. Details For this assignment, you are required to develop a Windowed G ...

In relation to javaa what is constructor the purpose of

(In relation to Java) A. What is constructor? the purpose of default constructor? B. How do you get a copy of the object but not the reference of the object? C. What are static variables and instance variables? D. Compar ...

Assignment taskwrite a java console application that allows

Assignment task Write a java console application that allows the user to read, validate, store, display, sort and search data such as flight departure city (String), flight number (integer), flight distance (integer), fl ...

Assessment instructionsin this assessment you will complete

Assessment Instructions In this assessment, you will complete the programming of two Java class methods in a console application that registers students for courses in a term of study. The application is written using th ...

Overviewyou are required to use java se 80 and javafx to

Overview You are required to use Java SE 8.0 and JavaFX to develop a Graphical User Interface (GUI) for the FlexiRent rental property management program created in Assignment 1. This assignment is designed to help you: 1 ...

Fundamentals of operating systems and java

Fundamentals of Operating Systems and Java Programming Purpose of the assessment (with ULO Mapping) This assignment assesses the following Unit Learning Outcomes; students should be able to demonstrate their achievements ...

Retail price calculatorwrite a java program that asks the

Retail Price Calculator Write a JAVA program that asks the user to enter an item's wholesale cost and its markup percentage. It should then display the item's retail price. For example: (If an item's wholesale cost is 5. ...

Assessment database and multithread programmingtasktask 1

Assessment: Database and Multithread Programming Task Task 1: Grade Processing University grading system maintains a database called "GradeProcessing" that contains number of tables to store, retrieve and manipulate stud ...

Solving 2nd degree equationsbull write the following java

Solving 2nd degree equations • Write the following Java methods • boolean real-sols(double a, double b, double c): it returns true if the 2nd degree equation ax2 + bx + c has real solutions • double solution1(double a, d ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As