#include // header for cout and cin
#include // standar header
#include // for the messagebox
double heatingt; // the heating time the user enters
unsigned int objs; // the items the user enters (can't be negative)
double fheatingt; // the final recommended time
int main() { // the main function with no command line arguments
cout << "How many objects do you want to heat ? "; // ask the user the number of the items to heat
cin >> objs; // enter the number
cout << endl; // change line
cout << "Now give me the single item heating time " ; // ask the user to enter a single item heating time (obvious)
cin >> heatingt; // enter the time
cout << endl; // change line
if(objs>3) { // does the user try to heat more than 3 items?
MessageBox(0,"It isn't recommended to heat more \n than three objects, but anyway...", "Warning",MB_OK); // warn him
}
fheatingt=heatingt +
((0.5*heatingt)*objs-1);
// a really cool function that calculates the recommended heating time
cout << "And your recommended heating time is... << fheatingt << endl; // print it to screen
system("pause"); // wait for respond before quiting
}
2007-03-09 22:46:39
·
answer #1
·
answered by jayati j 2
·
0⤊
1⤋
Well first of all I think that's not very relevant. If you want, for instance to heat a small cup of sauce and, let's say, cook some salmon (microwaved salmon IS excellent), you will probably end up with a sauce-colored-inside microwave...
Then, I think that because micowave uses high-frequency waves, if you are heating two items of the same kind, the waves are not absorbed in the same way , or following the shape and texture of the item, can be slightly diffracted, thus you have to add some extra Ooomph to cook it correctly.
Try it with one spoon and then a couple of spoons, and see what is cooked the best with the same power.
2007-03-08 18:03:07
·
answer #2
·
answered by MrNatas 2
·
0⤊
0⤋