Question: Feel free to use the code below for your assignment. Just put it in a class to meet the assignment requirement. #include #include #include #include

 Feel free to use the code below for your assignment. Just

Feel free to use the code below for your assignment. Just put it in a class to meet the assignment requirement.

#include  #include  #include  #include  using namespace std; int main(int argc, char *argv[]) { while(true){ cout 

CODE SHOULD BE IN C++

Create a PIANO class Your assignment is to create a class named Piano. The class has the following methods: 1-) LoadNotes. This function takes a string as a parameter, the parameter is a file name that contains notes. The notes are already shown in the code you're given. Load Notes should read the notes into an array of characters (or strings) 2-) PlayNotes. This function simply plays the notes that were loaded by Load Notes. So to test your Piano class, I simply need to do this in main: void main() { Piano mypiano; mypiano.LoadNotes("c:\\templ\mynotes.txt"); mypiano.PlayNotes(); } Submit a complete class, make sure it's commented, you can have any other functions in it, and any attributes you want. My input file, named mynotes.txt will contain something like this

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!