Write a java complete program to access employee profile

Assignment Help JAVA Programming
Reference no: EM131483144

Topics Covered

- Designing a Java application
- Java I/O and Data types
- Control Structure-Decision
- Control Structure-Loops
- String Handling
- Arrays and Array lists
- Exception Handling
- Files I/O and streams

Background
A branch of the Australian taxation office has hired you as a contract programmer. Your first assignment is to write a Java complete program to access employee profile and calculate the tax rate for each employee. The user has first to enter the user name and password to access to their profile. When the login details are not correct, the program asks the user to re-enter login details again. A text based menu appear to the user for access the profile when the user provides correct login details (correct user name and password).

The menu offers the user to display profile or modifying any field in addition to calculate the tax rate. The tax rate can be calculated according to the following table:

For example is the user salary is $50,000, the tax rate is (50,000-40,000)*0.35+4,000 = $7,500

Task Specifications

You are required to write a Java console program using Netbeans IDE. Your task is to design and code a Java program that will achieve the following:

- On starting load the use details from a text file that is provided. Your program must display an error message if the file is not found or if there is no data.
- Display a message asking the user to enter user name and password. The program must display incorrect login message and ask the user to re-enter login details if the user enter incorrect user name or password.
- Display a menu when the user entered correct login details. The menu asks the user to select: display user profile, modify user profile, tax rate or exit.
- If the user chooses to display user profile the program display all the user profile for the login user and shows the menu again.
- If the user chooses to modify user profile the program must allow the user to enter new profile and update the user details in the text file and shows the menu again.
- When the user chooses tax rate, the program calculates and display the tax rate according to the user salary. The program then shows the menu again.
- The program terminates when the user select exit.
- Program should be properly commented and indented.

Reference no: EM131483144

Questions Cloud

Developing human resource policies : Business policies do not override a local, state or federal laws, by which local, state or federal laws can override business organizations policies.
Benefit from the devaluation of the yuan : Why do the Chinese people currently and in the future continue to benefit from the devaluation of the Yuan?
What sort of problems would this introduce for policymakers : A balanced budget amendment to the Constitution is introduced in Congress every so often. Congress would be required to balance the budget every year.
Describes how to create an it strategy : Watch Creating Winning IT Strategies video, which describes how to create an IT strategy. Because the PowerPoint slides in the video are a little hard to read.
Write a java complete program to access employee profile : SMB4103-Introduction to Programming - write a Java complete program to access employee profile and calculate the tax rate for each employee
Review the case of robert dunn : At the beginning of the 2001 recession, Robert Dunn, writing in the August 19, 2001, issue of the New York Times, noted that, "An absurd debate is going on.
Analyze scenarios of consequentialism as a theory : Analyze scenarios of consequentialism as a theory base in public administration. Validates position with applicable knowledge.
Could lowering tax rates actually lead to higher tax revenue : The informal or underground economy operates off the books and typically for cash. Estimates of the underground economy in the United States are usually.
The labor relations system in the public sector : What factors distinguish the labor relations system in the public sector from that in the private sector?

Reviews

len1483144

5/3/2017 8:45:27 AM

Trait Task Detail Possible Mark Comments Readability No more than one blank line at a time 1 No indent error 1 No non-meaningful name 1 One blank line separates sections of code 1 White space around all operators (allow one error) 1 No line exceeds 80 characters 1 Only one statement per line 1 Blocks correctly aligned 1 Documentation Introductory comments provided 1 Method comments provided 1 Variables/constants commented 1 Comments are useful 1 No unused variables/unreachable code/warnings 1 Variables initialised 1 Reusability Methods have been used 2 Parameters used 1 Return type used 1 File handling Data is written to file correctly 2 Data can be read from file correctly 2 File closed after use 1 Use of Try Catch 1 Specifications Shows correct menu options 1 Calculations are correct as per given specifications 1 Exits from the program correctly 1 Delivery Code delivered on time 1 Efficiency No other errors 1 Overall quality of program 1 30

len1483144

5/3/2017 8:45:18 AM

• All .java source code files of your Java Project so that your program can be run (you may use the src folder in the NetBeans directory) • Text file that is created by your program • Word document with appropriate headings and formatting and It should contain the following: o Print screens of all your error messages displayed to the user o Print screens of the data entry while entering menu options and output o Any assumptions you have made

Write a Review

JAVA Programming Questions & Answers

  Java program on eclipse

Using a while( true ) loop,and using the upper case alphabeth from Z to A,print the lower case alphabeth and its corresponding ascii values.You must terminate/exit/break this loop once you process the last letter (A).

  What violations and crimes would you definitely file

What if you were a parole officer and had to decide whether or not to file complaints against your parolees? What violations and crimes would you definitely file complaints for and what would you most likely overlook and why?

  Number of primes

Write a program BackwardPrimes.java that prompts user for a positive integer number x and displays x prime numbers whose reversal is also a prime. Numbers 13, 31 and 157 are instances of such numbers. Following is a sample run of your program.

  The fancy new french restaurant la food is very popular for

the fancy new french restaurant la food is very popular for its authentic cuisine and high prices. this restaurant does

  Write a recursive method called maxsum

write a recrusive method called maxSum that accepts a list of integers. L, and an integer limit n as parameters and use backtracking to find the maximum sum that can be generated by adding elements of L that do not exceed n.

  Earn a fixed salary

Write a JavaTM application using NetBeansTM Integrated Development Environment (IDE) that calculates the total annual compensation of a salesperson. Consider the following factors:A salesperson will earn a fixed salary of .

  Uses a loop to populate a one-dimensional array

Write the following program that creates and uses a loop to populate a one-dimensional array that holds the even numbers between 1 and 12; creates and uses a loop to populate a second one-dimensional array that holds the odd numbers between 1 and 12;..

  Design and implement in java a bookshop management

System Development for Business Processes - CE00351-5 - design and implement in Java a Bookshop Management System corresponding to the attached scenario. You are not required to implement the entire scenario.

  Layout of a java code

I need assistance in remarking the enclosed Java Code high-lighting, things like code layout, use of variable names, general readability and understandability.

  Implement savings account using locks and conditions

A savings account object holds a non-negative balance - Use a shared counter protected by test-and-test-and-set lock. Each thread locks the counter, increments it, releases the lock, and repeatedly reads the counter until it reaches n.

  Write java statements to create a collection of integers

Write Java statements to create a collection of integers, and to initialize each element of the collection to -1. Then, using for each statement to print the value of each element.

  Implement a class account

Implement a class Account. An account has abalance, functions toadd, andwithdrawmoney

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