Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Genomes And Databases On The Internet A Practical Guide To Functions And Applications

Authors: Paul Rangel

1st Edition

189848631X, 978-1898486312

Students also viewed these Databases questions

Question

4. What actions should Bouleau & Huntley take now?

Answered: 1 week ago