please i need help with this assignment. its due on Saturday September 16,
/in Feeds /by Munene davidplease i need help with this assignment. its due on Saturday September 16, (09/16/2017). thanks
1Homework 2Before attempting this project, be sure you have completed all of the reading assignments, hands-onlabs, discussions, and assignments to date.Design a Java class named Guitar that contains:A private int data field named numStrings that defines the number of strings on theguitar. The default value should be 6.A private double data field named guitarLength that defines the length of the guitar ininches. The default value should be 28.2A private String data field named guitarManufacturer that defines the manufacturer ofthe guitar. The default value should be “Gibson”.A private Color data field named guitarColor that defines the color of the guitar. Thedefault value should be Color.Red.A no argument constructor that creates a Guitar using the default number of strings,length, manufacturer and color.A constructor that creates a Guitar using a specified number of strings, length,manufacturer and color.Getter methods for all data fields.A playGuitar() method that returns a string representation of 16 randomly selectedmusical notes of random duration. For example, the first part of the string returnedmight look like this: [A(2), G(3), B(0.5), C(1), C(1), D(0.25), …]. You can assume oneoctave in the key of C where valid notes include A, B, C, D, E, F and G and durationvalues are .25, .5, 1, 2, and 4 representing sixteenth notes, eighth notes, quarter notes,half notes and whole notes, respectively.A toString() method that displays the number of strings, length, manufacturer and colorin String formatBe sure your code compiles.Write a Java test program, named TestGuitar, to create 3 different Guitars representing eachrepresenting a unique test case and call each all of the getter methods along with the toString andplayGuitar() methods and document the output. For example for a Guitar with 7 strings, length of 30.2,manufactured by Fender with a color of Black, the output may look similar to this:***Output***toString(): (numStrings=7, Length=30.2, manufacturer=Fender, color=Black)getNumStrings(): 7getGuitarLength(): 30.2getGuitarManufacturer(): FendergetGuitarColor(): BlackplayGuitar(): [A(2), G(3), B(0.5), C(1), C(1), D(0.25), E(2), F(2), G(0.25), C(4), C(1), F(0.25),A(1), C(2),D(4),C(4)]Document your test cases in the form of table with columns indicating the input values, expectedoutput, actual output and if the test case passed or failed. This table should contain 4 columns with
2appropriate labels and a row for each test case. An example template is shown below.Note that theactual output should be the actual results you receive when running your program and applying theinput for the test record.Keep in mind, for three guitars, you will have three different output results. Also, note there is norequirement to actually play the notes of the guitar. The notes are just a string representation.Example test cases:InputExpected OutputActual OutputPass?Constructor:numStrings=7guitarLength=30.2Manufacturer=FenderColor=Black** Output **toString():(numStrings=7,Length=30.2,manufacturer=Fender,color=Black)getNumStrings(): 7getGuitarLength(): 30.2getGuitarManufacturer(): FendergetGuitarColor(): BlackplayGuitar(): [A(2), G(3),B(0.5), C(1), C(1), D(0.25), E(2),F(2), G(0.25), C(4), C(1),F(0.25),A(1), C(2), D(4),C(4)]** Output **toString():(numStrings=7,Length=30.2,manufacturer=Fender,color=Black)getNumStrings(): 7getGuitarLength(): 30.2getGuitarManufacturer(): FendergetGuitarColor(): BlackplayGuitar(): [A(2), G(3),B(0.5), C(1), C(1), D(0.25), E(2),F(2), G(0.25), C(4), C(1),F(0.25),A(1), C(2), D(4),C(4)]YesTest case 2 hereTest case 3 hereThe google recommended Java style guide, provided as link in the week 2 content, should be used toformat and document your code. Specifically, the following style guide attributes should be addressed:Header comments include filename, author, date and brief purpose of the program.In-line comments used to describe major functionality of the code.Meaningful variable names and prompts applied.Class names are written in UpperCamelCase.Variable names are written in lowerCamelCase.Constant names are in written in All Capitals.Braces use K&R style.Submission requirementsDeliverables include all Java files (.java) and a single word (or PDF) document. The Java files should benamed appropriately for your applications. The word (or PDF) document should include screen capturesshowing the successful compiling and running of each of the test cases. Each screen capture should be