Write a java program using classes and object to read

Assignment Help Computer Engineering
Reference no: EM132217508

Assignment

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

Reference no: EM132217508

Questions Cloud

Creates an object of type pocket to be used : How wTakes in a coin name as part of the constructor and stores it in a private string Has a method that returns the coins name Has an abstract getvalue method
What is wrong with the given variable declarations : What is wrong with the following variable declarations? If wrong, explain. If correct (nothing wrong), write "correct". double 1st_var = 10; int var2.
Describe one way that you might be able to improve the speed : Why did it run so slow? Describe one way that you might be able to improve the speed of such a program.
Which method converges faster : Calculation with same initial guess x0 and convergence criterion as before. Finally, attach your code for the secant method and provide MATLAB outputs.
Write a java program using classes and object to read : XYZ Group is a leading construction company in Oman and they are specialize in delivering solutions to diverse businesses in Oman and UAE.
What parameters are within the context of python functions : What parameters are within the context of Python functions. As part of your answer indicate whether a parameter is also a local variable.
Write a program that performs the given operations : Write a program that performs the following operations on the sequence of numbers from 0 to 100: You should loop and include the number "42", 10 times.
Provide runtime analysis of your program : Provide runtime analysis of your program. As discussed in lecture, Big-O notation provides us a way to evaluate the performance of our code.
Compute the average of the given numbers : Compute the average of these numbers, when you are finished all numbers should be removed from the stack and the average should be stored in EAX.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Determine the attenuation at the passband corner

Give an approximate value for delay error realized in the passband. (The passband is the frequency range where the delay is approximately constant.)

  Write a program to read a string and count the vowels

Write a program to read a string and count the vowels. The program should provide a count for each vowel and a total count of vowels.

  Describe the types of optical input devices

How does a laser printer s operation differ from that of a dot matrix printer? Describe the types of optical input devices.

  Explain the unix file systems and window file system

What is the difference between hard links and soft links in general , also , what is the difference between UNIX file systems and Window file system.

  Calculate the mean value and standard deviation of x

For t = 0 to 8?, take discrete sample data of the function x(t) with time interval of 0.025 sec, thus forming a dataset {x}.

  What is the cookie

What is a cookie? What are advantages and disadvantages of using cookies in a web application.

  How does the use of interrupts increase the efficiency

How does the use of interrupts increase the efficiency of a computer while executing programs.

  Define buy-in at the department level

Research and describe the personnel who should be involved in a Disaster Recovery and Business Continuity Plan

  Implement your algorithm in python

Draw NassiShneiderman (NS) diagrams that present the steps of the algorithm required to perform the task specified

  Implement a procedure to decode a huffman-encoded string

Implement a procedure to decode a Huffman-encoded string, given the code and len arrays. What would be the main advantage and the main disadvantage of doing so?

  What is a proactive measure to minimize data error

What is a proactive measure to minimize data error? Is master data management the best method of rectifying data error? Why?

  Why would you partition or replicate the data

We decide to use an abstract object to represent the stock market data. Would you partition or replicate the data? Why or why not?

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