Lab Report
Term 1 – 2024/2025
درجة٢ تنسيق الملف
درجة٢ تسليم الملف على
البالك بورد
درجة٨ صحة الحلول
درجة١٢ المجموع
Course: Computational Thinking & Problem Solving
Section:
Student Name:
Student UQU ID:
Instructor:
Dr. Abdulwahab Aljubairy
Question 1: Write a python program to read two numbers, determine which
has greater value and then print it.
Question 2: Write a python program that asks the user to enter two values.
Then, swap the values.
Question 3: Write a python program that obtains minutes and remaining
seconds from an amount of time in seconds?
Question 4: Write a python program that checks if a given number is positive
or negative.
Question 5: Write a python program to read the age of a candidate and
determine whether it is eligible for casting his/her own vote. Knowing that, a
person should be 18 years and over to be able to vote.
Question 6: Write a python program to calculate the sum of two numbers.
These two numbers are entered by the user.
Question 7: Write a python program obtain the grade of a student. The
algorithm should notify the student is passed if his grade is greater than or
equal 60, otherwise the student is failed.
Question 8: Write a python program to check if a given number is even (
)زوجيor odd ()فردي