Tuesday, March 2, 2010

GW-Basic Programe to Demonstrate Siren sound

 Here is the Code listing for the GW-Basic Program which demonstrate the siren sounds using SOUND statement along with FOR-NEXT Loop.

Code

10 For R=1 To 8
20 REM *******Rising Pitch *********
30 For F=200 To 400
40 Sound F, 0.1
50 Next F
60 REM *******Decreasing  Pitch *********
70 For J= 400 To 200 Step -2
80 Sound J, 0.1
90 Next J
100 Next R
110 End
Output
 
* This program will generate sound of Siren

GW-Basic Programe to Demonstrate the SOUND

 Here is the Code listing for the GW-Basic Program which demonstrate the different frequencies of sounds using SOUND statement.

Code

10 While 1
20 Sound 256, 9
30 Sound 480, 9
40 Wend

Output
* This program will generate audio sound

Thursday, February 25, 2010

Date Sheet SSC 2010 Announced


Federal Broad of Education Islamabad has announced Date Sheet 2010 SSC


  © Blogger template 'A Click Apart' by Ourblogtemplates.com 2008

Back to TOP