Questions
Detail three ways (sitcoms, commercials, magazines, etc.) that the popular media mis portrays gender roles and...

Detail three ways (sitcoms, commercials, magazines, etc.) that the popular media mis portrays gender roles and differences. (about 100 words)

In: Psychology

For this assignment I need to use information from a previous assignment which I will paste...

For this assignment I need to use information from a previous assignment which I will paste here:

#ifndef TODO
#define TODO
#include <string>

using std::string;

const int MAXLIST = 10;

struct myToDo
{
    string description;
    string dueDate;
    int priority;
};

bool addToList(const MyToDo &td);
bool addToList(string description, string date, int priority);
bool getNextItem(MyToDo &td);
bool getNextItem(string &description, string &date, int &priority);
bool getByPriority(MyToDo list[], int priority int &count);
void printToDo();

#endif



#include <iostream>
#include "ToDo.h"

using namespace std;

myToDo ToDoList[MAXLIST];
int head = 0, tail = -1;

bool addToList(const myToDo &td)
{
    if(head < MAXLIST)
    {
        if(tail == -1)
            tail++;
        ToDoList[head] = td;
        head++;
        return true;
    }
    return false;
}
bool addTolist(string description, string date, int priority)
{
    MyToDo td;
    td.description = description;
    td.dueDate = date;
    td.priority = priority;
    return addToList(td);
}
bool getNextItem(MyToDo &td)
{
    if(tail >= 0)
    {
        if(tail >= MAXLIST)
            tail = 0;
        td = ToDoList[tail];
        tail++;
        return true;
    }
    return false;
}
bool getNextItem(string &description, string &date, int&priority)
{
    myToDo tmp;
    bool status = getNextItem(tmp);
    if(status == true)
    {
        description = tmp.description;
        date = tmp.dueDate;
        priority = tmp.priority;
    }

    return status;
}
bool getByPriority(MyToDo list[], int priority, int &count)
{
    if(tail < 0)
            return fals;
        count = 0;
        for(int i = 0; i < head; i++)
        {
            if(ToDoList[i].priority == priority)
            {
                list[count] = ToDoList[i];
                count++;
            }
    }
    if(count > 0)
            return true;
        return false;
}
void printToDo())
{
    for(int i = 0; i < head; i++)
    {
        cout << "Description" << ToDoList[i].description << endl;
        cout << "Due Date" << ToDoList[i].dueDate << endl;
        cout << "Priority" << ToDoList[i].priority << endl;
    }

With this info I am asked:

Creating A Classes

This assignment is geared to check your understanding of Object Oriented Programming and class creationg. The class type is called a complex type because it is a type that you create from the primitive types of the language. Even though you create it it is still a full fledged type.

This activity is designed to support the following Learning Objective:

  • Differentiate between object-oriented, structured, and functional programming methodologies.

Instructions

In Assignment 19 you created a simple ToDo list that would hold structs that contained information about each item that would be in the list.. For this assignment I want you to take lab 19 an create a class out of it.

Your class should be called ToDoList. The definition for the ToDoList should be in the header file. The variables that make up the data section should be put in the private area of the class. The prototypes for the interface functions should be in the public area of the class.

Data Section

You can easily identify the variables that make up the data section from the fact that all of the functions use these variables. You should remember from the lecture material on classes that the data section should be the private section of the class. You should also note that if a variable should not have direct access to it then it should be in the private section. What I mean here is that if a person can directly access a variable from a function outside of the class and if modifying this variable can cause unknown problems to the operation of your class then it should be in the private section of the class.

Prototype Functions

All of the function prototypes should also go in the class. If a function is an interface into the class then it should go in the public section. For this assignment all functions are interfaces so all prototypes should go in the public section of the class.

In the previous step you prototyped all of the functions and put them in the public section of the class definition. The bodies for these functions should go in ToDoList.cpp. Don't forget to use the scope resolution operator to relate the function bodies to the prototypes in the class definition.

Constructors

You should have a default and overloaded constructors. The overloaded constructor should take 2-strings and an int which represent the descrition, dueDate, and priority.

In: Computer Science

When is it optimal for a firm to shut down? Explain the circumstances and time horizon...

When is it optimal for a firm to shut down? Explain the circumstances and time horizon relating to this decision.

Can you please explain in detail

In: Economics

Explain in detail the working of an expenditure multiplier using expenditure -output model. Draw appropriate graph...

Explain in detail the working of an expenditure multiplier using expenditure -output model. Draw appropriate graph and also explain its significance.

In: Economics

Explain in detail Assess the purpose of using the DuPont system for analysis. Explain how the...

Explain in detail Assess the purpose of using the DuPont system for analysis. Explain how the factors in the DuPont equation influence the ROA equation.

In: Finance

detail how Wolff’s Law can explain an in increase in bone density, and also, how it...

detail how Wolff’s Law can explain an in increase in bone density, and also, how it can explain decrease in bone density.

In: Anatomy and Physiology

300-400 words 1. Explain Default Partnership Rules under Partnership Act. 2. Explain in detail Articles of...

300-400 words

1. Explain Default Partnership Rules under Partnership Act.

2. Explain in detail Articles of Incorporation.

In: Economics

identify and explain 4 or 5 key learnings that are important for us and why in...

identify and explain 4 or 5 key learnings that are important for us and why in an e-commerce course.
thanks (explain in detail please)

In: Economics

Explain in detail the shape of a perfectly competitive firm’s Total Revenue function and a monopoly's...

Explain in detail the shape of a perfectly competitive firm’s Total Revenue function and a monopoly's Total Revenue function. Explain why they are different.

In: Economics

Please view the 13 minute video Are Robots Hurting Job Growth (60 Minutes, CBS) and answer...

Please view the 13 minute video Are Robots Hurting Job Growth (60 Minutes, CBS) and answer the following questions: a. Analyze the impact of a reduction in the cost of robots and workplace automation on overall employment in the U.S. In your answer, explain which types of workers are likely to be most adversely affected by robots and workplace automation? Are there any types of workers whose labor market prospects may improve with robotization? This question encourages you to think about the nature of the substitability and complementarity between robots and different kinds of workers and occupations, as well as scale effects. b. The Marginal Rate of Technical Substitution, or MRTS, is a measure of the degree of substitutability between two inputs in a production function. See pp. 86-88 (the section “The Production Function”) in Appendix 3A of your text. Based on the interview with the manager of the automated warehouse shown in the video, what is the MRTS between robots and warehouse workers? 2 c. Historically, how has the labor market reacted to technological change? Why do the researchers featured in this video predict modern technological advances like robots will be different?

In: Economics