0% found this document useful (0 votes)
4 views1 page

Sheet 4

Uploaded by

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

Sheet 4

Uploaded by

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

Faculty of Engineering

PRE 124 Lecturer: Dr. Ahmed Magdy Course: Introduction to Programming

Sheet 4: Statement
Q1. Answer the following questions:

1. Write a Python Program To Get a Number From User and Display Message “Number is
even”, if number is even

2. Write a Python Program To Get a Number From User and Display Message “Number is
Odd”, if number is Odd.

3. Write a Python Program to Get a Number From User Display a Message “Number is
Even” If Number is Even Otherwise Display A Message “Number is Odd”

4. Write a Python Program to Get Age And Name Of Student And Display Age And Name
of the User, If Age is Greater Than 18, Otherwise a Error Message Should Display

5. Write a Python Program to Get Name From User and Display, The Name Should Contain
5 Character or Less Than 10. And Name Should Start From ‘a’ Character.

6. Write A Python Program To Get Age And Marks From User. The System Should Select
That User Which Have Greater Than Or Equal To 18 Year Age And Marks Should Be
Greater Than 90 And Less Than 100

7. Write A Python Program To Get A Character From User To Check Whether It Is Vowel
Or Not. Vowel Characters are : 'a', 'e', 'i', 'o' and 'u'.

8. Write A Python Program To Six Subject From Marks From User To Display Total,
Average And Percentage Of That Marks

9. Write A Python Program To Get Short Name Of Week And Display Full Name Of That
Week Name, If User Enter Mon Or Mon, System Should Display “It Is Monday”

with all my best wishes

|Page1

You might also like