SlideShare a Scribd company logo
1 of 17
Brinkley – Over Here
Changes during WWII led to an expansion in the Role of the
Federal Government in the post war era
The 2nd Great Migration caused blacks to mobilize to fight
discrimination. Force the federal government to address Civil
Rights Issues.
Women enter the workforce doing men’s work during the war.
Many women remain in the workforce after WWII and demand
equality. Forces the federal government to address women’s
rights
Context of the Cold War causes the United States to define this
country’s values in opposition to the USSR. Causes American
liberalism to be defined in opposition to a strong federal
government.
America become hyperindustrialized after the war. US enters a
period of prosperity. Role of government changes with regard to
the economy. US government should no longer directly manage
the economy but use deficit spending as a way to revive it when
it slows down.
INTERMIDIATE PROGRAMMING
CMPSC 122
LAB 9: INHERITANCE AND POLYMORPHISIM
SPRING 2017
Goal
In this assignment students will practice inheritance and
polymorphism in C++.Objectives
Class Programming: Given an object-based entity with specific
functionality, students should be able to create an equivalent
C++ class to represent it.
Problem:
1. Add to class patientType the date when the patient was
admitted in the hospital, and the date when the patient was
discharged from the hospital (Use the class Date class you
wrote in the prelab) to store admit date, discharge date. Modify
constructors and add member functions to initialize access, and
manipulate the new added data members.
2. In main(), create a vector of pointers to type TeamPerson.
Fill it up with at least three objects. One of TeamPerson, one of
doctorType and one of patientType.
3. Print all the data of the three objects of the vector. Make sure
each object is printed according to its print function.
Rubric
Total: 18 pts
a. Question 1: 8 pts
b. Question 2: 5 pts
c. Question 3: 5 pts
Please follow the program documentation and submission
guidelines to earn full credit.
Submission
ZIP YOUR PROJECT (.sln included) in a folder, call it “Lab9”
and upload it on Canvas under “Lab 9”. Make sure that your
submission was successful. You can upload as many times as
you like on Canvas, however only the second submission will be
graded. Make sure to read the syllabus for more details about
labs submission and late submission.
Honor code
“I pledge on my honor that I have not given or received any
unauthorized assistance on this assignment/examination”
New folder/Date.cppNew folder/Date.cpp
#include<iostream>
#include<ostream>
#include"Date.h"
usingnamespace std;
//Overloaded constructor
Date::Date(int nmonth,int nday,int nyear)
{
day = nday;
year = nyear;
month = nmonth;
return;
}
//Function to get the day
intDate::getDay()
{
return day;
}
//Function to get the year
intDate::getYear()
{
return year;
}
//Fucntion to get the Month
intDate::getMonth()
{
return month;
}
//Funtion to set the day
voidDate::setDay(int n)
{
day = n;
return;
}
//fucntion to set the year
voidDate::setYear(int y)
{
year = y;
return;
}
//function to set the month
voidDate::setMonth(int m)
{
month = m;
return;
}
ostream&operator<<(ostream& os,constDate&p){
os <<"Month: "<< p.month <<'n'
<<"Day: "<< p.day <<'n'
<<"Year: "<< p.year << endl;
return os;
}
/*the specialty of doctor is NLX
the patient's id is 9527
the patient's age is 21
the patient's birthday is Month: 1
Day: 15
Year : 1997
'psbdfilesrvr.psu-
erie.bd.psu.edustudentYVW5455Privatedesktopprelabprela
b'
CMD.EXE was started with the above path as the current dire
ctory.
UNC paths are not supported.Defaulting to Windows director
y.
Press any key to continue . . .*/
New folder/Date.h
//#pragma once
#ifndef DATE_H
#define DATE_H
#include<ostream>
using namespace std;
//Define a new class called Date
class Date {
public:
//The constructors of the class
Date() {};
Date(int nmonth, int nday, int nyear);
//The member functions of the class
int getDay();
int getYear();
int getMonth();
void setDay(int n);
void setYear(int y);
void setMonth(int m);
friend ostream& operator<<(ostream& os, const Date &p);
private:
//The private data of the class
int day;
int month;
int year;
};
#endif
New folder/Person.cpp
#include <iostream>
#include <string>
using namespace std;
#include "Date.h"
#include "Person.h"
TeamPerson::TeamPerson() {}
TeamPerson::TeamPerson(string f, Date d) :fullName(f), dob(d)
{}
void TeamPerson::SetFullName(string firstAndLastName) {
fullName = firstAndLastName;
return;
}
string TeamPerson::GetFullName() const {
return fullName;
}
/*ostream& operator<<(ostream& os, const TeamPerson &p) {
os << "The borrower full name is: " << p.fullName << 'n'
<< "Person DOB: " << 'n'
<< p.dob << endl;
return os;
}*/
New folder/Person.h
#ifndef TEAMPERSON_H
#define TEAMPERSON_H
#include <string>
#include "Date.h"
#include<string>
using namespace std;
class TeamPerson {
public:
TeamPerson();
TeamPerson(string, Date);
friend ostream& operator<<(ostream& os, const TeamPerson
&p);
void SetFullName(string firstAndLastName);
string GetFullName() const;
virtual void print() const
{
cout <<"the patient's birthday is "<< dob << endl;
}
friend ostream& operator<<(ostream& os, const TeamPerson
&p);
protected:
string fullName;
Date dob;
};
class doctorType : public TeamPerson
{
private:
string specialty;
public :
doctorType() {};
doctorType(string s) :specialty(s) {};
void Setspecialty(string s)
{
specialty = s;
};
string Getspecialty()const
{
return specialty;
};
virtual void print()const
{
cout << " the specialty of doctor is " << specialty << endl;
}
/*friend ostream& operator<<(ostream& os, const TeamPerson
&p)
{
os << " the specialty of doctor is " << p.specialty << " the
doctor's name is " << p.fullName << "the doctor's date of birth
is " << p.dob;
return os;
}*/
};
class patientType : public TeamPerson
{
private:
double id;
double age;
public:
patientType() {};
patientType(double a, double id) : age(a),id(id){};
void SetId(double id)
{
this->id = id;
return;
}
double GetID()const
{
return id;
}
void SetAge(double a)
{
age = a;
return;
}
double GetAge()const
{
return age;
}
friend ostream& operator<<(ostream& os, const TeamPerson
&p)
{
os << " the attending physician's nane is " << p.fullName<<
"the doctor's date of birth is " << p.dob;
return os;
}
void print() {
cout << " the patient's id is " << id << endl;
cout << " the patient's age is " << age << endl;
/*cout << "the physician's name is " << fullName << endl;
cout << "the birthday of patient is " << dob << endl;*/
}
};
#endif
New folder/prelab.sln
Microsoft Visual Studio
Solution
File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") =
"prelab", "prelabprelab.vcxproj", "{422FEECC-AF24-4231-
A5BE-F273428F5B19}"
EndProject
Global
GlobalSection(

More Related Content

Similar to Brinkley – Over HereChanges during WWII led to an .docx

Anatomy & Physiology I C15FD-BSC2085CExam #4 Final Study Gui.docx
Anatomy & Physiology I   C15FD-BSC2085CExam #4 Final Study Gui.docxAnatomy & Physiology I   C15FD-BSC2085CExam #4 Final Study Gui.docx
Anatomy & Physiology I C15FD-BSC2085CExam #4 Final Study Gui.docxrossskuddershamus
 
Hello. Im working on an assignment that tests inheritance and comp.pdf
Hello. Im working on an assignment that tests inheritance and comp.pdfHello. Im working on an assignment that tests inheritance and comp.pdf
Hello. Im working on an assignment that tests inheritance and comp.pdfduttakajal70
 
1Finance 4310Project 2Percent of Sales Technique.docx
1Finance 4310Project 2Percent of Sales Technique.docx1Finance 4310Project 2Percent of Sales Technique.docx
1Finance 4310Project 2Percent of Sales Technique.docxhyacinthshackley2629
 
CSE 110 - Lab 6 What this Lab Is About  Working wi.docx
CSE 110 - Lab 6 What this Lab Is About  Working wi.docxCSE 110 - Lab 6 What this Lab Is About  Working wi.docx
CSE 110 - Lab 6 What this Lab Is About  Working wi.docxfaithxdunce63732
 
EN1320 Module 2 Lab 2.1Capturing the Reader’s InterestSelec.docx
EN1320 Module 2 Lab 2.1Capturing the Reader’s InterestSelec.docxEN1320 Module 2 Lab 2.1Capturing the Reader’s InterestSelec.docx
EN1320 Module 2 Lab 2.1Capturing the Reader’s InterestSelec.docxYASHU40
 
Define a class named Doctor whose objects are records for clinic’s d.pdf
Define a class named Doctor whose objects are records for clinic’s d.pdfDefine a class named Doctor whose objects are records for clinic’s d.pdf
Define a class named Doctor whose objects are records for clinic’s d.pdfMALASADHNANI
 
in C++ Design a class named Employee The class should keep .pdf
in C++ Design a class named Employee The class should keep .pdfin C++ Design a class named Employee The class should keep .pdf
in C++ Design a class named Employee The class should keep .pdfadithyaups
 
In your Person classAdd a constant field to store the current yea.pdf
In your Person classAdd a constant field to store the current yea.pdfIn your Person classAdd a constant field to store the current yea.pdf
In your Person classAdd a constant field to store the current yea.pdfarihanthtextiles
 
ISM3230 In-class lab 8 Spring 2019 TOPIC Introduction .docx
ISM3230 In-class lab 8 Spring 2019 TOPIC  Introduction .docxISM3230 In-class lab 8 Spring 2019 TOPIC  Introduction .docx
ISM3230 In-class lab 8 Spring 2019 TOPIC Introduction .docxvrickens
 
Create a C# applicationYou are to create a class object called “Em.pdf
Create a C# applicationYou are to create a class object called “Em.pdfCreate a C# applicationYou are to create a class object called “Em.pdf
Create a C# applicationYou are to create a class object called “Em.pdffeelingspaldi
 
ECE 263264                     Fall 2016 Final Project  .docx
ECE 263264                     Fall 2016 Final Project  .docxECE 263264                     Fall 2016 Final Project  .docx
ECE 263264                     Fall 2016 Final Project  .docxSALU18
 
CMPSC 122 Project 1 Back End Report
CMPSC 122 Project 1 Back End ReportCMPSC 122 Project 1 Back End Report
CMPSC 122 Project 1 Back End ReportMatthew Zackschewski
 
Student DATABASE MANAGeMEnT SysTEm
Student DATABASE MANAGeMEnT SysTEmStudent DATABASE MANAGeMEnT SysTEm
Student DATABASE MANAGeMEnT SysTEmhome
 
Assignment #4 will be the construction of 2 new classes and a driver program/...
Assignment #4 will be the construction of 2 new classes and a driver program/...Assignment #4 will be the construction of 2 new classes and a driver program/...
Assignment #4 will be the construction of 2 new classes and a driver program/...hwbloom3
 
In this assignment, you will continue working on your application..docx
In this assignment, you will continue working on your application..docxIn this assignment, you will continue working on your application..docx
In this assignment, you will continue working on your application..docxjaggernaoma
 
Java - Class Structure
Java - Class StructureJava - Class Structure
Java - Class StructureVicter Paul
 
Overview You are tasked with writing a program called Social Security.pdf
Overview You are tasked with writing a program called Social Security.pdfOverview You are tasked with writing a program called Social Security.pdf
Overview You are tasked with writing a program called Social Security.pdfinfo961251
 

Similar to Brinkley – Over HereChanges during WWII led to an .docx (20)

Anatomy & Physiology I C15FD-BSC2085CExam #4 Final Study Gui.docx
Anatomy & Physiology I   C15FD-BSC2085CExam #4 Final Study Gui.docxAnatomy & Physiology I   C15FD-BSC2085CExam #4 Final Study Gui.docx
Anatomy & Physiology I C15FD-BSC2085CExam #4 Final Study Gui.docx
 
Hello. Im working on an assignment that tests inheritance and comp.pdf
Hello. Im working on an assignment that tests inheritance and comp.pdfHello. Im working on an assignment that tests inheritance and comp.pdf
Hello. Im working on an assignment that tests inheritance and comp.pdf
 
1Finance 4310Project 2Percent of Sales Technique.docx
1Finance 4310Project 2Percent of Sales Technique.docx1Finance 4310Project 2Percent of Sales Technique.docx
1Finance 4310Project 2Percent of Sales Technique.docx
 
CSE 110 - Lab 6 What this Lab Is About  Working wi.docx
CSE 110 - Lab 6 What this Lab Is About  Working wi.docxCSE 110 - Lab 6 What this Lab Is About  Working wi.docx
CSE 110 - Lab 6 What this Lab Is About  Working wi.docx
 
EN1320 Module 2 Lab 2.1Capturing the Reader’s InterestSelec.docx
EN1320 Module 2 Lab 2.1Capturing the Reader’s InterestSelec.docxEN1320 Module 2 Lab 2.1Capturing the Reader’s InterestSelec.docx
EN1320 Module 2 Lab 2.1Capturing the Reader’s InterestSelec.docx
 
Define a class named Doctor whose objects are records for clinic’s d.pdf
Define a class named Doctor whose objects are records for clinic’s d.pdfDefine a class named Doctor whose objects are records for clinic’s d.pdf
Define a class named Doctor whose objects are records for clinic’s d.pdf
 
in C++ Design a class named Employee The class should keep .pdf
in C++ Design a class named Employee The class should keep .pdfin C++ Design a class named Employee The class should keep .pdf
in C++ Design a class named Employee The class should keep .pdf
 
In your Person classAdd a constant field to store the current yea.pdf
In your Person classAdd a constant field to store the current yea.pdfIn your Person classAdd a constant field to store the current yea.pdf
In your Person classAdd a constant field to store the current yea.pdf
 
ISM3230 In-class lab 8 Spring 2019 TOPIC Introduction .docx
ISM3230 In-class lab 8 Spring 2019 TOPIC  Introduction .docxISM3230 In-class lab 8 Spring 2019 TOPIC  Introduction .docx
ISM3230 In-class lab 8 Spring 2019 TOPIC Introduction .docx
 
Create a C# applicationYou are to create a class object called “Em.pdf
Create a C# applicationYou are to create a class object called “Em.pdfCreate a C# applicationYou are to create a class object called “Em.pdf
Create a C# applicationYou are to create a class object called “Em.pdf
 
ECE 263264                     Fall 2016 Final Project  .docx
ECE 263264                     Fall 2016 Final Project  .docxECE 263264                     Fall 2016 Final Project  .docx
ECE 263264                     Fall 2016 Final Project  .docx
 
Opps manual final copy
Opps manual final   copyOpps manual final   copy
Opps manual final copy
 
OOPs manual final copy
OOPs manual final   copyOOPs manual final   copy
OOPs manual final copy
 
Earned Value
Earned ValueEarned Value
Earned Value
 
CMPSC 122 Project 1 Back End Report
CMPSC 122 Project 1 Back End ReportCMPSC 122 Project 1 Back End Report
CMPSC 122 Project 1 Back End Report
 
Student DATABASE MANAGeMEnT SysTEm
Student DATABASE MANAGeMEnT SysTEmStudent DATABASE MANAGeMEnT SysTEm
Student DATABASE MANAGeMEnT SysTEm
 
Assignment #4 will be the construction of 2 new classes and a driver program/...
Assignment #4 will be the construction of 2 new classes and a driver program/...Assignment #4 will be the construction of 2 new classes and a driver program/...
Assignment #4 will be the construction of 2 new classes and a driver program/...
 
In this assignment, you will continue working on your application..docx
In this assignment, you will continue working on your application..docxIn this assignment, you will continue working on your application..docx
In this assignment, you will continue working on your application..docx
 
Java - Class Structure
Java - Class StructureJava - Class Structure
Java - Class Structure
 
Overview You are tasked with writing a program called Social Security.pdf
Overview You are tasked with writing a program called Social Security.pdfOverview You are tasked with writing a program called Social Security.pdf
Overview You are tasked with writing a program called Social Security.pdf
 

More from AASTHA76

(APA 6th Edition Formatting and St.docx
(APA 6th Edition Formatting and St.docx(APA 6th Edition Formatting and St.docx
(APA 6th Edition Formatting and St.docxAASTHA76
 
(a) Thrasymachus’ (the sophist’s) definition of Justice or Right o.docx
(a) Thrasymachus’ (the sophist’s) definition of Justice or Right o.docx(a) Thrasymachus’ (the sophist’s) definition of Justice or Right o.docx
(a) Thrasymachus’ (the sophist’s) definition of Justice or Right o.docxAASTHA76
 
(Glossary of Telemedicine and eHealth)· Teleconsultation Cons.docx
(Glossary of Telemedicine and eHealth)· Teleconsultation Cons.docx(Glossary of Telemedicine and eHealth)· Teleconsultation Cons.docx
(Glossary of Telemedicine and eHealth)· Teleconsultation Cons.docxAASTHA76
 
(Assmt 1; Week 3 paper) Using ecree Doing the paper and s.docx
(Assmt 1; Week 3 paper)  Using ecree        Doing the paper and s.docx(Assmt 1; Week 3 paper)  Using ecree        Doing the paper and s.docx
(Assmt 1; Week 3 paper) Using ecree Doing the paper and s.docxAASTHA76
 
(Image retrieved at httpswww.google.comsearchhl=en&biw=122.docx
(Image retrieved at  httpswww.google.comsearchhl=en&biw=122.docx(Image retrieved at  httpswww.google.comsearchhl=en&biw=122.docx
(Image retrieved at httpswww.google.comsearchhl=en&biw=122.docxAASTHA76
 
(Dis) Placing Culture and Cultural Space Chapter 4.docx
(Dis) Placing Culture and Cultural Space Chapter 4.docx(Dis) Placing Culture and Cultural Space Chapter 4.docx
(Dis) Placing Culture and Cultural Space Chapter 4.docxAASTHA76
 
(1) Define the time value of money.  Do you believe that the ave.docx
(1) Define the time value of money.  Do you believe that the ave.docx(1) Define the time value of money.  Do you believe that the ave.docx
(1) Define the time value of money.  Do you believe that the ave.docxAASTHA76
 
(chapter taken from Learning Power)From Social Class and t.docx
(chapter taken from Learning Power)From Social Class and t.docx(chapter taken from Learning Power)From Social Class and t.docx
(chapter taken from Learning Power)From Social Class and t.docxAASTHA76
 
(Accessible at httpswww.hatchforgood.orgexplore102nonpro.docx
(Accessible at httpswww.hatchforgood.orgexplore102nonpro.docx(Accessible at httpswww.hatchforgood.orgexplore102nonpro.docx
(Accessible at httpswww.hatchforgood.orgexplore102nonpro.docxAASTHA76
 
(a) The current ratio of a company is 61 and its acid-test ratio .docx
(a) The current ratio of a company is 61 and its acid-test ratio .docx(a) The current ratio of a company is 61 and its acid-test ratio .docx
(a) The current ratio of a company is 61 and its acid-test ratio .docxAASTHA76
 
(1) How does quantum cryptography eliminate the problem of eaves.docx
(1) How does quantum cryptography eliminate the problem of eaves.docx(1) How does quantum cryptography eliminate the problem of eaves.docx
(1) How does quantum cryptography eliminate the problem of eaves.docxAASTHA76
 
#transformation10EventTrendsfor 201910 Event.docx
#transformation10EventTrendsfor 201910 Event.docx#transformation10EventTrendsfor 201910 Event.docx
#transformation10EventTrendsfor 201910 Event.docxAASTHA76
 
$10 now and $10 when complete Use resources from the required .docx
$10 now and $10 when complete Use resources from the required .docx$10 now and $10 when complete Use resources from the required .docx
$10 now and $10 when complete Use resources from the required .docxAASTHA76
 
#MicroXplorer Configuration settings - do not modifyFile.Versio.docx
#MicroXplorer Configuration settings - do not modifyFile.Versio.docx#MicroXplorer Configuration settings - do not modifyFile.Versio.docx
#MicroXplorer Configuration settings - do not modifyFile.Versio.docxAASTHA76
 
#include string.h#include stdlib.h#include systypes.h.docx
#include string.h#include stdlib.h#include systypes.h.docx#include string.h#include stdlib.h#include systypes.h.docx
#include string.h#include stdlib.h#include systypes.h.docxAASTHA76
 
$ stated in thousands)Net Assets, Controlling Interest.docx
$ stated in thousands)Net Assets, Controlling Interest.docx$ stated in thousands)Net Assets, Controlling Interest.docx
$ stated in thousands)Net Assets, Controlling Interest.docxAASTHA76
 
#include stdio.h#include stdlib.h#include pthread.h#in.docx
#include stdio.h#include stdlib.h#include pthread.h#in.docx#include stdio.h#include stdlib.h#include pthread.h#in.docx
#include stdio.h#include stdlib.h#include pthread.h#in.docxAASTHA76
 
#include customer.h#include heap.h#include iostream.docx
#include customer.h#include heap.h#include iostream.docx#include customer.h#include heap.h#include iostream.docx
#include customer.h#include heap.h#include iostream.docxAASTHA76
 
#Assessment BriefDiploma of Business Eco.docx
#Assessment BriefDiploma of Business Eco.docx#Assessment BriefDiploma of Business Eco.docx
#Assessment BriefDiploma of Business Eco.docxAASTHA76
 
#include stdio.h#include stdint.h#include stdbool.h.docx
#include stdio.h#include stdint.h#include stdbool.h.docx#include stdio.h#include stdint.h#include stdbool.h.docx
#include stdio.h#include stdint.h#include stdbool.h.docxAASTHA76
 

More from AASTHA76 (20)

(APA 6th Edition Formatting and St.docx
(APA 6th Edition Formatting and St.docx(APA 6th Edition Formatting and St.docx
(APA 6th Edition Formatting and St.docx
 
(a) Thrasymachus’ (the sophist’s) definition of Justice or Right o.docx
(a) Thrasymachus’ (the sophist’s) definition of Justice or Right o.docx(a) Thrasymachus’ (the sophist’s) definition of Justice or Right o.docx
(a) Thrasymachus’ (the sophist’s) definition of Justice or Right o.docx
 
(Glossary of Telemedicine and eHealth)· Teleconsultation Cons.docx
(Glossary of Telemedicine and eHealth)· Teleconsultation Cons.docx(Glossary of Telemedicine and eHealth)· Teleconsultation Cons.docx
(Glossary of Telemedicine and eHealth)· Teleconsultation Cons.docx
 
(Assmt 1; Week 3 paper) Using ecree Doing the paper and s.docx
(Assmt 1; Week 3 paper)  Using ecree        Doing the paper and s.docx(Assmt 1; Week 3 paper)  Using ecree        Doing the paper and s.docx
(Assmt 1; Week 3 paper) Using ecree Doing the paper and s.docx
 
(Image retrieved at httpswww.google.comsearchhl=en&biw=122.docx
(Image retrieved at  httpswww.google.comsearchhl=en&biw=122.docx(Image retrieved at  httpswww.google.comsearchhl=en&biw=122.docx
(Image retrieved at httpswww.google.comsearchhl=en&biw=122.docx
 
(Dis) Placing Culture and Cultural Space Chapter 4.docx
(Dis) Placing Culture and Cultural Space Chapter 4.docx(Dis) Placing Culture and Cultural Space Chapter 4.docx
(Dis) Placing Culture and Cultural Space Chapter 4.docx
 
(1) Define the time value of money.  Do you believe that the ave.docx
(1) Define the time value of money.  Do you believe that the ave.docx(1) Define the time value of money.  Do you believe that the ave.docx
(1) Define the time value of money.  Do you believe that the ave.docx
 
(chapter taken from Learning Power)From Social Class and t.docx
(chapter taken from Learning Power)From Social Class and t.docx(chapter taken from Learning Power)From Social Class and t.docx
(chapter taken from Learning Power)From Social Class and t.docx
 
(Accessible at httpswww.hatchforgood.orgexplore102nonpro.docx
(Accessible at httpswww.hatchforgood.orgexplore102nonpro.docx(Accessible at httpswww.hatchforgood.orgexplore102nonpro.docx
(Accessible at httpswww.hatchforgood.orgexplore102nonpro.docx
 
(a) The current ratio of a company is 61 and its acid-test ratio .docx
(a) The current ratio of a company is 61 and its acid-test ratio .docx(a) The current ratio of a company is 61 and its acid-test ratio .docx
(a) The current ratio of a company is 61 and its acid-test ratio .docx
 
(1) How does quantum cryptography eliminate the problem of eaves.docx
(1) How does quantum cryptography eliminate the problem of eaves.docx(1) How does quantum cryptography eliminate the problem of eaves.docx
(1) How does quantum cryptography eliminate the problem of eaves.docx
 
#transformation10EventTrendsfor 201910 Event.docx
#transformation10EventTrendsfor 201910 Event.docx#transformation10EventTrendsfor 201910 Event.docx
#transformation10EventTrendsfor 201910 Event.docx
 
$10 now and $10 when complete Use resources from the required .docx
$10 now and $10 when complete Use resources from the required .docx$10 now and $10 when complete Use resources from the required .docx
$10 now and $10 when complete Use resources from the required .docx
 
#MicroXplorer Configuration settings - do not modifyFile.Versio.docx
#MicroXplorer Configuration settings - do not modifyFile.Versio.docx#MicroXplorer Configuration settings - do not modifyFile.Versio.docx
#MicroXplorer Configuration settings - do not modifyFile.Versio.docx
 
#include string.h#include stdlib.h#include systypes.h.docx
#include string.h#include stdlib.h#include systypes.h.docx#include string.h#include stdlib.h#include systypes.h.docx
#include string.h#include stdlib.h#include systypes.h.docx
 
$ stated in thousands)Net Assets, Controlling Interest.docx
$ stated in thousands)Net Assets, Controlling Interest.docx$ stated in thousands)Net Assets, Controlling Interest.docx
$ stated in thousands)Net Assets, Controlling Interest.docx
 
#include stdio.h#include stdlib.h#include pthread.h#in.docx
#include stdio.h#include stdlib.h#include pthread.h#in.docx#include stdio.h#include stdlib.h#include pthread.h#in.docx
#include stdio.h#include stdlib.h#include pthread.h#in.docx
 
#include customer.h#include heap.h#include iostream.docx
#include customer.h#include heap.h#include iostream.docx#include customer.h#include heap.h#include iostream.docx
#include customer.h#include heap.h#include iostream.docx
 
#Assessment BriefDiploma of Business Eco.docx
#Assessment BriefDiploma of Business Eco.docx#Assessment BriefDiploma of Business Eco.docx
#Assessment BriefDiploma of Business Eco.docx
 
#include stdio.h#include stdint.h#include stdbool.h.docx
#include stdio.h#include stdint.h#include stdbool.h.docx#include stdio.h#include stdint.h#include stdbool.h.docx
#include stdio.h#include stdint.h#include stdbool.h.docx
 

Recently uploaded

How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17Celine George
 
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdfUGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdfNirmal Dwivedi
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxmarlenawright1
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxPooja Bhuva
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsSandeep D Chaudhary
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxDr. Ravikiran H M Gowda
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
What is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptxWhat is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptxCeline George
 
How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17Celine George
 
Introduction to TechSoup’s Digital Marketing Services and Use Cases
Introduction to TechSoup’s Digital Marketing  Services and Use CasesIntroduction to TechSoup’s Digital Marketing  Services and Use Cases
Introduction to TechSoup’s Digital Marketing Services and Use CasesTechSoup
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxPooja Bhuva
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Pooja Bhuva
 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsNbelano25
 
Play hard learn harder: The Serious Business of Play
Play hard learn harder:  The Serious Business of PlayPlay hard learn harder:  The Serious Business of Play
Play hard learn harder: The Serious Business of PlayPooky Knightsmith
 
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lessonQUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lessonhttgc7rh9c
 

Recently uploaded (20)

How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdfUGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Our Environment Class 10 Science Notes pdf
Our Environment Class 10 Science Notes pdfOur Environment Class 10 Science Notes pdf
Our Environment Class 10 Science Notes pdf
 
What is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptxWhat is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptx
 
How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17
 
Introduction to TechSoup’s Digital Marketing Services and Use Cases
Introduction to TechSoup’s Digital Marketing  Services and Use CasesIntroduction to TechSoup’s Digital Marketing  Services and Use Cases
Introduction to TechSoup’s Digital Marketing Services and Use Cases
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf arts
 
Play hard learn harder: The Serious Business of Play
Play hard learn harder:  The Serious Business of PlayPlay hard learn harder:  The Serious Business of Play
Play hard learn harder: The Serious Business of Play
 
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lessonQUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
 

Brinkley – Over HereChanges during WWII led to an .docx

  • 1. Brinkley – Over Here Changes during WWII led to an expansion in the Role of the Federal Government in the post war era The 2nd Great Migration caused blacks to mobilize to fight discrimination. Force the federal government to address Civil Rights Issues. Women enter the workforce doing men’s work during the war. Many women remain in the workforce after WWII and demand equality. Forces the federal government to address women’s rights Context of the Cold War causes the United States to define this country’s values in opposition to the USSR. Causes American liberalism to be defined in opposition to a strong federal government. America become hyperindustrialized after the war. US enters a period of prosperity. Role of government changes with regard to the economy. US government should no longer directly manage the economy but use deficit spending as a way to revive it when it slows down.
  • 2. INTERMIDIATE PROGRAMMING CMPSC 122 LAB 9: INHERITANCE AND POLYMORPHISIM SPRING 2017 Goal In this assignment students will practice inheritance and polymorphism in C++.Objectives Class Programming: Given an object-based entity with specific functionality, students should be able to create an equivalent C++ class to represent it. Problem: 1. Add to class patientType the date when the patient was admitted in the hospital, and the date when the patient was discharged from the hospital (Use the class Date class you wrote in the prelab) to store admit date, discharge date. Modify
  • 3. constructors and add member functions to initialize access, and manipulate the new added data members. 2. In main(), create a vector of pointers to type TeamPerson. Fill it up with at least three objects. One of TeamPerson, one of doctorType and one of patientType. 3. Print all the data of the three objects of the vector. Make sure each object is printed according to its print function. Rubric Total: 18 pts a. Question 1: 8 pts b. Question 2: 5 pts c. Question 3: 5 pts Please follow the program documentation and submission guidelines to earn full credit. Submission ZIP YOUR PROJECT (.sln included) in a folder, call it “Lab9” and upload it on Canvas under “Lab 9”. Make sure that your submission was successful. You can upload as many times as you like on Canvas, however only the second submission will be graded. Make sure to read the syllabus for more details about labs submission and late submission. Honor code “I pledge on my honor that I have not given or received any unauthorized assistance on this assignment/examination” New folder/Date.cppNew folder/Date.cpp #include<iostream> #include<ostream> #include"Date.h" usingnamespace std;
  • 4. //Overloaded constructor Date::Date(int nmonth,int nday,int nyear) { day = nday; year = nyear; month = nmonth; return; } //Function to get the day intDate::getDay() { return day; } //Function to get the year intDate::getYear() { return year; } //Fucntion to get the Month intDate::getMonth() { return month; } //Funtion to set the day voidDate::setDay(int n) { day = n;
  • 5. return; } //fucntion to set the year voidDate::setYear(int y) { year = y; return; } //function to set the month voidDate::setMonth(int m) { month = m; return; } ostream&operator<<(ostream& os,constDate&p){ os <<"Month: "<< p.month <<'n' <<"Day: "<< p.day <<'n' <<"Year: "<< p.year << endl; return os; } /*the specialty of doctor is NLX the patient's id is 9527 the patient's age is 21 the patient's birthday is Month: 1 Day: 15 Year : 1997 'psbdfilesrvr.psu- erie.bd.psu.edustudentYVW5455Privatedesktopprelabprela b' CMD.EXE was started with the above path as the current dire
  • 6. ctory. UNC paths are not supported.Defaulting to Windows director y. Press any key to continue . . .*/ New folder/Date.h //#pragma once #ifndef DATE_H #define DATE_H #include<ostream> using namespace std; //Define a new class called Date class Date { public: //The constructors of the class Date() {}; Date(int nmonth, int nday, int nyear);
  • 7. //The member functions of the class int getDay(); int getYear(); int getMonth(); void setDay(int n); void setYear(int y); void setMonth(int m); friend ostream& operator<<(ostream& os, const Date &p); private: //The private data of the class int day; int month; int year; };
  • 8. #endif New folder/Person.cpp #include <iostream> #include <string> using namespace std; #include "Date.h" #include "Person.h" TeamPerson::TeamPerson() {} TeamPerson::TeamPerson(string f, Date d) :fullName(f), dob(d) {} void TeamPerson::SetFullName(string firstAndLastName) { fullName = firstAndLastName;
  • 9. return; } string TeamPerson::GetFullName() const { return fullName; } /*ostream& operator<<(ostream& os, const TeamPerson &p) { os << "The borrower full name is: " << p.fullName << 'n' << "Person DOB: " << 'n' << p.dob << endl; return os; }*/
  • 10. New folder/Person.h #ifndef TEAMPERSON_H #define TEAMPERSON_H #include <string> #include "Date.h" #include<string> using namespace std; class TeamPerson { public: TeamPerson(); TeamPerson(string, Date); friend ostream& operator<<(ostream& os, const TeamPerson &p); void SetFullName(string firstAndLastName);
  • 11. string GetFullName() const; virtual void print() const { cout <<"the patient's birthday is "<< dob << endl; } friend ostream& operator<<(ostream& os, const TeamPerson &p); protected: string fullName; Date dob; }; class doctorType : public TeamPerson
  • 12. { private: string specialty; public : doctorType() {}; doctorType(string s) :specialty(s) {}; void Setspecialty(string s) { specialty = s; }; string Getspecialty()const { return specialty; }; virtual void print()const
  • 13. { cout << " the specialty of doctor is " << specialty << endl; } /*friend ostream& operator<<(ostream& os, const TeamPerson &p) { os << " the specialty of doctor is " << p.specialty << " the doctor's name is " << p.fullName << "the doctor's date of birth is " << p.dob; return os; }*/ }; class patientType : public TeamPerson { private:
  • 14. double id; double age; public: patientType() {}; patientType(double a, double id) : age(a),id(id){}; void SetId(double id) { this->id = id; return; } double GetID()const { return id; } void SetAge(double a) {
  • 15. age = a; return; } double GetAge()const { return age; } friend ostream& operator<<(ostream& os, const TeamPerson &p) { os << " the attending physician's nane is " << p.fullName<< "the doctor's date of birth is " << p.dob; return os; } void print() { cout << " the patient's id is " << id << endl;
  • 16. cout << " the patient's age is " << age << endl; /*cout << "the physician's name is " << fullName << endl; cout << "the birthday of patient is " << dob << endl;*/ } }; #endif New folder/prelab.sln Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 14 VisualStudioVersion = 14.0.25420.1 MinimumVisualStudioVersion = 10.0.40219.1
  • 17. Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "prelab", "prelabprelab.vcxproj", "{422FEECC-AF24-4231- A5BE-F273428F5B19}" EndProject Global GlobalSection(