Exercise 3 Character and Number Function
Exercise 3 Character and Number Function
1. List the employee name and salary increased by 15% and expressed as a whole number of
dollars.
EMPLOYEE_AND_JOB
----------------------------
SMITH CLERK
ALLEN SALESMAN
WARD SALESMAN
JONES MANAGER
MARTIN SALESMAN
BLAKE MANAGER
CLARK MANAGER
SCOTT ANALYST
KING PRESIDENT
TURNER SALESMAN
ADAMS CLERK
JAMES CLERK
FORD ANALYST
MILLER CLERK
14 records selected
NAME CODE
---------- ----------------
SMITH CL36S530
ALLEN SA49A450
WARD SA52W630
JONES MA56J520
MARTIN SA65M635
BLAKE MA69B420
CLARK AN78S300
KING PR83K520
TURNER SA84T656
ADAMS CL87A352
JAMES CL90J520
FORD AN90F630
MILlER CL93M460
4. Do a case insensitive search for a list of employees with a job that the user enters. [Hint: use
UPPER].
5. Print a list of department names centred. Assume a column width of 20.
DEPARTMENT
------------------------------
ACCOUNTING
RESEARCH
SALES
OPERATIONS
6. Find the first occurance of the letter 'L' in employee names, and change the 'L' to an 'X'.