1.
Use the windows below to show the output of the following code:// function prototypes void NumberTask(); void DrawingTask(); void spacer();
// definitions void main(){ // open text and drawing windows TinySquarePair(); // do the work here spacer(); DrawingTask(); spacer(); NumberTask(); spacer(); PressReturn(); } void spacer() {
cout << "<><><><><><><><>" << endl; } void NumberTask(){ for (int N = 1; N <= 5; N++) cout << N <<" "<< N / 2 << endl; } void DrawingTask(){ cout << "Drawing Circles" << endl; for (int M = 20; M < 150; M += 30) PaintCircle(100, M, 10); }
2.
Write for loop that has the following output:
1. I will do my work on time.
2. I will do my work on time.
3. I will do my work on time.
4. I will do my work on time.
5. I will do my work on time.
6. I will do my work on time.
7. I will do my work on time.
8. I will do my work on time.