Practice
Employee Data
Write a program that accepts a set of triples and
and displays the triples in reverse order.
Each triple consists of an employee number, an employee
name and a salary.
You may
- use the employee number 0 to indicate the end of input,
- assume that the employee names contain no more than 30 characters
with no embedded whitespace and
- assume that the user shall input the data correctly.
For example, for an input set of
00123 Homer 23000.00
00113 Marg 45000.00
00012 Bart 56000.00
0
|
your program displays
Number Name Salary
--------------------------
00012 Bart 56000.00
00113 Marg 45000.00
00123 Homer 23000.00
|
|