Write a java program to declare and store numbers

Assignment Help Programming Languages
Reference no: EM131336819

Objective:

The aim of this assignment is to the test student's ability to use control structures, arrays and work with classes and objects to solve specific problems using a programming language.

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.

The evaluation will be done on the strength of analysis presented in the proposal.

- What you will do with the given tasks and the dates by when they will be completed
- General overview of initial understanding of solutions to all the tasks
- Identification of Literature Resources

1. 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 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 minimum of 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

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

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 150 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

Reference no: EM131336819

Questions Cloud

Standard deviation of the given probability distribution : Calculate the mean and standard deviation of the simulated values. How do they compare to the mean and standard deviation of the given probability distribution?
Explain how a linear breakeven chart is constructed : Explain how a linear breakeven chart is constructed when a firm's selling price, variable costs per unit, and fixed costs are known.
What is probability that jenkins will incur operating losses : What is the probability that Jenkins will incur operating losses?- What is the probability that Jenkins will operate above its breakeven point?
Development of a real-time driver tracking system : Development of a Real-Time Driver Tracking System. Putting comments on every major function and methods explaining its use and brief description.
Write a java program to declare and store numbers : Introduction to Programming - COMP 10005 What you will do with the given tasks and the dates by when they will be completed and General overview of initial understanding of solutions to all the tasks
What is probability that vargo will have operating losses : Vargo Industries has computed its breakeven level of output to be 25,000 units.- What is the probability that Vargo will have operating losses?
Draw moment diagram for the elbow-biceps-forearm-hand system : Draw the moment diagram for the elbow-biceps-forearm-hand system and determine the magnitude and location of the maximum moment if the total weight w of the forearm and hand are included and are assumed to act at the midpoint of the forearm.
Describe the policies and their impact on the field agency : Describe the policies and their impact on the field agency (military now offers transgender member service policy). Propose specific recommendations regarding how you, as a social work intern, and the agency (military mental health clinic) can advoca..
How large could additional fixed costs from new equipment : Logue Lock Company expects its fixed costs next year to be $750,000. - How large could the additional fixed costs from the new equipment be without affecting the breakeven point?

Reviews

Write a Review

Programming Languages Questions & Answers

  Write the program to display company-s payroll report

Write down the program to display company's payroll report in list box. The program must read each employee's name, hourly rate, and hours worked from file and produce report in a table format.

  Program to compute pearson correlation coefficient

Write down a program to compute Pearson correlation coefficient by using parallel loop templates from Intel Threading Building Blocks library (TBB).

  Program to compute net pay of employee

A program to compute net pay of employee. It must permit one to read deposit number, account name, amount deposited, and yesr.check.

  Write program which permits user to enter first name

Write the program which permits the user to enter first names of candidates in university election and number of votes received by each candidate.

  Create a class named account with data fields

Create a class named Account with data fields for an account number, payment amount and balance as well as the appropriate set and get methods. Include a constructor method that contains no arguments.

  Create a multi-threaded competition

Create a multi-threaded competition in which opposing Robin Hoods will attack one another and try to take each other's gold coins.

  Write a gui application that prints out hello in english

Write a GUI application that prints out "Hello!" in either: English, French, or Spanish. When the user selects another language, the greeting shown in the greeting area should change.

  Write a program to prints the sum of all elements with an

write a program to prints the sum of all elements with an even index and all elements with an odd index of the

  Write program where dealer-s five-card hand is dealt

Write a program where the dealer's five-card hand is dealt "face down" so the player cannot see it. The program should then evaluate the dealer's hand.

  Html5 assignment i need an assignment for html5 containing

i need an assignment for html5 containing 2 parts1 3 pages html5 website2 report more important than the website

  Explaining graphics as user experience on web sites

Graphics provide significant richness to the user experience on web sites. Discuss how each of these sites uses graphics in good or poor ways.

  Display of the error message from a bound textbox

How does the IDataErrorInfo interface triggers the display of the error message from a bound textbox

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