Question: I need help adding loops to my current map for programming #include #include #include using namespace std; int main() { string goSchool; string studyClass; string

I need help adding loops to my current map for programming

#include #include #include using namespace std;

int main() { string goSchool; string studyClass; string catchupWork; string eatFood; string playGame; string exerciseTime; cout << "You wake up decide to: " << endl<

return 0; }

Modify your Multipath Adventure from the previous lab to fulfill the following requirements:

  • Use at least 3 functions
    • At least one function needs to have at least 2 parameters
    • At least one function needs to return a value

(If your code already fulfilled these requirements, then you can resubmit the same code here, take the Canvas quiz, and you are done!)

Update your Decision Tree to show which branches use function calls. Turn in the updated Decision Tree along with your lab.

Note that you are allowed to use concepts we have not covered in class if you would like to (e.g. loops, etc.). This might also help you in preparing for future labs.

As part of grading your lab, the TAs will randomly pick 2 paths through your decision tree to check your work. They will reference your submitted decision tree to choose the paths and make sure that when they run your code it takes them through the path as specified in your decision tree.

To make your game easier to play (and thus make it easier for the TAs to grade) you should provide prompts before each input that make clear what inputs are valid.

Hints: Possible uses of functions might include a GetUserChoice function that handles string processing, functions to print text that is repeated in multiple branches, or functions that represent the different paths you might take.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!