- Information
- AI Chat
Was this document helpful?
3. Control if, for of python programming language
Course: Computer science1015 (CSC1015F)
257 Documents
Students shared 257 documents in this course
University: University of Cape Town
Was this document helpful?
1
END
CSC1015F Assignment 3
Control (if, while)
Assignment Instructions
This assignment involves constructing Python programs that use input and output statements, 'if'
and 'if-else' control flow statements, 'for' statements, and statements that perform numerical
manipulation.
Question 1 [30 marks]
We've all been there: You dropped your cupcake on the ground. Did it land icing up, or down? Can
you just scrape off the icing? How many hours have you lost trying to decide? The following
flowchart can be used to determine whether or not dropped food can be eaten: