ARMY PUBLIC SCHOOL JODHPUR
AUTUMN BREAK HOLIDAY HOMEWORK
CLASS- VII
SESSION- 2025-26
SUBJECT- COMPUTER SCIENCE
Instructions:
A. All the work assigned for the Autumn break will be considered an internal
activity for Computer Science and will carry 10 marks. Therefore, it is
mandatory for everyone to complete it and submit it in class.
B. Write the given programs in your computer note book
Chapter-6- Python Programs - Conditional Coding
Task 1: (5 Marks)
a. W.A.P. to check positive or negative number
Sol:
num = int (input ("Enter a number: "))
if num > 0:
print ("The number is Positive")
else:
print ("The number is Negative or Zero")
b. W.A.P. to check entered number is Even or Odd
Sol:
num = int (input ("Enter a number: "))
if num % 2 == 0:
print ("The number is Even")
else:
print ("The number is Odd")
c. W.A.P. to check letter entered by user is Vowel or Consonant
Sol:
ch = input("Enter a letter: ")
if (ch == 'a' or ch == 'e' or ch == 'i' or ch == 'o' or ch == 'u' or
ch == 'A' or ch == 'E' or ch == 'I' or ch == 'O' or ch == 'U'):
print (ch, "is a Vowel")
else:
print(ch, "is a Consonant")
4. W.A.P. to find the greatest of two numbers entered by the user.
Sol:
a = int(input("Enter first number: "))
b = int(input("Enter second number: "))
if a > b:
print("The greater number is:", a)
else:
print("The greater number is:", b)
5. W.A.P. to find the greatest of three numbers entered by the user.
Sol:
a = int(input("Enter first number: "))
b = int(input("Enter second number: "))
c = int(input("Enter third number: "))
if a >= b and a >= c:
print("The greatest number is:", a)
elif b >= a and b >= c:
print("The greatest number is:", b)
else:
print("The greatest number is:", c)
6. W.A.P. to check eligibility age entered by user to Vote.
Sol:
age = int(input("Enter your age: "))
if age >= 18:
print("You are eligible to vote")
else:
print("You are not eligible to vote")
7. W.A.P. to give the grades according to the marks of student.
Sol:
marks = int(input("Enter your marks: "))
if marks >= 90:
print("Grade: A")
elif marks >= 75:
print("Grade: B")
elif marks >= 50:
print("Grade: C")
else:
print("Grade: Fail")
Task 2: (5 Marks)
Create an attractive and engaging A4-size poster on the use of Artificial
Intelligence in real life.