write a Java program that uses a while loop to read values from the above text file and displays then in a table under the headings

1. Using a text editor or wordprocessor, create a text file holding a series of

 

surnames and payroll numbers (at least five of each). For example:

Smith

123456

Jones

987654

Jenkins

555555

Now write a Java program that uses a while loop to read values from the above

text file and displays then in a table under the headings 'Surname' and 'Payroll

No.'. (Don't be too concerned about precise alignment of the columns.)

2. Take a copy of the above program, rename the class and modify the appropriate

line so that the program accepts input from the standard input stream (i.e., using

Scanner around the standard input stream, System.in). Then use redirection to

feed the values from your payroll text file into your program (displaying the

contents as before).

find the cost of your paper

prepare a lead container of mass 1.5 kg and pour 0.65 kg of water into it, both at the room temperature of 20.5°C.

You are at a restaurant eating lunch with a friend. After the meal, your friend realizes they left their wallet at home. Your friend gives you a piece of silver….

Given the above information, how many people did McKinsey and BCG hire in the year 2013?

There are two big consulting firms in Melbourne, McKinsey and Boston Consulting Group (BCG); assume that their clients view them as providing identical consulting services. They hire people on yearly….

write a program that reads a file and displays all of the words in it that are misspelled.

A spell checker can be a helpful tool for people who struggle to spell words correctly. In this exercise, you will write a program that reads a file and displays….