1. First letter
a. one invalid first letter
b. one valid uppercase first letter
c. one valid lowercase first letter d. one test for each case identified by one letter i. R ii. O iii. Y iv. V v. W
2. Second letter
a. one invalid second letter after B
b. one valid uppercase for the second letter after B
c. one valid lowercase for the second letter after B
d. one test for each case identified by second letter after B i. R
e. one invalid second letter after G
f. one valid uppercase for the second letter after G
g. one valid lowercase for the second letter after GWrite a program based on the above series to display a juggler sequence, given a specified integer term to start with.
- Tell the user what the program does before prompting for input.
- All user input for this program will be need to be positive, non-zero values. So you will write a user-defined function to read positive, non-zero input from the user. The userdefined function requirements are: o The prompt for user input will be stored in a string type variable and passed as an input argument to the function (examples: "Enter the first term" or "Enter terms tp display per line").
- The prompts can either be stored as constant strings, or may be hardcoded strings in the function calls. o The function will prompt the user for the input and then use a loop to verify that the value input is positive and non-zero. If it is not, the function will issue an error message and then re-prompt the user to enter the number again, until a positive, non-zero value is entered. o Once valid input has been entered, the value that the user entered will be returned to the main function via the return statement.
- Call the above user-defined function to read in the first term in the series to be used for calculating the terms in the juggler series. Pass a prompt for the first term as an input parameter, and return the validated first term value to main.
- After a valid first term has been entered, call the same user-defined function a second time, to read in the number of terms to calculate (i.e. how many terms in the series will be calculated). Using the same user-defined function will work, because the user input should again be positive and non-zero. Pass the prompt for the number of terms as an input parameter, and return the validated number of terms value to main.
- After a valid number of terms has been entered, call the same user-defined function a third time, to read in a terms per line count, representing how many terms should be displayed on each line. Again, the user input should be positive and non-zero. Pass the prompt for the terms per line as an input parameter, and return the validated terms per line value to main.
- Loop, calculating and outputting the value of each term in the series