How JustAnswer Works:

  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.

Ask LogicPro Your Own Question

LogicPro
LogicPro, Engineer
Category: Homework
Satisfied Customers: 9535
Experience:  Expert in Java C++ C C# VB Javascript Design SQL HTML
29751445
Type Your Homework Question Here...
LogicPro is online now
A new question is answered every 9 seconds

Design and implement a stringed musical instrument class using

Resolved Question:

Design and implement a stringed musical instrument class using the following guidelines:

Data fields for your instrument should include number of strings, an array of string names representing string names (e.g. E,A,D,G), and boolean fields to determine if the instrument is tuned, and if the instrument is currently playing. You are welcome to add additional data fields if you like.
A constructor method that set the tuned and currently playing fields to false.
Other methods 1) to tune the instrument, 2) to start the instrument playing, and 3) to stop the instrument from playing.
Other methods as you see fit (Add at least one unique method).

Create a UML class diagram using a diagram tool (e.g. PPT, Visio) of your choice. Prepare the diagrams and place them in a word document along with a brief description of each of your classes.

Create a Java class for your instrument. Be sure that your code matches your design specifications and some minimal functionality is included. For example, if you called the violin.play() method, you should at least print that the violin is playing. Similar functionality should be supplied when you stop playing, tune or call any of your methods. For example:

public void playviolin() {
System.out.println("The violin is now playing.");
}

Write the output from your Instrument class methods to a text file that a user entered from the command line arguments (e.g. java Mynamep3tst myfilename.txt). This allows your program to accept filenames from the user via a command line argument.

Finally, create a Java test class that simulates using your instrument class. In your test class be you should at a minimum: a) Construct 10 instances of your instrument, b) tune your instruments, c) Start playing your instrument, d) Call your unique method, and e) Stop playing your instruments. (Hint: Arrays and Loops will make your job easier and result in more efficient code!)

Your programs should compile and run without errors.

Be sure to test your program carefully. Provide a list of comprehensive test cases used to validate your application and include these test cases in your word document containing your UML diagrams and descriptions. Similar to Project 1, your test data can be shown in a table that includes input data, expected output, actual output and pass/fail results from the test.

Submission requirements:

Your deliverables include a Java instrument file, Java test file and a Word document. The Java instrument file should be named Instrument.java. The Java test file should be named Yournamep3test.java. Your word document should include your test table, and UML diagrams and descriptions and be named Yournamep3.doc. Your completed assignment should be submitted to your Project 3 assignment area no later than the due date listed in the syllabus.
Submitted: 1 year ago.
Category: Homework
Expert:  LogicPro replied 1 year ago.
Hi,
Welcome to JustAnswer.
Please wait while I provide the answer
Expert:  LogicPro replied 1 year ago.
Download this zip file:
http://www.wikisend.com/download/890410/StringedMusicalClass.zip

Unzip to get required java files, compiled class files, document containing output, documebt containing test plan and UML and a batch file to run the java file and pass command line argument.

You can right click on run.bat and click edit to see the contents or double click on it to execute java files if path variable is configured.

You can ask me again using "For LogicPro only" at the start of your questions like other customers to get instant answers.
It will ensure that question is for me.
Please bookmark my profile page:
http://www.justanswer.com/homework/expert-logicpro/
so you can come back and ask me a question anytime.
Remember, if for any reason you are unsatisfied with my answer, we can continue the conversation until you’re satisfied and rate my answer as excellent. I can address follow up questions on original requirements at no extra charge and I’m always here to help. Thank you for using JustAnswer!

Customer: replied 1 year ago.

Done this one before? That was quick

Expert:  LogicPro replied 1 year ago.

Stephanine,
Similar one. one year ago. Did changes for you :)

Customer: replied 1 year ago.

I imported into Netbeans and it's saying there are errors on the violintest.java?

Expert:  LogicPro replied 1 year ago.
Download NetBeans project from here:
http://www.wikisend.com/download/903446/StringedMusicalClass.zip

unzip to get netbeans project folder
Open netbeans
Click on file->open project
Navigate to unzipped folder and click open
The project will be shown in left pane(project explorer)

Now read this file on how to set command line argument and to run the project

http://wikisend.com/download/944676/Click on Run menu.docx

