Examlex

Solved

Import Java.awt.*; Import Java.applet.*;

question 71

Short Answer

import java.awt.*;
import java.applet.*;
import javax.swing.*;
public class JSound extends JApplet
{
AudioClip sound;
public void init()
{
sound = getAudioClip(getCodeBase(),"mysteryTune.au");
}
public void start()
{
___________________________________
}
public void stop()
{
___________________________________
}
public void paint(Graphics g)
{
super.paint(g);
Graphics2D g2D = (Graphics2D)g;
g2D.drawString("Listen to the mystery tune ", 10, 10);
}
}
In the first shaded line provided, write the loop() method to play the mysteryTune.au sound continually. On the second shaded line, write the stop() method to halt the mysteryTune.au sound file.


Definitions:

Normal Distribution

A statistical distribution where the data forms a symmetrical bell-shaped curve, with the mean, median, and mode all equal and in the center.

Standard Normal

A special case of the normal distribution where the mean is 0 and the standard deviation is 1.

10th Percentile

The value below which 10% of observations in a data set fall.

Z Distribution

A normal distribution with a mean of zero and a standard deviation of one, also known as a standard normal distribution.

Related Questions