hi every one
this is the Project requirements
i did the first three things
but i have problme with number 4
You are hired by an electronics company aiming to build microwaves. You are asked to develop an
application that simulates the work of these microwaves. Consider the following specifications:
1. The program should ask the user to specify the cooking time. The user enters it in minutes and
seconds.
2. During the cooking time the program should output a star character every half a second to show
that the cooking is in process.
3. A timer counts down one second at a time. Once the time expires, the program should output
the text message “Done!”.
4. The user should be able to stop the cooking process at any time by entering the character “S”.
He/She may enter a new time.
#include <iostream>
#include <windows.h>
using namespace std;
int main()
{
int m,s,t;
cout<<"enter the munites :";
cin>>m;
m=m*60;
cout<<"enter the seconds :";
cin>>s;
s=s+m;
t=s*2;
while(t>0)
{cout<<"*";
Sleep(500);
t--;
}
cout<<"DONE !";
getchar();getchar();
return 0;
}