Question: I am having trouble creating a volume bar in Greenfoot(Java) and making it display the volume in a number between 0 and 100. The details

I am having trouble creating a volume bar in Greenfoot(Java) and making it display the volume in a number between 0 and 100. The details are as followed:

For exercise 10.49, you need to display the volume either in a vertical bar or a horizontal bar. The lowest value is 0, and the highest value is 100. According to class GreenfootSound , its method getVolume() indicates that the volume is between 0 and 100. Alone with the bar, you also need to display the current volume level. The step for increasing and decreasing volume should be set to 2 or 5. The solution of these four exercises can co-exist in one scenario, and you dont need to comment out any finished exercise when you are debugging the next exercise.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!