ICS3U Python Programming Evaluation 2

Instructions

These ICS3U Grade 11 Computer Science python coding questions will form a part of your final grade for this course and are to be handed in for grading. 

For all of the following questions:

  • Use a Python IDE of your choice (Spyder, IDLE, Pycharm, etc) and create a coded solution to the given problem.
  • Hand in a commented .py file for your solution.
  • Demonstrate that you have used the INPUT –  PROCESSING – OUTPUT Problem Solving Process and that you have Evaluated your solution. 
  • You must hand in this evidence (pictures / screen shots)

Your grade will be based on your ability to demonstrate the overall expectations from the Ontario Computer Studies Curriculum

A1 – Data Sequencing 

  • Use variables to carry out mathematical calculations in a computational problem

A4 – Code Maintenance

  • Write code that is readable using proper naming, indenting, and commenting conventions
  • Test program thoroughly to identify and correct errors

B1 – Problem Solving Strategies

  • Incorporate the Input – Processing – Output model of problem solving

B2 – Planning

  • Describe the structure of a program using pseudocode or flow charts

B3 – Algorithm Design

  • Design and implement algorithms that solve problems

ICS3U Python Programming Evaluation Question 1

File Name:  “ICS3Ushape3D.py” 

A designer is creating a structure that looks like this: 

ICS3U Python Evaluation 3D Shape
  • The cost of building this structure depends on its volume and surface area. 
  • He needs a fast and easy way to calculate those volume and surface area values with different dimensions. 
  • You need to write a program that helps him find those values for different inputs of a,b,c,d,e

Note:  The badly drawn arc in the center is circular.