Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Create a struct called MyToDo that will hold information for a to do list. The s

ID: 3570786 • Letter: C

Question

Create a struct called MyToDo that will hold information for a to do list. The struct should have the following members:

A string to hold the description

An int to hold the priority

A string to hold the due date

Create a function called setToDo that will take an instance of the MyToDo struct by pointer and will allow the user to set the description, priority, and due date of the passed in struct from the keyboard.

Create a second function called printToDo that will take as an argument an instance of the MyToDo stuct by const reference and will simply print out the members of the struct to the console.

For submission I just need the struct declaration, setToDo function, and printToDo function.

Explanation / Answer

#include using namespace std; struct MyToDo { string description; int priority; string dueDate; }; void setToDo(struct MyToDo *myToDo) { cout description; cout priority; cout dueDate; } void printToDo(const struct MyToDo myToDoConst) { cout
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote