Question
PRACTICE Design a solution flowchart with this problem statement. Ask the user to enter their student id number. (You may assume the user has entered
PRACTICE
Design a solution flowchart with this problem statement. Ask the user to enter their student id number. (You may assume the user has entered a valid student number. You do not have to include the leading 0's. If your student number is 000123456 you should just enter 123456.) Ask the user to enter a positive integer between 1 and 9. You may assume the user enters a positive integer between 1 and 9. Calculate the user's student number modulo the number they entered. If the result is 0 then ask the user to enter another number. The program should display the new number times 3. If the result of the student number modulo calculation is 1 then the program should display the message "Off by one!". If the result of the calculation is anything else the the program should ask for the user to input a letter. The program should display the letter repeated n times, where n is the result of the first calculation. Display the message "Valid program run, goodbye!" and exit no matter which path is taken.
Please make sure image is big enough to view properly and here is an example of a chart below
START PRINT "Wecome to Lab 4" GET letter FROM IF letter a" AND letter "m True PRINT "first half False F letter >"n" AND letter "z PRINT "second half True False GET number FROM IF letter "A" AND letter "Z True PRINT "Even number with a Capitalletter True False PRINT "odd number with a Capital etter False PRINT "Goodbye ENDStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started