Question: Can somebody answer this? 118 Numbered Musical Notation In numbered musical notation, notes are represented by integers between 1 and 7 inclusive. In C (the

Can somebody answer this?
118 Numbered Musical Notation In numbered musical notation, notes are represented by integers between 1 and 7 inclusive. In C (the key, not the programming language), the number and note correlation is as shown: Note: D E F B Number : 1 2 3 4 5 6 7 G In the code below, an array of chars is used to represent a musical score -- each element is one of the seven notes ('C', 'D', 'E', 'F', 'G', 'A', or 'B'). Your task is to complete a function print_numbered () which takes a char array and prints its equivalent in numbered musical notation. Each note / integer should be separated by a space. You may assume that your function will only be called on scores in the key of C (i.e. D should always be converted to 2, F should always be converted to 5, etc.) Examples Input: print_numbered (5, {'C', 'D', 'E', 'F', 'C'}) Output: 1 2 3 4 1 Input: print_numbered(3, {'A', 'B', 'C'}) Output: 671 1 Winclude
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
