Write a C program that displays the word “WOW” vertically in large letters (similar to
Tut1.1). Each letter should be drawn by a function, e.g. Draw_W, Draw_O, etc. In the
beginning of the program the user must be asked how many times the speaker must beep.
Once the word “WOW” is displayed, the speaker must then be beeped for that amount of
times and must display a “.” for every beep (horizontally). This beep and display of the “.”
must be done by another function called Beep. Make use of the following structure chart
to assist you.
#include <stdio.h>
#include <windows.h>
void Draw_W(){
printf("W");
}
void Draw_O(){
printf("O");
}
int main(){
printf("W");
BEEP(750, 800);
printf("O");
printf("W");
}
Comments
Leave a comment