Professional Documents
Culture Documents
Lab 7 SE 100L Fall 2023 Karam
Lab 7 SE 100L Fall 2023 Karam
College of Engineering
Software Engineering Department
SE 100L – Programming for Engineers Lab
Paste the screenshot of your program and your output for Exercise 1 here:
Al Faisal University
College of Engineering
Software Engineering Department
SE 100L – Programming for Engineers Lab
Copy and paste the code of your program for Exercise 1 here:
for x in range(1,11,):
if (x%2==0):
if(x>average):
countgreater+=1
elif(x<average):
countless+=1
else:
countequal+=1
Paste the screenshot of your program and your output for Exercise 2 here:
Al Faisal University
College of Engineering
Software Engineering Department
SE 100L – Programming for Engineers Lab
Copy and paste the code of your program for Exercise 2 here:
print('\t Multiplication Table')
for x in range (1,11):
print(x,end=" ")
for d in range(1,11):
print('\t',x*d,end="")
print()
Paste the screenshot of your program and your output for Exercise 3 here:
Copy and paste the code of your program for Exercise 3 here:
year = 2024
while (year < 1920 or year > 2023):
year = input('When were you born:')
if not year.isdigit():
print(year,"is not a number")
year = 2024
else:
year = int(year)
age = 2023 - year
Al Faisal University
College of Engineering
Software Engineering Department
SE 100L – Programming for Engineers Lab
print("you are",age,"years old")