Laboratory Report 09
Laboratory Report 09
LABORATORY REPORT
IN
COMPUTER FUNDAMENTALS AND
PROGRAMMING
PROCEDURE:
OUTPUT:
1. Step 1: Start
Step 2: Read Lab 9, Name, Adress, Age , Sex, Course, Subject, Year, and
Schedule
Step 3: Display Lab 9, Name, Adress, Age , Sex, Course, Subject, Year, and
Schedule
2. Step 1: Start
Step 2: Input User Information: Get Lab number, Name, Address, Age, Sex,
Step 3: Display User Information: Get Lab number, Name, Address, Age, Sex,
Step 4: End
3. Step 1: Start
the power.
4. If Else:
Step !: Start
Step 6: End.
Switch Case
Step 1: Start.
Default: If result is any other number, print "The sum is neither 0, 1, nor -1".
Step 5: End
5. For Loop
Step 2: Initialize the sum variable sum = 0 to store the cumulative sum.
Step 5: Repeat the following steps until the condition i <= n is false:
Increment i by 1: i = i + 1.
While loop:
product.
Increment i by 1: i = i + 1.
Step 5: End the loop when the condition i <= n becomes false.
Do….while
Step 2: Initialize the total variable total = 100 and the loop control variable i
= 1.
6. Array
For i = 1 to n: