(Play, loop, and stop a sound clip) Write a
■ Get an audio file from the class directory using AudioClip.
■ Place three buttons labeled Play, Loop. and Stop, as shown in Figure 16.46a.
■ If you click the Play button, the audio file is played once. If you click the Loop button, the audio file keeps playing repeatedly. If you click the Stop button, the playing stops.
Want to see the full answer?
Check out a sample textbook solutionChapter 16 Solutions
Introduction to Java Programming and Data Structures: Brief Version (11th Global Edition)
Additional Engineering Textbook Solutions
Starting Out With Visual Basic (8th Edition)
Starting Out with Java: From Control Structures through Data Structures (4th Edition) (What's New in Computer Science)
Degarmo's Materials And Processes In Manufacturing
Elementary Surveying: An Introduction To Geomatics (15th Edition)
Java: An Introduction to Problem Solving and Programming (8th Edition)
Introduction To Programming Using Visual Basic (11th Edition)
- Part III Write a program that gets integer input from user until the user gives a value bigger than 50 by using while loop. Note: Do not compress your files, submit only java files. Note: Do not forget to justify your answers with comments.arrow_forwardHw8/file upload question / 1. Chapter16: video player (Button) Write a video player. The program has two buttons to play the videos. When video1" is clicked, a video plays; when “video1" is clicked, anotehr video plays. (Hint: You can complete it by modifying the MediaDemo program) Example: MediaButton 。 X 记 猎办公 干地说道 鲁菜 中国八大菜系 ... 鲁菜,是起源于山东省淄博市博山区的齐鲁风味(现通 行地带不仅限于当代的山东省。以大连菜为代表的辽南 菜系也属于鲁菜),是中国传统四大菜系(也是八大菜 系)中唯一的自发型菜系(相对于淮扬、川、粤等影响 型菜系而言),是历史最悠久、技法最丰富、难度最高 最见功力的菜系之一 熊猫办公 MediaButton video video2 videol | videozarrow_forwardwrite in python Note:- Do not provide handwritten solution. Maintain accuracy and quality in your answer. Take care of plagiarism. Answer completely. You will get up vote for sure.arrow_forward
- What happens if the file already exists when you open a file for output?arrow_forward3 Using a do while Loop Summary In this lab, you work with the same Java program you worked with in Labs 5-1 and 5-3. As in those earlier labs, the completed program should print the numbers O through 10, along with their values multiplied by 2 and by 10. However, in this lab you should accomplish this using a do while loop. Instructions 1.Ensure the file named NewestMultiply.java is open. 2. Write a do while loop that uses the loop control variable to take on the values O through 10. 3. In the body of the loop, multiply the value of the loop control variable by 2 and by 10. 4. Execute the program by clicking Run and verify that the output is correct. Grading When you have completed your program, click the Submit button to record your score. == ▬▬ NewestMultiply.java 1 // NewestMultiply.java 2 // with these values multiplied by 2 and by 10. 3 // Input: None. 4 // Output: Prints the numbers through 10 along with their values multiplied by 2 and by 10. 5 10 11 12 13 14 15 16 17 18 19 20…arrow_forward*Code in Python Write a script named dif.py. This script should prompt the user for the names of two text files and compare the contents of the two files to see if they are the same. If they are, the script should simply output "Yes". If they are not, the script should output "No", followed by the first lines of each file that differ from each other. The input loop should read and compare lines from each file, including whitespace and punctuation. The loop should break as soon as a pair of different lines is found. Below are examples of the program input and output along with relevant files: one.txt: This is text. abc 123 sameAsOne.txt: This is text. abc 123 differentFromOne.txt This is text. xyz 123 Comparing files that are the same: Enter the first file name: one.txt Enter the second file name: sameAsOne.txt Yes Comparing files that are different: Enter the first file name: one.txt Enter the second file name: differentFromOne.txt No abc xyzarrow_forward
- Instructions: Read the question carefully. Write and execute the program using GDB online compiler: https://www.onlinegdb.com/ Copy the program and output to word file. Save the file with your Id name. Covert the file to PDF. Upload the file the link in Moodle. Write a C program that does the following tasks using while loop: • Reads 8 integers. • Finds the sum of all integers that are greater than 4.arrow_forwardWrite a while loop that asks people why they like programming. Each time someone enters a reason, add their reason to a file that stores all the responses.arrow_forwardprofile-image Time remaining: 00 : 09 : 42 Computer Science C++. Need help writing a program that plays the game of Hangman. The program should pick a word (which is either coded directly into the program or read from a text file) and display the following: Guess the word: XXXXXX Each X represents a letter. The user tries to guess the letters in the word. The appropriate response yes or no should be displayed after each guess. After each incorrect guess, display the diagram with another body part filled. After seven incorrect guesses, the user should be hanged. The display should look as follows: O /|\ | / \ After each guess, display all user guesses. If the user guesses the word correctly, display: " Congratulations!!! You guessed my word. Play again? yes/no " Please help in making this code and if possible to include steps to learn what most of the lines and functions do in order to understand it better. Thank you.arrow_forward
- Use Pycharmarrow_forward1- Write a program that can calculate the class average for a number of students. The user should be able to enter the grades, use sentinel-controlled repetition to manage input. (python) Sample Output: Enter grade, -1 to end: 75 Enter grade, -1 to end: 94 Enter grade, -1 to end: 97 Enter grade, -1 to end: 88 Enter grade, -1 to end: 70 Enter grade, -1 to end: 64 Enter grade, -1 to end: 83 Enter grade, -1 to end: 89 Enter grade, -1 to end: -1 class average is 82.5 2- Write a program that reads in two integers and determines and prints whether the first is a multiple of the second. (Hint: Use the modulus operator.arrow_forwardflow chart and dimple program. Python thank youarrow_forward
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education