Customer: replied 1 year ago.

I followed those instructions and it still won't run properly, it's imported into netbeans but it's giving me the error when i try to run it that it's not a valid directory? I apologize I know this error is on my end

Expert:  LogicPro replied 1 year ago.
Please provide the screenshot and error message
Customer: replied 1 year ago.

Expert:  LogicPro replied 1 year ago.
Right click on project and click on properties. Select Source in left hand pane,
Copy the project folder path.

Now click on Run in same box(left hand pane), paste the path in working directory text box. click ok,
Now run and check
LogicPro, Engineer
Category: Homework
Satisfied Customers: 9535
Experience: Expert in Java C++ C C# VB Javascript Design SQL HTML
LogicPro and 2 other Homework Specialists are ready to help you
Customer: replied 1 year ago.

It was in the run section it was running from the incorrect folder. Working now. Thank you, XXXXX XXXXX the extra technical issues

Expert:  LogicPro replied 1 year ago.
Welcome :)
You can ask me again using "For LogicPro only" at the start of your questions like other customers to get instant answers.
It will ensure that question is for me.
Please bookmark my profile page:
http://www.justanswer.com/homework/expert-logicpro/
so you can come back and ask me a question anytime.
Customer: replied 1 year ago.

The professor added some requirements for this project I was hoping you could help me with. Some of it you did already, but the professor says we have to include:


 


Requirements for Proj 3 are stringent. Ensure you have:
1. Program and code comments
2. Analysis and design documentation
3. Test Plan
4. Lessons learned and recommendations
5. UML Diagram (Visio, ppt)


 


Was hoping for you assistance especially with the analysis and design documentation part.

Expert:  LogicPro replied 1 year ago.
ok. I will review and reply in few hours
Customer: replied 1 year ago.

thank you

Expert:  LogicPro replied 1 year ago.
welcome
Expert:  LogicPro replied 1 year ago.
1. Program and code comments (Already given)
2. Analysis and design documentation (See the attached document)
3. Test Plan (Already given)
4. Lessons learned and recommendations (See the attached document)
5. UML Diagram (Visio, ppt) (Already given)

#2 and #3 are new requirements and took a lot of time
Download : Analysis%20and%20design.docx

It contains answer of #2and #3
Customer: replied 1 year ago.

Yes I know I apologize I will compensate you for your additional time. I have run into an additional problem. The files names have to include my name, and I went through the program and changed the class name so there are no errors, however now it wont work when it run it. Every time I run it it says:

Provide file name to write the data to
Java Result: 1
BUILD SUCCESSFUL (total time: 8 seconds)

 

Not sure what went wrong? I really apologize for being such a pain. Let me know how much you want for your time.

 

I also corrected what I assumed were spelling errors as violin was often spelled voilin, but maybe this was intentional?

 

Expert:  LogicPro replied 1 year ago.
THIS ANSWER IS LOCKED!
You can view this answer by clicking here to Register or Login and paying $3.
If you've already paid for this answer, simply Login.
LogicPro, Engineer
Category: Homework
Satisfied Customers: 9535
Experience: Expert in Java C++ C C# VB Javascript Design SQL HTML
LogicPro and 2 other Homework Specialists are ready to help you
Customer: replied 1 year ago.

Ahh, thank you. Glad it was an easy fix. Running fine again!

Expert:  LogicPro replied 1 year ago.
You can ask me again using "For LogicPro only" at the start of your questions like other customers to get instant answers.
It will ensure that question is for me.
Please bookmark my profile page:
http://www.justanswer.com/homework/expert-logicpro/
so you can come back and ask me a question anytime.
Expert:  LogicPro replied 1 year ago.
Hello Stephanine, How are you?
If you have other questions, You can ask me using "For LogicPro only" at the start of your questions to get instant answers.
It will ensure that question is for me.
Please bookmark my profile page:
http://www.justanswer.com/computer/expert-logicpro/
so you can come back and ask me a question anytime.

I would be happy to help you.
Expert:  LogicPro replied 1 year ago.
Hello Stephanine, How are you?
If you have other questions, You can ask me using "For LogicPro only" at the start of your questions to get instant answers.
It will ensure that question is for me.
Please bookmark my profile page:
http://www.justanswer.com/computer/expert-logicpro/
so you can come back and ask me a question anytime.

