Marking Scheme
Overview
This lab will be automatically marked
It is very important that you check this page carefully to make sure your submission can be marked
There are no partial marks for each test case in the marking scheme
Please check your program carefully before you submit it
We cannot grade your program if we cannot run your program!
Don't change things given to you
Please DON'T rename the variables / functions because our marking system will use the following variables and functions:
music_data - this is the list which stores the music data, please don't rename it
changeInstrument - this is the function which changes the instrument, please don't rename it
transpose - this is the function which transposes the music data, please don't rename it
adjustSpeed - this is the function which adjusts the music speed, please don't rename it
makeCrazyMusic - this is the function which makes crazy music, please don't rename it
Please use import turtle near the top. For this lab, DON'T write code such as
import turtle as
from turtle import *
because they may seriously affect the auto-grading process
The same also applies to import music
Changing instruments (25 marks)
In this part, the program asks for one number input, i.e. turtle.numinput()
You can assume the user will either:
enter an integer and click "OK"
or
click "Cancel"
If the user clicks "Cancel" in the number input box, the program will not show any error and the instrument will not be changed (5 marks)
If the user enters an out-of-range instrument number, the instrument will not be changed (5 marks)
The number input box shows an instrument list of at least 10 instrument numbers and their names (5 marks)
The user can successfully change the instrument with a valid instrument number (5 marks)
After changing the instrument, the instrument name is correctly shown in the program (5 marks)
Transposing music (25 marks)
In this part, the program asks for one number input, i.e. turtle.numinput()
You can assume the user will either:
enter an integer and click "OK"
or
click "Cancel"
If the user clicks "Cancel" in the number input box, the program will not show any error and the music will not be changed (5 marks)
If the user enters a negative number, the music will have its pitch numbers decreased appropriately (5 marks)
If the user enters a positive number, the music will have its pitch numbers increased appropriately (5 marks)
After the pitch adjustment, the pitch numbers cannot be smaller than 0 (5 marks)
After the pitch adjustment, the pitch numbers cannot be bigger than 127 (5 marks)
Adjusting music speed (20 marks)
In this part, the program asks for one number input, i.e. turtle.numinput()
You can assume the user will either:
enter a positive integer and click "OK"
or
click "Cancel"
If the user clicks "Cancel" in the number input box, the program will not show any error and the music will not be changed (5 marks)
If the user enters a number bigger than 100, the speed of the music will increase appropriately (5 marks)
If the user enters a number smaller than 100, the speed of the music will decrease appropriately (5 marks)
The duration of the adjusted music is shown correctly (5 marks)
Making crazy music (30 marks)
In this part, the program asks for four number inputs, i.e. turtle.numinput() in this order:
For the number of repetitions, you can assume the user will either:
enter a positive integer and click "OK"
or
click "Cancel"
For the duration of the sound, you can assume the user will either:
enter a positive float number and click "OK"
or
click "Cancel"
For the starting pitch of the sound, you can assume the user will either:
enter an integer between 0 to 127 and click "OK"
or
click "Cancel"
For the ending pitch of the sound, you can assume the user will either:
enter an integer between 0 to 127 and click "OK"
or
click "Cancel"
If the user clicks "Cancel" in any of the number input boxes, the program will not show any error and no crazy music will be created (6 marks)
The user can create a piece of crazy music with a repetition count of 1 and increasing pitch numbers so that:
The timing of the notes is correctly generated (2 marks)
The pitch of the notes is correctly generated (2 marks)
The duration of the notes is correctly generated (2 marks)
The duration is shown in the program correctly (2 marks)
The user can create a piece of crazy music with a repetition count of 1 and decreasing pitch numbers so that:
The timing of the notes is correctly generated (2 marks)
The pitch of the notes is correctly generated (2 marks)
The duration of the notes is correctly generated (2 marks)
The duration is shown in the program correctly (2 marks)
The user can create a piece of crazy music with a repetition count bigger than 1 so that:
The timing of the notes is correctly generated (2 marks)
The pitch of the notes is correctly generated (2 marks)
The duration of the notes is correctly generated (2 marks)
The duration is shown in the program correctly (2 marks)
CS 340 Milestone One Guidelines and Rubric Overview: For this assignment, you will implement the fundamental operations of create, read, update,
Retail Transaction Programming Project Project Requirements: Develop a program to emulate a purchase transaction at a retail store. This
7COM1028 Secure Systems Programming Referral Coursework: Secure
Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip
CS 340 Final Project Guidelines and Rubric Overview The final project will encompass developing a web service using a software stack and impleme