Question: write program in C++ Musical notes in an octave are denoted by A, B, C, D, E, F, and G. (We'll ignore sharps and flats.)

write program in C++ Musical notes in an octave are denoted bywrite program in C++

Musical notes in an octave are denoted by A, B, C, D, E, F, and G. (We'll ignore sharps and flats.) Sometimes musicians transpose a song, shifting all of the notes by a fixed amount to make it easier to play. Write a program that helps the musician transpose a song by two notes. More specifically, your program should Ask the user to enter ten musical notes (A through G), and store them in vector of characters. (While this problem can be solved without use of vectors, the purpose of this problem is to get you to practice with vectors in C++, so you are required to use them here.) . After the user enters each note, check that it is indeed a character A through G. If not, ask the user to re-enter the note. Transpose the items of the vector by two steps. In other words, replace all A's + C's B's D's C's E's D's F's E's G's F's A's G's B's Output the new vector values. Hint: You can assign a value to a character using: char x

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!