You work as a junior developer in an advanced bank that introduces a new automated system to verify financial transactions in real time. The system should be quick and accurate to prevent fraud without creating inconvenience for conscientious customers.
rn
You are instructed to write the key module of this system. The program should analyze the transaction in three parameters: sum, time (hour) and client status (VIP or ordinary). Based on these data, the program makes a verdict: “The transaction is approved” or “The transaction is rejected”.
rn
verification rules:
rn
the transaction is considered permissible and approved if it is performed & nbsp; at least one & nbsp; from the following conditions:
rn
rn the transaction amount is strictly less than 10,000 conditional units. In this case, the operation is always approved, regardless of the time and status of the client. rn the client has the status "VIP" and the transaction is made strictly before 18:00. rn the client has the status of "ordinary", the transaction amount is strictly less than 5,000 conditional units, and the transaction is made strictly before 18:00. rn ol> rn Your task & mdash; Write a program that requests the amount, time and status for the user, and then displays the solution of the system.
Input format
The amount of the transaction (integer)
the time of the transaction, an hour (an integer is from 0 to 23)
User status (line, "VIP" or "ordinary")
Output format
The system verdict (line, "transaction approved" or "rejected transaction")
Example
Output
The transaction is approved
Hint
There will be no clue here, decide for yourself!