Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ programming language Notes: Accessing vector/list entries should be done using iterators , in a generic way, i.e.: for ( auto it = team.begin(); it

image text in transcribed

C++ programming language

Notes:

  • Accessing vector/list entries should be done using iterators, in a generic way, i.e.:

for ( auto it = team.begin(); it != team.end(); ++it ) { /* your code */ }

  • You should use generic functions from the library e.g., rotate (in part b), etc.
Exercise 2: You are assigning tasks to your team. There are four tasks to be rotated among team members. Tasks are: fetching water, collecting firewood, cooking, and cleaning up. You are to add an option (#6) to the program in part (a) that prompts the user for the desired number of working days and prints a schedule of daily duties for the team. The "Task" class is provided to you with the following data and function members: 1. Three data members: id, name, duration, - as described above. 2. A constructor with arguments (id, name and duration) 3. Getter functions for all data members. 4. An operator overload function for extraction

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pro Oracle Fusion Applications Installation And Administration

Authors: Tushar Thakker

1st Edition

1484209834, 9781484209837

More Books

Students also viewed these Databases questions