Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started