ICS3U Python Programming Evaluation 6

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 the .py files for your solution.

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
  • Incorporate one dimensional arrays into a computer program

A2 – Selection and Repetition Structures

  • Incorporate selection structures into a computer program.
  • Incorporate repetition structures into a computer program

B3 – Algorithm Design

  • Design and implement algorithms that solve problems

ICS3U Python Programming Evaluation Question 1

File Name: “ICS3UmonoGram.py”

The user is going to enter their full name from the keyboard (Assume that consists of 3 names: first, middle, last).  They will all be entered on the same line.

Write a program that displays the monogram of the persons name.  

  • A monogram displays the first initial in lower case, then the last initial in upper case, then the middle initial in lowercase.
  • If the Input was Paul Brian Rogers, then the monogram would be pRb

Your program should continually ask for people’s names until a blank name is entered.

ICS3U Python Programming Evaluation Question 2

File Name: “ICS3UinOrder.py”

Write a program that asks the user to enter values from the keyboard.  The user can enter any number of numbers that they want.

  • All the numbers will be entered on 1 line, separated by spaces
  • Store those values in a list
  • Test if the list is in order (sorted from lowest to highest).
  •  Output if the list was sorted or not.
You cannot use a built in sorting function that might exist in python.

ICS3U Python Programming Evaluation Question 3

File Name: “ICS3UgetHomeNote.py”

A little kid has been given directions on how to get to school from his house. Unfortunately he lost the paper that tells him how to get home from school. Being that you are such a nice person, you are going to write a program to help him.

Suppose his mother gave him a note that said the following

ICS3U Get Home Question Input

You need to write him a note back that said the following

ICS3U Get Home Output

Notes:

The input for the program consists of the direction and the street to turn onto. 

  • The direction is entered first as L or R
  • The name of the street is entered next on a separate line of input

The input keeps going until SCHOOL is entered as the street name