Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Learning Outcomes Upon completion of this lab session, learners will be able to: 1. grasp the steps in solving computer programming problem 2. solve a
Learning Outcomes Upon completion of this lab session, learners will be able to: 1. grasp the steps in solving computer programming problem 2. solve a given problem that involves sequence, selection and repetition structure by applying pseudocode technique. Activity #1 1. Use IPO table to analyze the problems below. Then, design the pseudocode for each of it: a. Obtain three numbers from the keyboard, compute the sum and average of the numbers. Display the results. b. Prompt the user to enter a number. Then, display its square and cube values. C. A program that should accept 8 integers from user. Out of that 8 integers, the program should be able to identify and count on how many positive and negative integers. It should display the total number of positive and total number of negative integers. If the counting for negative integers is more than 4, inform the user that there are too many negative integers entered. API Status 0-50 51-100 d. An Air Pollutant Index (API) recording system should allow user to enter the name of month to start using the system. If the user entered September, April, June, or November as the month, 30 API readings should be keyed-in by the user into the program. If user entered February, the system will ask the user to choose between leap year or non-leap year. If user choose non leap year, 28 API readings should be keyed-in into the system or else, 29 API readings will be captured. Other than that, 31 readings should be keyed-in by the user. For each API reading entered, the program should be able to analyze the condition and display the API reading with its status as per in Figure 1. 101-200 Good Moderate Unhealthy Very Unhealthy Hazardous 201-300 Figure 1 Learning Outcomes Upon completion of this lab session, learners will be able to: 1. grasp the steps in solving computer programming problem 2. solve a given problem that involves sequence, selection and repetition structure by applying pseudocode technique. Activity #1 1. Use IPO table to analyze the problems below. Then, design the pseudocode for each of it: a. Obtain three numbers from the keyboard, compute the sum and average of the numbers. Display the results. b. Prompt the user to enter a number. Then, display its square and cube values. C. A program that should accept 8 integers from user. Out of that 8 integers, the program should be able to identify and count on how many positive and negative integers. It should display the total number of positive and total number of negative integers. If the counting for negative integers is more than 4, inform the user that there are too many negative integers entered. API Status 0-50 51-100 d. An Air Pollutant Index (API) recording system should allow user to enter the name of month to start using the system. If the user entered September, April, June, or November as the month, 30 API readings should be keyed-in by the user into the program. If user entered February, the system will ask the user to choose between leap year or non-leap year. If user choose non leap year, 28 API readings should be keyed-in into the system or else, 29 API readings will be captured. Other than that, 31 readings should be keyed-in by the user. For each API reading entered, the program should be able to analyze the condition and display the API reading with its status as per in Figure 1. 101-200 Good Moderate Unhealthy Very Unhealthy Hazardous 201-300 Figure 1
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