Develop an algorithm using either pseudocode or a flowchart that allows an e-scooter rental company to calculate the total rental charge for a customer.
The algorithm should:
- Prompt the user to enter the rental duration in minutes.
- The duration entered must be greater than zero.
- The user should be made to re-enter the duration until the duration entered is valid.
- Prompt the user to enter the number of safety helmets hired (no validation is required).
- Calculate the total rental cost by:
- Charging £1.50 for every safety helmet regardless of the duration.
- Charging a further £0.20 for every minute of rental regardless of how many safety helmets are hired.
- Output the final rental cost.