Your main function for phase I must look exactly like this:
int main ()
{
srand (time (0));
doOneSet ();
}
You must write the function doOneSet which will, for now, write out 5 addition problems. All of the numbers in your programs should be between 0 and 100. Here is the sample output for this phase:
45 + 21 =
0 + 100 =
54 + 23 =
4 + 19 =
8 + 92 =
The numbers that are produced for these problems must be generated randomly by the computer. The numbers in the sample output are given only as an example. We will discuss in the lessons how to generate random numbers.
+4
Answers (1)
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Your main function for phase I must look exactly like this: int main () { srand (time (0)); doOneSet (); } You must write the function ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Home » Computers & Technology » Your main function for phase I must look exactly like this: int main () { srand (time (0)); doOneSet (); } You must write the function doOneSet which will, for now, write out 5 addition problems.