Write a program that gets the user to enter a string. It should keep getting the user to enter a string until they enter a valid string. Each time they enter a string an appropriate message should be displayed telling them whether the string they entered is valid or not.
For a string to be valid:
- it must be between five and seven characters in length (inclusive)
- it must consist only of uppercase letters
- it must contain only unique characters (ie no character appears in the string more than once)
- the sum of the ASCII codes of the characters in the string must be between 420 and 600 (inclusive).
Evidence that you need to provide
Include the following evidence in your Electronic Answer Document.
0 6 . 1 Your PROGRAM SOURCE CODE
\[12 marks\]
0 6 . 2 SCREEN CAPTURE(S) showing the results of testing the program by entering the
strings BOIL, BRAisE, ROAST, BLANCH and PRESSURECOOK. You will need to
execute your program more than once to test all of the strings.
\[1 mark\]