Code / algorithm aim
The program should declare a function that checks the length of a name to make sure that it is more than 2 characters long. If it is not longer than 2 characters long it should take the user back to the subroutine that asks them to enter their name. If it is longer the function should greet the user with their name and take them to the function that asks for their password.
The program should then declare a function that checks that the user has entered a capital letter at the start of their password. If the user has put a capital letter the user should be told that their password has an uppercase letter at the start and end. If not the user should be told that they do not have an uppercase letter at the start and be taken back to the subroutine where they can enter their password.
The program should then declare a subroutine that asks the user to enter their name. The user should then be taken to a function that checks the length of their name.
The program should then declare a subroutine that asks the user to input a password with a capital letter at the start. The user should then be taken to a function that checks if the password has a capital letter at the start.
The subroutine that asks the user for their name should be called.
By logging in you can earn CS points and keep track of what you have done. Do you want to:
Login
Join Now
Instructions (click to view)
All the code that you need has been given below. Simply organise the code blocks into the correct order so that the code follows the algorithm aim above.
You can organise the blocks by clicking on the arrows on the right hand side to place them above or below the other blocks.