Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions Prison_HW1
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
#include <iostream>
#include <string>

using namespace std;

int main()
{}

class Prison
{
private:
int beds;
int prisoners;
int cells;
public:
void set_beds(int beds1) { beds = beds1; } // setter
int get_beds()const { return beds; } // getter

int get_prisoners() { return prisoners; }

int get_cells() { return cells; }


Prison(){ cells = 40; }; // declares how many cell in the prison

};

class Prisoners
{
protected:
int sentencemonths;
int timeserved;
int timetorelease;
int numberofchildren;

string address, visitors;

float hoursworked, payrate, balance, cellnumber, health;
};

class Guards
{
public:
int favoriteweapon;
int steroiduse;
int placetobeatprisoners;
int numberofinfractions;
int contraband;
int probstatus;
int gangaffliation;
};