Question: Problem 7 . ( Playing the Waltz ) Write a program called playwaltz.py that accepts from standard input, a sequence of 3 2 integers representing
Problem Playing the Waltz Write a program called playwaltz.py that accepts from standard input, a sequence of integers representing the measures of a waltz, and plays the waltz to standard audio. Before playing any audio, your program must check if the inputs are erroneous, and if so must call sysexitmessage to exit the program with an appropriate error message. Your program must check for the following errors: If the number of measures is not exit with the message A waltz must contain exactly measures If a minuet measure is not from exit with the message A minuet measure must be from If a trio measure is not from exit with the message A trio measure must be from Note: No audio must be played in the event of an erro
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