I would be happy to help you.
Expert:  LogicPro replied 1 year ago.
Hello Stephanine, How are you?
If you have other questions, You can ask me using "For LogicPro only" at the start of your questions to get instant answers.
It will ensure that question is for me.
Please bookmark my profile page:
http://www.justanswer.com/computer/expert-logicpro/
so you can come back and ask me a question anytime.

I would be happy to help you.

JustAnswer in the News:

 
 
 
Ask-a-doc Web sites: If you've got a quick question, you can try to get an answer from sites that say they have various specialists on hand to give quick answers... Justanswer.com.
JustAnswer.com...has seen a spike since October in legal questions from readers about layoffs, unemployment and severance.
Web sites like justanswer.com/legal
...leave nothing to chance.
Traffic on JustAnswer rose 14 percent...and had nearly 400,000 page views in 30 days...inquiries related to stress, high blood pressure, drinking and heart pain jumped 33 percent.
Tory Johnson, GMA Workplace Contributor, discusses work-from-home jobs, such as JustAnswer in which verified Experts answer people’s questions.
I will tell you that...the things you have to go through to be an Expert are quite rigorous.
 
 
 

What Customers are Saying:

 
 
 
  • Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help. Mary C. Freshfield, Liverpool, UK
< Last | Next >
  • Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help. Mary C. Freshfield, Liverpool, UK
  • This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!! Alex Los Angeles, CA
  • Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult. GP Hesperia, CA
  • I couldn't be more satisfied! This is the site I will always come to when I need a second opinion. Justin Kernersville, NC
  • Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around. Esther Woodstock, NY
  • Thank you so much for taking your time and knowledge to support my concerns. Not only did you answer my questions, you even took it a step further with replying with more pertinent information I needed to know. Robin Elkton, Maryland
  • He answered my question promptly and gave me accurate, detailed information. If all of your experts are half as good, you have a great thing going here. Diane Dallas, TX
 
 
 

Meet The Experts:

 
 
 
  • Manal Elkhoshkhany

    Tutor

    Satisfied Customers:

    4520
    More than 5000 online tutoring sessions.
< Last | Next >
  • http://ww2.justanswer.com/uploads/BU/BusinessTutor/2012-2-2_115741_Kouki2.64x64.jpg Manal Elkhoshkhany's Avatar

    Manal Elkhoshkhany

    Tutor

    Satisfied Customers:

    4520
    More than 5000 online tutoring sessions.
  • http://ww2.justanswer.com/uploads/LI/lindaus/2012-6-10_04811_IMG20120609164157.64x64.jpg Linda_us's Avatar

    Linda_us

    Finance, Accounts & Homework Tutor

    Satisfied Customers:

    3121
    Post Graduate Diploma in Management (MBA)
  • http://ww2.justanswer.com/uploads/ComputersGuru/2010-02-13_051118_Photo41.JPG LogicPro's Avatar

    LogicPro

    Engineer

    Satisfied Customers:

    3035
    Expert in Java C++ C C# VB Javascript Design SQL HTML
  • http://ww2.justanswer.com/uploads/lanis/2009-4-1_233717_phput9xef_c1pm.jpg Lani S.'s Avatar

    Lani S.

    Tutor

    Satisfied Customers:

    2457
    Registered Nurse, Internet Researcher, Private Tutor
  • http://ww2.justanswer.com/uploads/chooser77/2009-08-18_162025_Chris.jpg Chris M.'s Avatar

    Chris M.

    M.S.W. Social Work

    Satisfied Customers:

    2341
    Master's Degree, strong math and writing skills, experience in one-on-one tutoring (college English)
  • http://ww2.justanswer.com/uploads/JawaadAhmed/2009-6-27_12137_SIs_SHadi.jpg F. Naz's Avatar

    F. Naz

    Chartered Accountant

    Satisfied Customers:

    1975
    Experience with chartered accountancy
  • http://ww2.justanswer.com/uploads/JK/jkcpa/2011-1-16_182614_jkcpa.64x64.jpg Bizhelp's Avatar

    Bizhelp

    CPA

    Satisfied Customers:

    1873
    Bachelors Degree and CPA with Accounting work experience
 
 
 

Related Homework Questions