You are on page 1of 2

School of Electrical Engineering and computing

Department of computer science and Engineering

Assignment 1 (max 20%)

Course tittle: introduction to computing (CSEG1101)

Submission Date: June 05/2023

1.Draw and Animate 4 objects from the following pictures using cs1graphics in python 3.

2. Sun animation

The color of sky changes from time to time. For example, In the early morning, the sky is dark
grey. and in the mod-day, it becomes blue in a clear day. So does the color of the sun. Your task
is to complete the sun animation program taught in the lecture through color interpolation of the
sky and sun. You may choose you own colors for the sky and sun. Please try to implement your
program using functions.
3. Write a Python program that creates a Word document and allows the user to add, modify, and
delete elements in the file. The program should prompt the user to enter the filename, and then
display a menu with the following options:

 Add a paragraph
 Modify a paragraph
 Delete a paragraph
 Exit

If the user chooses to add a paragraph, the program should prompt the user to enter the new
paragraph and add it to the end of the document. If the user chooses to modify a paragraph, the
program should prompt the user to enter the index of the paragraph to be modified and the new
value for that paragraph. If the user chooses to delete a paragraph, the program should prompt
the user to enter the index of the paragraph to be deleted and remove it from the document.

You might also like