Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In the first part of the lab you created a program that could simply play a specific song. Here, we want you to allow the

In the first part of the lab you created a program that could simply
play a specific song. Here, we want you to allow the user to
modify the song each time the program is run.
Before the song plays, ask the user to modify the first note of the
song. As such, the requirements for this demonstration are now:
1. Is not Happy Birthday
2. Lasts between 5 and 15 seconds,
3. Has at least 20 separate notes in it,
4. Is written in Java,
5. Uses the jMusic library, as well as
6. Allows the user to choose the first note (pitch and
duration) of the song using the Scanner class,
7. The pitch is to be entered as an integer (nominally between 40 and 100), and
8. The duration is to be entered as a floating point number (nominally between 0.5 and 2.0)
The user should choose the pitch as an integer and the duration as a floating point number, as shown in the
example video.

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

Demystifying Databases A Hands On Guide For Database Management

Authors: Shiva Sukula

1st Edition

8170005345, 978-8170005346

More Books

Students also viewed these Databases questions

Question

Explain the different types of marketing strategies.

Answered: 1 week ago

Question

Explain product positioning.

Answered: 1 week ago

Question

Explain Industrial market segment.

Answered: 1 week ago

Question

3. Develop a case study.

Answered: 1 week ago