Name: ____________________________________________________ Alpha:
_____________ Section: ________
Describe help received: _________________________________________________________________
See the bottom for how to submit your work.
Due: Before 0800 on next class day
|
// using while loops |
|
Suppose the user gives the following input to the program: 3 3Write below the output of the program, given the above input. Try it without compiling and running the code. |
| dataA.txt | sample run |
28 13 29 20 27 24 |
~/$ ./hw Enter a filename: dataA.txt [10,19]: * [20,29]: ***** |
In the above output,
dataA.txt contains
only one number between 10 and 19 (i.e., 13).
dataA.txt contains five numbers between 20 and 29.
~/$ ./hw Enter a filename: dataB.txt [10,19]: *************** [20,29]: ***** |
~/$ ./hw Enter a filename: dataC.txt [10,19]: *************************************************** [20,29]: ************************************************* |
while-loops or for-loops or both.
Submit to the submission server (due: 0800 on the next class day)
~/bin/submit -c=IC210 -p=hw11 hw.cppBring to class