I have to create a programme that asks the end user to enter values for frequency and duration. The program should then issue a beep were the frequency and duration of the beep corresponde to the values entered by the user.
Now before I can do that I need to know if my puter is not working or is it my programming that is not.
I had to do a program that beeped when run but my puter dont beep, I'm in trouble see (sorry).
this is it below, it does run but as i said no beeps. please can someone help me.
/* Beep Application
Make simple sounds via beep (frequecy_hrs, duration_ms)
<theophilus Simpson>
<9-july-2009> */
#include <iostream> //Input Output header for cout
#include <windows.h> //Windows header for beep
using namespace std;
int main()
{
cout << "beep at 440 Hz for 500mS \n"; //Display Message
Beep(440,500); //440 hertz (A4) for half a secound
cout << "Beep at 494 Hz for 500mS \n";
Beep(494,500);
cout << "Beep at 523 Hz for 500mS \n";
Beep(523,500);
cout << "sure you get the jist by now \n";
Beep(587,500);
cout << "mix it up a little bit biatch \n";
Beep(659,500);
return 0;
}
