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:
FOR THE LAST QUESITON ONLY:
Your grade will be based on your ability to demonstrate the overall expectations from the Ontario Computer Studies Curriculum
A1 – Data Sequencing
A2 – Selection and Repetition Structures
A4 – Code Maintenance
B1 – Problem Solving Strategies
B2 – Planning
B3 – Algorithm Design
File Name: “ICS3UmouseMoving.py”
Suppose that the bottom left hand corner of your screen is (0,0) and that all points on the screen are given by integer coordinates. When a mouse is moved it sends a pair of integers (A,B) indicating that the cursor should be moved A units in the x direction and B units in the y direction from its previous position.
Your job is to read in the motions of the mouse and output the new position of the mouse. Keep in mind that if the mouse hits the boundary of the screen, it must stop moving ONLY IN THAT DIRECTION, it can still move in the other axis. The end of the mouse motion will be indicated by an input of (0,0)
Remember this is just a simulation of mouse movement…. you aren’t expected to know how to find the “real” location of your mouse on the screen. You are just typing in motions from the keyboard
Here is a sample of what your Input / Output might look like
File Name: “ICS3UinTheCircle.py”
You are writing a program that checks if a point (a,b) is inside a circle of radius R that is centered on the point (c,d).
Your program is to continue forever until a radius of 0 is entered.
Note: If you are wondering about how to compute the distance between 2 points…. use the Pythagorean Theorem
File Name: “ICS3Usteps.py”
A person walks a random amount of steps forward, and then a different random number of steps backwards.
After making a specific amount of total steps the person is told to stop and will be a certain amount of steps forward from where they started.
You are writing a program to simulate the motion taken by the person.
For Example: