SmartCare Surgery is a private clinic which is operating in the Sultanate of Oman since 2015. The company have three types of users, Doctors, Nurses, and patients. The clinic needs a program to validate the user’s identifiers
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:
- SmartCare Surgery is a private clinic which is operating in the Sultanate of Oman since 2015. The company have three types of users, Doctors, Nurses, and patients. The clinic needs a program to validate the user’s identifiers.
Valid users’ identifiers are ten (10) characters long, starting with two (2) uppercase letters.
Here are some examples of valid users’ identifiers.
DR8361541
NR4356787
PT2345678
Write an
- take a potential user’s identifier from the user.
- if the input is “X”, allow the user to quit the program.
- if the potential user identifier is too short, then tell the user.
- if the first two characters do not follow the rules, then tell the user.
- allow the user to keep entering user’s identifiers.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps