Write a program that will process the data file

Assignment Help JAVA Programming
Reference no: EM13694501

Question: You have a text file that generated 1000 lines with a faculty member's first name, last name, rank and salary. The ranks are randomly generated as assistant, associate, or full. The salary is randomly generated for an assistant from $40000 to 50000, for associate from 50000 to 100000 and for full from 60000 to 110000. The output looks like this:

FirstName1 LastName1 assistant $25133.42
FirstName2 LastName2 full $100123.44
...
FirstName1000 LastName1000 associate $52344.11
Write a program that will process the data file to read the file and calculate
1) The number of assistants and the average salary
2) The number of associates and the average salary
3) The number of professors and the average salary
4) The Lowest Salary and the person who earns it
5) The total number of professors and their average salary

This should be displayed in a JFrame, and an ArrayList should be useful.

Make this program using java programming. Make this program in simple way.

Reference no: EM13694501

Questions Cloud

Write a short memo to the vice-president of production : Formulate a linear program that can be used to determine the optimal product mix for the chemical company. Specifically, do the following: Identify the decision variables (make sure that you specify the units for these variables). Specify the obje..
Where c is the temperature in degrees celsius : Write a program that takes as input a depth in kilometers inside the earth and displays the temperature at this depth in degrees Celsius and in degrees Fahrenheit.
How long does a paged memory reference take : how long does a paged memory reference take - What is the effective memory reference time?
Sum of two squares of natural numbers : The formula "x is a sum of two squares of natural numbers" can be written as ?y?z(x = y × y + z × z).
Write a program that will process the data file : Write a program that will process the data file to read the file and calculate the number of assistants and the average salary and the number of associates and the average salary
Can an s-r flip flop be made with a t flip flop : Can an S-R Flip Flop be made with a T Flip Flop (and some other logic)? If YES, then how? Please explain the process.
Write a java statement to create an arraylist : Write a java statement to create an ArrayList called list to hold 25 integers - What is the type of the ArrayList defined in question number 1.
Explain the benefits of normalization : Explain one characteristic of a database that has data redundancy and Briefly explain the benefits of normalization and why we should implement it when designing databases
Characteristic of a database that has data redundancy : Explain one characteristic of a database that has data redundancy. Note: Redundancy in our context is not a good thing

Reviews

Write a Review

JAVA Programming Questions & Answers

  Create web application uses visual web java server

Create the Web application which uses Visual Web Java Server Faces framework and either Apache Tomcat or Glassfish as the server.

  Create and code a program that uses three parallel numeric

Create and code a program that uses three parallel numeric arrays of size 6. The program searches one of the arrays and then displays the corresponding values from the other two arrays.

  Compare and contrast the treatment of war

Compare and contrast the treatment of war in O'Brien's "The Things They Carried" and Frank O'Connor's "Guest of the Nation." 3-5 page MLA Format

  Socket programming in java: tcp

In this project we will develop a Web server in two steps. In the end, you will have built a multi-threaded Web server that is capable of processing multiple simultaneous service requests in parallel.

  Write a class that reads a file

In java, write a class that reads a file and outputs a list of the unique words in the file and the number of times each unique word occurs.Hint: use a HashMap with keys being the words and values being integer counts associated with the words.

  Java script program for song

Construct a JavaScript program that declares and prints an array that includes at least twenty of your favorite songs.

  World data app

Prepare WorldDataApp project. It implements the NameIndex portion, including creating it in SetupProgram, and searching, viewing and updating it in UserApp program.

  Program produces 1000 integer ranging

Then your program produces 1000 integer ranging from 1to 10000 in the array and then sort them in ascending order and then print the result into data.txt file. (You may list integers separated by space or new line)

  Explain how cookies are used to implement sessions

Describe a set of four methods that a queue would need to implement using a circular array and show the Java code to implement them if using an implementation given the outline definition below. Do not use any methods of the Collection classes.

  Write a java program that will play connect four

Write a java program that will play connect four - Must be a simple program no applets, jframes.

  Draw a uml diagram of each of the shapes

Draw a UML diagram of each of the Shapes, Rectangle and Square classes using the code that has been provided. Complete this using the examples that have been provide in the lecture slides.

  Write a program that displays a frame window w pixels wide

Write a program that displays a frame window W pixels wide and H pixels high. Use the Scanner to enter the values for W and H. The title of the frame is also entered by the user.

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