0% found this document useful (0 votes)
6 views2 pages

Lab Report: Term 1 - 2024/2025

Uploaded by

2sm2ck457b
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views2 pages

Lab Report: Term 1 - 2024/2025

Uploaded by

2sm2ck457b
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

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 (‫)فردي‬

You might also like