Suppose that one of the biggest car sales companies promised you an offer. Therefore, they have requested that you write a simple program that will help to assign a code consisting of only three characters. The first character is either the letter L which indicates that the employee deserves the certificate for long-term service, or the letter I which indicates that an employee is still an intern. The second character is either 3 indicating that the employee works at a dispatch department or 4 indicating that the employee works as a salesperson. Write a program that requests the user to enter the code (L3, L4, I3, I4). The program should open the file named “Employeecode.txt’, search the for the code, and display only the names of the employees assigned to that code. E.g. if an employee works at a dispatch department with an employee code as “L3A#John Uka”, then only John Uka should be displayed. The program must test only the first two characters. Should the user enter an invalid code, then the appropriate error message must be displayed.
Max Function
Statistical function is of many categories. One of them is a MAX function. The MAX function returns the largest value from the list of arguments passed to it. MAX function always ignores the empty cells when performing the calculation.
Power Function
A power function is a type of single-term function. Its definition states that it is a variable containing a base value raised to a constant value acting as an exponent. This variable may also have a coefficient. For instance, the area of a circle can be given as:
Suppose that one of the biggest car sales companies promised you an offer. Therefore, they have requested that you write a simple
Step by step
Solved in 2 steps