Spring 2023 - CS201 - 1
Spring 2023 - CS201 - 1
1 Total Marks: 20
Objectives:
To enable students to understand and practice the concepts of:
• Data Types and Variables
• Arithmetic and Logical Operators
• Expression solving
• If-else statements
• Repetition structure
• Functions
Lectures: 1 to 9
Assignment Statement
When an object falls because of gravity, the following formula can be used to determine the
distance the object falls in a specific time period:
1 2
d= g t
2
Whered is the distance in meters, g is 9.8(constant of gravity) and t is the amount of time, in
seconds, that the object has taken to fall.
4. You can use any of the loop structs like…for-loop, while or do-while loop.
6. It is required that you use the given data set otherwise marks will be deducted.
Lectures Covered: 1 to 9
Due date: 20th May, 2023