As I was going to St. Ives,
I met a man with seven wives,
Every wife had seven sacks,
Every sack had seven cats,
Every cat had seven kits,
Kits, cats, sacks, wives,
How many were going to St. Ives?
Just storing the value of 7 into the variable numWives is NOT enough for full credit for the assignment. You are also required display the values in the variables when showing the information about who the narrator met. When doing this you must also display some text describing any values prior to displaying the values. For example://declaring variablesint numMan;int numWives;numMan = 1; // determining the number of mennumWives = numMan * 7; // determining the number of wives
Submission of the Lab The lab must be submitted electronically to the Assignment Link for Lab 1 inside of Blackboard. You will only need to submit the C++ source code file (just the ".cpp" file, not the "a.out" file). You are to name your program file using both your NET-ID and the Lab Number. Thus for Lab 1, if you NET-ID was ptroy4, your program should be named: ptroy4Lab1.cpp A Starting Point The following file is a starting point that Prof. Troy has created for this assignment. You are welcome to use this program, modify the existing information so it is correct for you and add the remaining calculations to complete the lab assignment. -- Main.troy - 2015-06-16cout << " The number of wives met are: " << numWives << endl;
I | Attachment | Action | Size | Date | Who | Comment |
---|---|---|---|---|---|---|
![]() |
ptroy4Lab1.cpp | manage | 1.0 K | 2015-06-16 - 16:38 | UnknownUser |
Copyright 2016 The Board of Trustees of the University of Illinois.webmaster@cs.uic.edu |
WISEST Helping Women Faculty Advance Funded by NSF | ![]() | ![]() |