You are on page 1of 2

DCIT22 2020: FINAL EXAM

DEADLINE: JANUARY 21, 2020 11:00 am (Late submission will not be accepted)

SPECIFICATION FOR ALGORITHM


Font: Century Gothic Font Size: 11 Line Spacing: Single Page Size: A4 Margin: 0.75 all sides w/ page number (lower
right corner)
Header: Surname, First Name, MI / Student Number / Course Year Section / Date of Submission / Written Work#
Footer: DCIT22 Computer Programming 1 / Page Number
Font Color of Header & Footer:
BSIT 1-3 Orange
BSIT 1-5 Aqua
BSCS 1-2 Purple
BSCS 1-3 Olive Green

Create programs Python

1. Filename: firstname and middlename initials_surnameFE1.py (10 points)

Write a program that will accept 10 numbers and display the average (use for loop statement)

2. Filename: firstname and middlename initials_surnameFE2.py (10 points)

Write programs that will use for loop statement to print the following table of values:

Sample Output
Enter Number: 5
N 10*N 100*N 1000*N
1 10 100 1000
2 20 200 2000
3 30 300 3000
4 40 400 4000
5 50 500 5000

1
Print the following output:

firstname and middlename


initials_surnameFE3.py (for loop)
123
123
123
firstname and middlename
initials_surnameFE4.py (while loop)
1
12
123
firstname and middlename
initials_surnameFE5a.py (for loop)
123
12
1

You might also like