Answered step by step
Verified Expert Solution
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:
Is not Happy Birthday
Lasts between and seconds,
Has at least separate notes in it
Is written in Java,
Uses the jMusic library, as well as
Allows the user to choose the first note pitch and
duration of the song using the Scanner class,
The pitch is to be entered as an integer nominally between and and
The duration is to be entered as a floating point number nominally between and
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
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