Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Activity #1 Identifying the IPO for the following problems and design the flowchart for each of it: a. Prompt the user to enter a number
Activity #1 Identifying the IPO for the following problems and design the flowchart for each of it: a. Prompt the user to enter a number that will be stored as variable called num. Check for value num, if it is more than 10, add 5 to it. Otherwise, multiply num by 3. Store the result of addition or multiplication in a variable called answer. Display a statement "The answer is" together with the value stored in answer. b. A program is to display all odd numbers between 100 and 300. The starting value and end value are to be assigned by the programmer, not requested from user. c. Company DataCruncher needs a program that could evaluate the relationship between two values. User is to key in the two values, and it will be stored in variable, val_1 and val_2. The program will do a comparison between the two values. If val_1 is greater than val_2, a message will be display on screen to indicate that val_1 is greater than val_2. The program will also display appropriate messages when val_2 is greater than val_1; and val_1 is equal to val_2. Once user get to know the relationship between the two values, he/she should be prompted with an option to insert the next two values or terminate the program. d. WhetherGency want a program that use nested if statement to trigger tsunami alert based on a value key-in by user. The value is to be stored as a variable, wave_height, If wave_height is equal to or more than 1 meter but less than 8 meters, the program will inform the user that "The tsunami is strong" and ask them to key in the name of the affected region (either Asia or Europe). If the region is Asia, the program will display a message "Send a research team". Otherwise, display a message "Keep on monitoring". If wave_height is 8 meters, the program will inform the user that "The tsunami is destructive" and ask them to key in the name of the affected region (either Asia or Europe). If the region is Asia, the program will display a message "Send a rescue team". Otherwise, display a message "Keep on monitoring
Step 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