Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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 END

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Database 11g SQL

Authors: Jason Price

1st Edition

0071498508, 978-0071498500

More Books

Students also viewed these Databases questions

Question

=+. Show in Example 6.3 that P[IS, - L,| > L'/2+ 0.

Answered: 1 week ago

Question

a sin(2x) x Let f(x)=2x+1 In(be)

Answered: 1 week ago