a. Create an application that uses a graphic interface to capture employee data and writes that data
Question:
a. Create an application that uses a graphic interface to capture employee data and writes that data to a random access output file. The data required for each employee includes an employee ID number from 1 through 99 inclusive, the first and last names of the employee, and the employee’s hourly pay rate. Allow the user to enter data one record at a time and to click a button to save each record. Save the class as CreateRandomEmployeeFile.java.
b. Create an application that allows the user to enter an employee ID number. When the user clicks a button, display all the stored data for the employee. Save the file as ReadRandomEmployeeFile.java.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 83% (6 reviews)
a import javaio import javaawt import javaawtevent import javaxswing public class CreateRandomEmployeeFile extends JFrame implements ActionListener private JLabel title new JLabelEmployee data Font bi...View the full answer
Answered By
PALASH JHANWAR
I am a Chartered Accountant with AIR 45 in CA - IPCC. I am a Merit Holder ( B.Com ). The following is my educational details.
PLEASE ACCESS MY RESUME FROM THE FOLLOWING LINK: https://drive.google.com/file/d/1hYR1uch-ff6MRC_cDB07K6VqY9kQ3SFL/view?usp=sharing
3.80+
3+ Reviews
10+ Question Solved
Related Book For
Question Posted:
Students also viewed these Computer science questions
-
Create a class that stores an array of usable error messages save the file as Data Messages java Create a Data Exception class each object of this class will store one of the messages Save the file...
-
a. The Rochester Bank maintains customer records in a random access file. Write an application that creates 10,000 blank records and then allows the user to enter customer account information,...
-
Create a TaxReturn class with fields that hold a taxpayers Social Security number, last name, first name, street address, city, state, zip code, annual income, marital status, and tax liability....
-
Elm Corp. makes two products: C and D. The following data have been summarized: Indirect manufacturing cost information includes the following: The company plans to manufacture 250 units of each...
-
Replacement times for TV sets are normally distributed with a mean of 8.2 years and a standard deviation of 1.1 years (based on data from "Getting Things Fixed," Consumer Reports). a. Find the...
-
The Burj Khalifa in Dubai is 2,717 feet tall, making it the worlds tallest building. For each statement, briefly discuss possible sources of error in the measurement. Then, considering the precision...
-
You are the technical accounting consultant of a professional accounting firm. One of your clients is an Australian travel company that arranges package tours to overseas destinations. The client...
-
The following information is from the June 30, 2011, post-closing trial balance of Mike's Hardware Company. Required 1. From the information provided, prepare a classified balance sheet for Mike's...
-
65. Doubling the initial concentration of a reactant doubles t1/2 of the reaction then order of reaction is :- (1) 3 (2) 2 (3) 1 (4) Zero
-
For each of the following items, indicate whether it would appear on a materials requisition form (MRF), a direct labor time ticket (DLTT), and/or a job cost sheet (JCS). Note: An item may appear on...
-
The game StopGate is played on a checkerboard with a set of dominoes; each domino is large enough to cover two checkerboard squares. One player places a domino horizontally on the checkerboard,...
-
Create a JFrame for Java Junior College. Use menus to allow the user to access information about different campuses, major fields of study offered, and activities. Include at least two options in...
-
However, this problem is self-contained because all the facts are reproduced as follows: Company P acquired a 100% voting interest in Company S for $150 million cash at the start of the year....
-
Evaluate So y/2 dxdy 022
-
what are the effects of cultural continuity and change on organizational succession planning? explain
-
1 2. A ball of mass m is attached to a rope of length L. The ball is released from rest with the rope positioned horizontally, as shown. Express all answers in terms of m, L, and appropriate...
-
A 0.600 kg block rests on a frictionless horizontal surface, where it is attached to a massless spring whose k-value equals 18.0 N/m. Let x be the displacement, where x = 0 is the equilibrium...
-
If the density of air is a constant 1.29 kg/m^3, how high does the Earth's atmosphere go if the pressure at sea level is 101,000 Pa? [Hint: The pressure in "space" is O Pa] 3,000 m 8,000 m 10,000 m...
-
Stevens Textile Corporation's 2016 financial statements are shown below: Balance Sheet as of December 31, 2016 (Thousands of Dollars) Income Statement for December 31, 2016 (Thousands of Dollars)...
-
You are a U.S. investor who purchased British securities for 2,000 one year ago when the British pound cost U.S. $1.50. What is your total return (based on U.S. dollars) if the value of the...
-
What is the output of the following code? b = 3; while(b < 6) { System.out.print(b + " "); b = b + 1; } a. 3 b. 3 4 5 c. 3 4 5 6 d. 3 3 3 3 3 3
-
What is the output of the following code? e = 1; while(e < 4); System.out.print(e + " "); a. Nothing b. 1 c. 1 1 1 1 1 d. 4 4 4 4 4 4
-
If total = 100 and amt = 200, then after the statement total += amt, ____________. a. total is equal to 200 b. total is equal to 300 c. amt is equal to 100 d. amt is equal to 300
-
The Morrit Corporation has $1,200,000 of debt outstanding, and it pays an interest rate of 8% annually. Morrit's annual sales are $6 million, its average tax rate is 25%, and its net profit margin on...
-
As an Investor, if I purchase a Corp Bond with a Coupon rate of 9%, and I am in the 30% tax bracket, effectively what rate will I be earning? Hint: If I purchased a Muni-Bond with an 8% Coupon rate,...
-
How can performance management systems be used to identify and nurture high-potential talent within the organization ?
Study smarter with the SolutionInn App