The document defines classes for representing status codes and dates in C++. It includes methods for initializing, comparing, and outputting date and status objects. It also defines a Container class that uses these types and demonstrates their use in a statusTester() function, which validates user input against min/max values and prints any error statuses.
Need help getting past an error in C++! I have all my code pasted down.docxJason0x0Scottw
Need help getting past an error in C++!
I have all my code pasted down below. My issue is that I'm trying to call the functions I have in main, but they don't do anything as they are now. I'm almost positive I need to call them with parenthesis, but putting them in always results with an error saying "A nonstatic member reference must be relative to a specific object."
Below will be the source file, then the header file I made all the functions in. Thanks in advance, y'all are the best!
(Source.ccp)
#include "Header.h"
int main() {
NoteList noteList;
noteList.loadData("input.txt");
bool finish = false;
int choice;
while (finish != true) {
cout << "\n** Menu **\n"
<< "1. LIST NOTES BY DATE\n"
<< "2. LIST NOTES BY COMPOSER\n"
<< "3. DELETE MOST RECENT NOTE\n"
<< "4. EXIT\n" << endl;
cin >> choice;
if (choice == 1)
{
&NoteList::listNotesByDate();
}
else if (choice == 2)
{
&NoteList::listNotesByComposer;
}
else if (choice == 3)
{
&NoteList::deleteFrontNote;
}
else if (choice == 4)
{
cout << "\nOperations ended";
finish = true;
}
else
{
cout << "\nInput not recognized. Please choose a number between 1 and 4." << endl;
}
}
return 0;
}
(Header.h)
#pragma once
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
class Date {
private:
int month, day, year;
public:
Date() : month(0), day(0), year(0) {}
void setDate(string strDate) {
month = stoi(strDate.substr(0, 2));
day = stoi(strDate.substr(3, 2));
year = stoi(strDate.substr(6, 4));
}
string showDate() {
return to_string(month) + "-" + to_string(day) + "-" + to_string(year);
}
int calculateDays() {
return year * 365 + month * 31 + day;
}
};
class Note {
private:
string composer;
Date date;
string subject;
string body;
public:
Note(string c, string d, string s, string b) : composer(c), subject(s), body(b) {
date.setDate(d);
}
string getComposer() {
return composer;
}
Date getDate() {
return date;
}
string getSubject() {
return subject;
}
string getBody() {
return body;
}
};
struct noteNode {
Note note;
noteNode* next;
};
class NoteList {
private:
noteNode* head;
public:
NoteList() : head(nullptr) {}
void loadData(const char* filename) {
ifstream file(filename);
if (file.is_open()) {
string line;
string composer, date, subject, body;
while (getline(file, line)) {
if (line == "##########") {
Note note = Note(composer, date, subject, body);
addNote(note);
composer.clear();
date.clear();
subject.clear();
body.clear();
}
else if (line.substr(0, 10) == "COMPOSER: ") {
composer = line.substr(10);
}
else if (line.substr(0, 6) == "DATE: ") {
date = line.substr(6);
}
else if (line.substr(0, 9) == "SUBJECT: ") {
subject = line.substr(9);
}
else {
body += line + "\n";
}
}
file.close();
}
else {
cerr << "Unable to open file " << filename << endl;
}
}
void addNote(Note note) {
noteNode* newNode = new noteNode{note, head};
newNode->note = note;
newNode->next = head;
head =.
I have written the code but cannot complete the assignment please help.pdfshreeaadithyaacellso
I have written the code but cannot complete the assignment please help me to complete.
Please don't just copy other s answers as your own.
// Insertion sort
/*
#include <ctime>
#include <iostream>
using namespace std;
void insertionSort(int arr[], int n) {
int i, key, j;
for (i = 1; i < n; i++) {
key = arr[i];
j = i - 1;
// Move elements of arr[0..i-1], that are greater than key, to one position ahead of their current
position
while (j >= 0 && arr[j] > key) {
arr[j + 1] = arr[j];
j = j - 1;
}
arr[j + 1] = key;
}
}
int main() {
int n;
cout << "Enter the size of the array: ";
cin >> n;
int arr[n];
cout << "Enter the elements of the array: ";
for (int i = 0; i < n; i++) {
cin >> arr[i];
}
int num = sizeof(arr) / sizeof(arr[0]);
clock_t start, end;
double timetaken;
start = clock();
insertionSort(arr, num);
end = clock();
cout << "Sorted array: \n";
for (int i = 0; i < n; i++)
cout << arr[i] << " ";
cout << endl;
timetaken = ((double) (end - start)) / CLOCKS_PER_SEC;
cout << "Time taken : " << fixed << timetaken << "s" << endl;
return 0;
}
*/
// Shell Sort
/*
#include <ctime>
#include <iostream>
using namespace std;
int shellSort(int arr[], int n) {
for (int gap = n/2; gap > 0; gap /= 2) {
for (int i = gap; i < n; i += 1) {
int temp = arr[i];
int j;
for (j = i; j >= gap && arr[j - gap] > temp; j -= gap)
arr[j] = arr[j - gap];
arr[j] = temp;
}
}
return 0;
}
void printArray(int arr[], int n) {
for (int i=0; i<n; i++)
cout << arr[i] << " ";
}
int main() {
int n;
cout << "Enter the size of the array: ";
cin >> n;
int arr[n];
cout << "Enter the elements of the array: ";
for (int i = 0; i < n; i++) {
cin >> arr[i];
}
int num = sizeof(arr) / sizeof(arr[0]);
clock_t start, end;
double timetaken;
start = clock();
shellSort(arr, num);
end = clock();
cout << "\nArray after sorting: \n";
printArray(arr, n);
cout << endl;
timetaken = (double)(end - start) / CLOCKS_PER_SEC;
cout << "Time taken : " << fixed << timetaken << "s" << endl;
return 0;
}
*/
// MergeSort
/*
#include <ctime>
#include <iostream>
using namespace std;
void merge(int arr[], int l, int m, int r) {
int i, j, k;
int n1 = m - l + 1;
int n2 = r - m;
int L[n1], R[n2];
for (i = 0; i < n1; i++)
L[i] = arr[l + i];
for (j = 0; j < n2; j++)
R[j] = arr[m + 1 + j];
i = 0;
j = 0;
k = l;
while (i < n1 && j < n2) {
if (L[i] <= R[j]) {
arr[k] = L[i];
i++;
}
else {
arr[k] = R[j];
j++;
}
k++;
}
while (i < n1) {
arr[k] = L[i];
i++;
k++;
}
while (j < n2) {
arr[k] = R[j];
j++;
k++;
}
}
void mergeSort(int arr[], int l, int r) {
if (l < r) {
int m = l + (r - l) / 2;
mergeSort(arr, l, m);
mergeSort(arr, m + 1, r);
merge(arr, l, m, r);
}
}
int main() {
int n;
cout << "Enter the size of the array: ";
cin >> n;
int arr[n];
cout << "Enter the elements of the array: ";
for (int i = 0; i < n; i++) {
cin >> arr[i];
}
int arr_size = sizeof(arr) / sizeof(arr[0]);
clock_t start;
clock_t end;
double timetaken;
start = clock();
mergeSort(arr, 0, arr_size - 1);
end = clock();
timetaken = (double)(end - start) / CLOCKS_PER_SEC;
.
I keep on get a redefinition error and an undefined error.Customer.pdfherminaherman
I keep on get a redefinition error and an undefined error.
Customer List
(1) CustomerList() and ~CustomerList() - default constructor and destructor.
(2) bool addStore(Store*s) - Add an instance of store to the linked list. Return true if successful.
(3) Store *removeStore(int ID) - Locate a Store in the list if it exists, remove and return it.
(4) Store *getStore(int ID) - Locate a Store in the list and return a pointer to it.
(5) bool updateStore(int ID, char *name, char *addr, char *city, char *st, char *zip) - Locate a
store in the list then update all its information. Return true if successful.
(6) void printStoreInfo() - Iterate over the list of store and have each print itself.
Employee Record
(1) Add a pointer to a class of type CustomerList called m_pCustomerList.
(2) Add a function CustomerList *getCustomerList to return the pointer to the
EmployeeRecord\'s CustomerList object.
-------------------------------------------------------------
CustomerList.h
#pragma once;
#include
#include \"Store.h\"
class CustomerList
{
public:
Store *m_pHead;
CustomerList();
~CustomerList();
bool addStore(Store *s);
Store *removeStore(int ID);
Store *getStore(int ID);
bool updateStore(int ID, char *name, char *addr, char *city, char *st, char *zip);
void printStoresInfo();
};
----------------------------------------------------------------------------
CustomerList.cpp
#include
#include \"CustomerList.h\"
#include \"Store.h\"
using namespace std;
CustomerList::CustomerList()
{
// Default constructor
}
CustomerList::~CustomerList()
{
// Destructor
}
bool CustomerList:: addStore(Store *s)
{
//creating a new instance
s = new Store();
if(s==NULL)
return true;
}
Store *CustomerList::removeStore(int ID)
{
Store *temp, *back;
temp = m_pHead;
back = NULL;
while((temp != NULL)&&(ID != temp ->getStoreID()))
{
back=temp;
temp=temp->m_pNext;
}
if(temp==NULL)
return NULL;
else if(back==NULL)
{
m_pHead = m_pHead ->m_pNext;
return temp;
}
else
{
back -> m_pNext = temp-> m_pNext;
return temp;
}
return NULL;
}
Store *CustomerList::getStore(int ID)
{
Store *temp;
temp = m_pHead;
while((temp != NULL) && (ID != temp ->getStoreID()))
{
temp = temp->m_pNext;
}
if(temp == NULL)
return NULL;
else
{
Store *retStore = new Store;
*retStore = *temp;
retStore->m_pNext = NULL;
return retStore;
}
}
bool CustomerList::updateStore(int ID, char *name, char *addr, char *city, char *st, char *zip)
{
return false;
}
void CustomerList::printStoresInfo()
{
Store *temp;
cout << \"
=====================================================================
================ \" << endl;
if(m_pHead== NULL)
cout << \" The List is currently empty.\ \" ;
else
{
temp = m_pHead;
while(temp != NULL)
{
cout << temp->m_pNext << endl;
}
}
}
--------------------------------------------------------------------------------
Store.h
#pragma once;
#include
#include
using namespace std;
class Store
{
private:
int m_iStoreID;
char m_sStoreName[64];
char m_sAddress[64];
char m_sCity[32];
char m_sState[32];
char m_sZip[.
Need help getting past an error in C++! I have all my code pasted down.docxJason0x0Scottw
Need help getting past an error in C++!
I have all my code pasted down below. My issue is that I'm trying to call the functions I have in main, but they don't do anything as they are now. I'm almost positive I need to call them with parenthesis, but putting them in always results with an error saying "A nonstatic member reference must be relative to a specific object."
Below will be the source file, then the header file I made all the functions in. Thanks in advance, y'all are the best!
(Source.ccp)
#include "Header.h"
int main() {
NoteList noteList;
noteList.loadData("input.txt");
bool finish = false;
int choice;
while (finish != true) {
cout << "\n** Menu **\n"
<< "1. LIST NOTES BY DATE\n"
<< "2. LIST NOTES BY COMPOSER\n"
<< "3. DELETE MOST RECENT NOTE\n"
<< "4. EXIT\n" << endl;
cin >> choice;
if (choice == 1)
{
&NoteList::listNotesByDate();
}
else if (choice == 2)
{
&NoteList::listNotesByComposer;
}
else if (choice == 3)
{
&NoteList::deleteFrontNote;
}
else if (choice == 4)
{
cout << "\nOperations ended";
finish = true;
}
else
{
cout << "\nInput not recognized. Please choose a number between 1 and 4." << endl;
}
}
return 0;
}
(Header.h)
#pragma once
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
class Date {
private:
int month, day, year;
public:
Date() : month(0), day(0), year(0) {}
void setDate(string strDate) {
month = stoi(strDate.substr(0, 2));
day = stoi(strDate.substr(3, 2));
year = stoi(strDate.substr(6, 4));
}
string showDate() {
return to_string(month) + "-" + to_string(day) + "-" + to_string(year);
}
int calculateDays() {
return year * 365 + month * 31 + day;
}
};
class Note {
private:
string composer;
Date date;
string subject;
string body;
public:
Note(string c, string d, string s, string b) : composer(c), subject(s), body(b) {
date.setDate(d);
}
string getComposer() {
return composer;
}
Date getDate() {
return date;
}
string getSubject() {
return subject;
}
string getBody() {
return body;
}
};
struct noteNode {
Note note;
noteNode* next;
};
class NoteList {
private:
noteNode* head;
public:
NoteList() : head(nullptr) {}
void loadData(const char* filename) {
ifstream file(filename);
if (file.is_open()) {
string line;
string composer, date, subject, body;
while (getline(file, line)) {
if (line == "##########") {
Note note = Note(composer, date, subject, body);
addNote(note);
composer.clear();
date.clear();
subject.clear();
body.clear();
}
else if (line.substr(0, 10) == "COMPOSER: ") {
composer = line.substr(10);
}
else if (line.substr(0, 6) == "DATE: ") {
date = line.substr(6);
}
else if (line.substr(0, 9) == "SUBJECT: ") {
subject = line.substr(9);
}
else {
body += line + "\n";
}
}
file.close();
}
else {
cerr << "Unable to open file " << filename << endl;
}
}
void addNote(Note note) {
noteNode* newNode = new noteNode{note, head};
newNode->note = note;
newNode->next = head;
head =.
I have written the code but cannot complete the assignment please help.pdfshreeaadithyaacellso
I have written the code but cannot complete the assignment please help me to complete.
Please don't just copy other s answers as your own.
// Insertion sort
/*
#include <ctime>
#include <iostream>
using namespace std;
void insertionSort(int arr[], int n) {
int i, key, j;
for (i = 1; i < n; i++) {
key = arr[i];
j = i - 1;
// Move elements of arr[0..i-1], that are greater than key, to one position ahead of their current
position
while (j >= 0 && arr[j] > key) {
arr[j + 1] = arr[j];
j = j - 1;
}
arr[j + 1] = key;
}
}
int main() {
int n;
cout << "Enter the size of the array: ";
cin >> n;
int arr[n];
cout << "Enter the elements of the array: ";
for (int i = 0; i < n; i++) {
cin >> arr[i];
}
int num = sizeof(arr) / sizeof(arr[0]);
clock_t start, end;
double timetaken;
start = clock();
insertionSort(arr, num);
end = clock();
cout << "Sorted array: \n";
for (int i = 0; i < n; i++)
cout << arr[i] << " ";
cout << endl;
timetaken = ((double) (end - start)) / CLOCKS_PER_SEC;
cout << "Time taken : " << fixed << timetaken << "s" << endl;
return 0;
}
*/
// Shell Sort
/*
#include <ctime>
#include <iostream>
using namespace std;
int shellSort(int arr[], int n) {
for (int gap = n/2; gap > 0; gap /= 2) {
for (int i = gap; i < n; i += 1) {
int temp = arr[i];
int j;
for (j = i; j >= gap && arr[j - gap] > temp; j -= gap)
arr[j] = arr[j - gap];
arr[j] = temp;
}
}
return 0;
}
void printArray(int arr[], int n) {
for (int i=0; i<n; i++)
cout << arr[i] << " ";
}
int main() {
int n;
cout << "Enter the size of the array: ";
cin >> n;
int arr[n];
cout << "Enter the elements of the array: ";
for (int i = 0; i < n; i++) {
cin >> arr[i];
}
int num = sizeof(arr) / sizeof(arr[0]);
clock_t start, end;
double timetaken;
start = clock();
shellSort(arr, num);
end = clock();
cout << "\nArray after sorting: \n";
printArray(arr, n);
cout << endl;
timetaken = (double)(end - start) / CLOCKS_PER_SEC;
cout << "Time taken : " << fixed << timetaken << "s" << endl;
return 0;
}
*/
// MergeSort
/*
#include <ctime>
#include <iostream>
using namespace std;
void merge(int arr[], int l, int m, int r) {
int i, j, k;
int n1 = m - l + 1;
int n2 = r - m;
int L[n1], R[n2];
for (i = 0; i < n1; i++)
L[i] = arr[l + i];
for (j = 0; j < n2; j++)
R[j] = arr[m + 1 + j];
i = 0;
j = 0;
k = l;
while (i < n1 && j < n2) {
if (L[i] <= R[j]) {
arr[k] = L[i];
i++;
}
else {
arr[k] = R[j];
j++;
}
k++;
}
while (i < n1) {
arr[k] = L[i];
i++;
k++;
}
while (j < n2) {
arr[k] = R[j];
j++;
k++;
}
}
void mergeSort(int arr[], int l, int r) {
if (l < r) {
int m = l + (r - l) / 2;
mergeSort(arr, l, m);
mergeSort(arr, m + 1, r);
merge(arr, l, m, r);
}
}
int main() {
int n;
cout << "Enter the size of the array: ";
cin >> n;
int arr[n];
cout << "Enter the elements of the array: ";
for (int i = 0; i < n; i++) {
cin >> arr[i];
}
int arr_size = sizeof(arr) / sizeof(arr[0]);
clock_t start;
clock_t end;
double timetaken;
start = clock();
mergeSort(arr, 0, arr_size - 1);
end = clock();
timetaken = (double)(end - start) / CLOCKS_PER_SEC;
.
I keep on get a redefinition error and an undefined error.Customer.pdfherminaherman
I keep on get a redefinition error and an undefined error.
Customer List
(1) CustomerList() and ~CustomerList() - default constructor and destructor.
(2) bool addStore(Store*s) - Add an instance of store to the linked list. Return true if successful.
(3) Store *removeStore(int ID) - Locate a Store in the list if it exists, remove and return it.
(4) Store *getStore(int ID) - Locate a Store in the list and return a pointer to it.
(5) bool updateStore(int ID, char *name, char *addr, char *city, char *st, char *zip) - Locate a
store in the list then update all its information. Return true if successful.
(6) void printStoreInfo() - Iterate over the list of store and have each print itself.
Employee Record
(1) Add a pointer to a class of type CustomerList called m_pCustomerList.
(2) Add a function CustomerList *getCustomerList to return the pointer to the
EmployeeRecord\'s CustomerList object.
-------------------------------------------------------------
CustomerList.h
#pragma once;
#include
#include \"Store.h\"
class CustomerList
{
public:
Store *m_pHead;
CustomerList();
~CustomerList();
bool addStore(Store *s);
Store *removeStore(int ID);
Store *getStore(int ID);
bool updateStore(int ID, char *name, char *addr, char *city, char *st, char *zip);
void printStoresInfo();
};
----------------------------------------------------------------------------
CustomerList.cpp
#include
#include \"CustomerList.h\"
#include \"Store.h\"
using namespace std;
CustomerList::CustomerList()
{
// Default constructor
}
CustomerList::~CustomerList()
{
// Destructor
}
bool CustomerList:: addStore(Store *s)
{
//creating a new instance
s = new Store();
if(s==NULL)
return true;
}
Store *CustomerList::removeStore(int ID)
{
Store *temp, *back;
temp = m_pHead;
back = NULL;
while((temp != NULL)&&(ID != temp ->getStoreID()))
{
back=temp;
temp=temp->m_pNext;
}
if(temp==NULL)
return NULL;
else if(back==NULL)
{
m_pHead = m_pHead ->m_pNext;
return temp;
}
else
{
back -> m_pNext = temp-> m_pNext;
return temp;
}
return NULL;
}
Store *CustomerList::getStore(int ID)
{
Store *temp;
temp = m_pHead;
while((temp != NULL) && (ID != temp ->getStoreID()))
{
temp = temp->m_pNext;
}
if(temp == NULL)
return NULL;
else
{
Store *retStore = new Store;
*retStore = *temp;
retStore->m_pNext = NULL;
return retStore;
}
}
bool CustomerList::updateStore(int ID, char *name, char *addr, char *city, char *st, char *zip)
{
return false;
}
void CustomerList::printStoresInfo()
{
Store *temp;
cout << \"
=====================================================================
================ \" << endl;
if(m_pHead== NULL)
cout << \" The List is currently empty.\ \" ;
else
{
temp = m_pHead;
while(temp != NULL)
{
cout << temp->m_pNext << endl;
}
}
}
--------------------------------------------------------------------------------
Store.h
#pragma once;
#include
#include
using namespace std;
class Store
{
private:
int m_iStoreID;
char m_sStoreName[64];
char m_sAddress[64];
char m_sCity[32];
char m_sState[32];
char m_sZip[.
This is a c++ binary search program I worked so far but still cant g.pdfkostikjaylonshaewe47
This is a c++ binary search program I worked so far but still cant get it right.
Can anyone help me? Big thanks!!
the client should not be modified
/*
*File: client.cpp
*Author: Yingwu Zhu
*Warning: do not change this file and use it as is.
*Last Modififcation: 10/21/2016
*/
#include
#include
#include
#include
#include
#include \"bst.h\"
using namespace std;
int main(int argc, char* argv[]) {
if (argc != 2) {
cout << \"Format: \" << argv[0] << \" [data file]\" << endl;
return 0;
}
ifstream fin(argv[1]);
int cases;
fin >> cases;
int passed = 0;
for (int i = 1; i <= cases; i++) {
cout << \"Checking test case #\" << i << \" ... \";
BST T;
set S;
int n, x;
fin >> n;
bool ok = true;
vector tmp;
int rem = 0;
for (int j = 0; j < n; j++) {
fin >> x;
T.Insert(x);
S.insert(x);
ok &= (T.Search(x) && T.RecurSearch(x));
if (tmp.empty())
tmp.push_back(x);
if (rand()%10 < 3) {
T.Erase(tmp[0]);
S.erase(tmp[0]);
ok &= (T.Search(tmp[0]) == false);
tmp.pop_back();
rem++;
}
}
if (rem
ok &= (T.MaxElement() == *S.rbegin());
while (!S.empty() && !T.Empty()) {
int x = T.MinElement();
ok &= (x == *S.begin());
T.Erase(x);
S.erase(S.begin());
}
cout << (ok ? \"Passed!\" : \"Failed\") << endl;
passed += ok;
}
cout << passed << \" of \" << cases << \" test cases have passed!\ \";
if (passed == cases)
cout << endl << \"Congratulations! Good to Submit Your Code\ \";
else if ((double)passed/cases >= 0.95)
cout << endl << \"You are almost there, but need to fix some bugs.\ \";
else
cout << endl << \"Your code needs a lot of fixes for submission\ \";
return 0;
}
=====================================================================
=======
//bst.h
#ifndef _BST_H_
#define _BST_H_
#include
using namespace std;
class BST {
private:
class Node {
public:
int data;
Node* left;
Node* right;
};
Node* root; //root node pointer
//you may add your auxiliary functions here!
public:
BST(); //constructor
~BST(); //destructor
bool Empty() const;
void Insert(int val);
int MinElement() const;
int MaxElement() const;
bool Search(int val) const;
bool RecurSearch(int val) const;
void Erase(int val);
};
#endif
=====================================================================
=======
/*
bst.cpp
Subject: Binary Seach Tree
Modification Time:10/26/2016
*/
#include
#include\"bst.h\"
using namespace std;
BST::BST(){
root= NULL;
}
BST::~BST(){
delete root;
delete root->left;
delete root->right;
}
bool BST::Empty() const {
return data;
}
void BST::Insert(int val){
Node* p= new Node;
p->data= val;
Node* cur = root;
if(val < cur->data){
cur = cur -> left;
}
else{
right->next=val;
}
}
int BST::MinElement() const {
Node* cur;
while(cur->left != NULL){
cur = cur->left;
}
return(cur->data);
}
int BST::MaxElement() const{
if(root==NULL){
return 0;
}
if(root->left>root->data){
root->data=root->right;
}
else if(root->right>root->data){
root->data=root->right;
}
return root->data;
}
bool BST:: Search(int val) const{
Node* cur;
cur = root;
while(cur!=NULL){
if(cur->data == val){
return true;
}
else if(cur->data .
Complete DB code following the instructions Implement the D.pdfaccess2future1
Complete DB code following the instructions:
Implement the DB and use the unittest_db() function to test it. DO NOT CHANGE THIS CODE
FOR YOUR SUBMISSION, as it will be used to test your code against the answers (with different
input files).
a) The student ID should be the base class's key member.
b) The student ID should be automatically assigned such that the ID/key should be n if the student
is the nth student to join the school. If the student later leaves (i.e., deleted from the BST), the ID
does NOT get reassigned to another student. Thus, the student ID of the last student to join the
school should reflect the TOTAL number of students that have joined this school since its
reception (regardless of whether some have left).
5. Test your code against the provided input and output files.
a) The provided answer for the BST unit test is in "unittest_ans_t100_s100.txt". The s100 refers to
the seed of 100 (-s 100), and t100 refers to the number of elements to add to the BST (-t 100).
b) The provided answer for the DB is in "students_1_ans.txt" for the "students_1.txt" input file.
6. Make sure your code has no memory leaks (using valgrind).
7. Your code should work beyond the provided unit tests. That is, even if it does work for all the
given tests, if the code has an identifiable bug (i.e., by reading the source code), points WILL be
deducted.
For example, if I were to change
unittest_bst(num_test, seed, cout, 5); ->
unittest_bst(num_test, seed, cout, 100);
it should still work.
db.h
#ifndef DB_H_
#define DB_H_
#include <iostream>
#include "bst.h"
using namespace std;
class SNode : public Node {
private:
string first;
string last;
unsigned int age;
static unsigned int num_students;
public:
// Constructors and destructor
SNode();
SNode(string f_, string l_, unsigned int a_);
~SNode();
// public interface
void change_first(string f_);
void change_last(string l_);
string get_first();
string get_last();
unsigned int get_age();
void print_info(ostream& to);
};
#endif
main.cc
#include <iostream>
#include <fstream>
#include <string>
#include <sstream>
#include <vector>
#include <algorithm>
#include <getopt.h>
#include "bst.h"
#include "db.h"
using namespace std;
const char* const short_opt = ":ht:s:i:o:";
const struct option long_opt[] = {
{"help", 0, NULL, 'h'},
{"test", 1, NULL, 't'},
{"seed", 1, NULL, 's'},
{"input", 1, NULL, 'i'},
{"output", 1, NULL, 'o'},
{NULL, 0, NULL, 0}
};
void usage(char* argv);
void unittest_bst(unsigned int n, unsigned int seed, ostream& to,
unsigned int remain);
bool read_db(const string file_name, vector<string>& firsts,
vector<string>& lasts, vector<unsigned int>& ages);
void create_db(BST& db, const vector<string> f_, const vector<string> l_,
const vector<unsigned int> a_);
bool unittest_db(string ifile_name, string ofile_name);
/* Main function
*/
int main(int argc, char **argv)
{
int c = 0;
string test = "0";
string seed_str = "0";
string ifile_name;
string ofile_name;
if(argc < 2) {
usage(argv[0]);
return 0;
}
whil.
Presented at ACCU Oxford (14th September 2015)
Functional C++? As opposed to what — dysfunctional? Well, kind of, yeah. Sure, in C++ the principal unit of composition is called a function, but that doesn't mean it's a functional language. And the idea of restricting mutability of state gets a nod with const, but it's a nod not a hug. And the STL shows influences of functional programming, although it falls short of being compositional. And, yes, sure, C++11 has lambdas, but then again, these days, who doesn't? Lambda calculus was invented in the 1930s.
This talk looks at how to express functional programming ideas in (post)modern C++ in a way that can be considered idiomatic to C++, rather than trying to use the power of overloading and meta-programming to pretend C++ is Haskell or Lisp. In short, immutability beyond const and into shared and persistent data structures, concurrency beyond threading and locks, and thinking about functions as transformations and units of composition rather than actions.
Can you finish and write the int main for the code according to the in.pdfaksachdevahosymills
Can you finish and write the int main for the code according to the instruction Thank you so
much.
Here's the code for the BSTNode ADT and BST implementation:
#include <iostream>
#include <fstream>
#include <queue>
using namespace std;
// Krone class
class Krone {
private:
int wholeValue;
int fractionalValue;
public:
Krone() {}
Krone(int whole, int fraction) : wholeValue(whole), fractionalValue(fraction) {}
int getWhole() const { return wholeValue; }
int getFraction() const { return fractionalValue; }
bool operator<(const Krone& other) const {
if (wholeValue < other.wholeValue) {
return true;
} else if (wholeValue == other.wholeValue) {
return fractionalValue < other.fractionalValue;
} else {
return false;
}
}
friend ostream& operator<<(ostream& out, const Krone& krone) {
out << "Kr " << krone.wholeValue << "." << krone.fractionalValue;
return out;
}
};
// BST Node class
class BSTNode {
private:
Krone data;
BSTNode* left;
BSTNode* right;
public:
BSTNode() {}
BSTNode(const Krone& krone) : data(krone), left(nullptr), right(nullptr) {}
Krone getData() const { return data; }
BSTNode* getLeft() const { return left; }
BSTNode* getRight() const { return right; }
void setData(const Krone& krone) { data = krone; }
void setLeft(BSTNode* node) { left = node; }
void setRight(BSTNode* node) { right = node; }
};
// BST class
class BST {
private:
BSTNode* root;
public:
BST() : root(nullptr) {}
BSTNode* getRoot() const { return root; }
bool isEmpty() const { return root == nullptr; }
int countNodes(BSTNode* node) const {
if (node == nullptr) {
return 0;
} else {
return 1 + countNodes(node->getLeft()) + countNodes(node->getRight());
}
}
void empty(BSTNode* node) {
if (node != nullptr) {
empty(node->getLeft());
empty(node->getRight());
delete node;
}
}
void insertNode(const Krone& krone) {
BSTNode* node = new BSTNode(krone);
if (isEmpty()) {
root = node;
} else {
BSTNode* currNode = root;
while (true) {
if (krone < currNode->getData()) {
if (currNode->getLeft() == nullptr) {
currNode->setLeft(node);
break;
} else {
currNode = currNode->getLeft();
}
} else {
if (currNode->getRight() == nullptr) {
currNode->setRight(node);
break;
} else {
currNode = currNode->getRight();
}
}
}
}
}
BSTNode* searchNode(const Krone& krone) const {
BSTNode* currNode = root;
while (currNode != nullptr) {
Declare and implement a BSTNode ADT with a data attribute and two pointer attributes, one for
the left child and the other for the right child. Implement the usual getters/setters for these
attributes.
Declare and implement a BST as a link-based ADT whose data will be Krone objects - the data
will be inserted based on the actual money value of your Krone objects as a combination of the
whole value and fractional value attributes.
For the BST, implement the four traversal methods as well as methods for the usual search,
insert, delete, print, count, isEmpty, empty operations and any other needed.
Your pgm will use the following 20 Krone objects to be created in the exact order in your.
it is and slide contains Save to your mobile device with our new app
Don't have time to read now? Save SlideShares to read later or offline - anytime, anywhere.
dding more information (description, tags, category) makes it easier for others to find your content. The score increases as you add each item.
This pdf shows some part of the code of my private stand-alone C++ library, in particular the implementation of a Libor Market Model, with a term structure of skew and stochastic volatility. It runs on a simple laptop! The underlying Monte Carlo engine is a piece of art that I managed to replicate from SCB's C++ library without any remote access or usb key, only:
1. from memory and a couple of double-sided 'cheat cheets'
2. a week-end day at the office in April 2016 to make some comparison tests to make the calculation results perfectly in line with those from the Bank's library (with 1.0e-8 accuracy).
Credits for the Libor Market Model go to me, credits for the Monte Carlo engine go to the quants who made it at Standard Chartered. This pdf shows some partial code of the Libor Market Model ONLY (obviously I keep the code of the MC engine secret since I am not the author of it).
QuantActive 2016. VIEW ONLY (DOWNLOAD MODE DEACTIVATED ).
(U) WHAT INSIGHTS ARE DERIVED FROM OPERATION ANACONDA IN REGARDS TMoseStaton39
(U) WHAT INSIGHTS ARE DERIVED FROM OPERATION ANACONDA IN REGARDS TO THE NCO COMMON CORE COMPENTENCY (NCOCCC) OF OPERATIONS?
The NCOCCC of Operations is a combination of operational skill sets that, when mastered by senior leaders can save lives and ensure effective unified action. Some of its key tenets include: Large-scale combat operations; understanding operational and mission variables; resolving complex, ill-structured problems with the use of Mission Command; and understanding how to integrate the different branches of the military into successful joint operations (Department of the Army [DA], 2020, pp. 2-3). This final principle of conducting joint operations becomes increasingly important as contemporary conflicts continue to venture further into the realm of multi-domain warfare (Marr, 2018, pp. 10-11). In order to execute such a complex task, Joint Force Commanders (JFC) must “integrate, synchronize, and direct joint operations” through the use of seven Joint Functions (Joint Chiefs of Staff [JCS], 2017, p. III-1). One of these functions, Command and Control, is how the JFC directs the forces toward accomplishment of the mission, and its essential task is to “Communicate and ensure the flow of information across the staff and joint force” (JCS, 2017, p. III-2). This task is critical to the creation of a shared understanding, which allows the separate branches to work seamlessly together toward a common goal. The absence of this unifying component hinders missions and increases casualties. In Operation ANACONDA, JFC Major General (MG) Hagenbeck failed to create such a shared understanding with his subordinate Air Force assets, which contributed to increasing the amount of casualties his forces incurred. Although the warning order was published on 6 January, MG Hagenbeck did not notify the Combined Force Air Component Commander of Operation ANACONDA until 23 February, just days before the operation began (Fleri et al., 2003). This failure to ensure the flow of information across the joint force, caused downstream effects in planning and preparation that led to diminished air support during the initial stages of the operation. As noted by Lambeth (2005) in his comprehensive analysis, “because so little air support had been requested…coalition troops entered the fight virtually unprotected by any preparatory and suppressive fire” (pp. 204-205). Operation Anaconda provides a clear case of how proficiency in the realm of Operations can result in fewer U.S. casualties.
M451: Decisive Action
Case Study Defense Support of Civil Authorities
1. Scenario
Good morning, welcome to VNN -- local officials are celebrating this morning as a new industrial
park is being christened in our community, there’s a ribbon-cutting scheduled for 10am this
morning. Officials say the new Hampton Industrial Park will bring millions of dollars of new tax
revenues and thousands of new jobs to state and local communities. But a group of activi ...
(Remarks)Please keep in mind that the assiMoseStaton39
(Remarks)
Please keep in mind that the assignment states, "Each of your sections’ content must be at least one full page in length, in Times New Roman 12-pt. font, double-spaced, with 1” margins." When you turn something in that is about half of the required length, you take a bit of a double hit. The first hit is for not meeting minimum expectations for the assignment. The second hit is for not going into as much detail as needed to get a high grade. I can see that you are ahead on the sections. That is not a problem as those have not been graded yet. However, understand that as is, they will also have significant point deductions.
1
4
A Pollution Prevention Plan (P3) Pre-Assessment Study
[Student name here…remove brackets]
Columbia Southern University
ENV 4301: Pollution Prevention
[Instructor name here…remove brackets]
[Date here…remove brackets]
Abstract
Block one full paragraph (no indenting the first line or any subsequent lines). Provide one full sentence here for each unit as you complete a level 1 heading section, describing what material or calculations were presented in that section. By the time the Unit VII material is complete, you will have six or seven sentences in this abstract (one for each unit, for Units II–VII).
Pollution Prevention Plan (P3) Pre-Assessment Study
General Operational Characteristics
Start typing here for Unit II in non-italicized font (despite the different font types and sizes allowed with APA 7th edition, please stay in Times New Roman 12-pt. font for this document, since this template is already in that font and size), citing with
CSU APA Citation Guide p. 6 styled citations to defend what you state as fact.
Potential Ecological Health Impacts
Fill this in for Unit II. Remove each blank section before submittal in each unit.
Potential Human Health Impacts
Fill this in for Unit III.
Potential Societal Health Impacts
Fill this in for Unit IV.
Risk Assessment and Regulatory Requirements
Fill this in for Unit V.
Pollution Prevention Technologies
Fill this in for Unit VI.
Engineering Opportunities for Pollution Prevention
Fill this in for Unit VII.
References
Brusseau, M. L., Pepper, I. L., & Gerba, C. P. (2019).
Environmental and pollution science (3rd ed.). Academic Press. https://online.vitalsource.com/#/books/9780128147207
List additional references here alphabetically (you may need to list some before the textbook reference). Be sure to double-space and use a hanging indent for each subsequent line in each reference entry, formatting according to CSU APA Citation Guide pp. 8–11.
1
4
A Pollution Prevention Plan (P4) Pre-Assessment Study
Abstract
This undertaking essentially entails a Pre-Assessment study on behalf of the board of directors at ABC Agriculture Production Inc; it explores the general operational characteristics, potential ecological health effects, potential human health impacts, potential societal health impacts, risk ...
More Related Content
Similar to #include Status.hnamespace sdds{StatusStatus(c
This is a c++ binary search program I worked so far but still cant g.pdfkostikjaylonshaewe47
This is a c++ binary search program I worked so far but still cant get it right.
Can anyone help me? Big thanks!!
the client should not be modified
/*
*File: client.cpp
*Author: Yingwu Zhu
*Warning: do not change this file and use it as is.
*Last Modififcation: 10/21/2016
*/
#include
#include
#include
#include
#include
#include \"bst.h\"
using namespace std;
int main(int argc, char* argv[]) {
if (argc != 2) {
cout << \"Format: \" << argv[0] << \" [data file]\" << endl;
return 0;
}
ifstream fin(argv[1]);
int cases;
fin >> cases;
int passed = 0;
for (int i = 1; i <= cases; i++) {
cout << \"Checking test case #\" << i << \" ... \";
BST T;
set S;
int n, x;
fin >> n;
bool ok = true;
vector tmp;
int rem = 0;
for (int j = 0; j < n; j++) {
fin >> x;
T.Insert(x);
S.insert(x);
ok &= (T.Search(x) && T.RecurSearch(x));
if (tmp.empty())
tmp.push_back(x);
if (rand()%10 < 3) {
T.Erase(tmp[0]);
S.erase(tmp[0]);
ok &= (T.Search(tmp[0]) == false);
tmp.pop_back();
rem++;
}
}
if (rem
ok &= (T.MaxElement() == *S.rbegin());
while (!S.empty() && !T.Empty()) {
int x = T.MinElement();
ok &= (x == *S.begin());
T.Erase(x);
S.erase(S.begin());
}
cout << (ok ? \"Passed!\" : \"Failed\") << endl;
passed += ok;
}
cout << passed << \" of \" << cases << \" test cases have passed!\ \";
if (passed == cases)
cout << endl << \"Congratulations! Good to Submit Your Code\ \";
else if ((double)passed/cases >= 0.95)
cout << endl << \"You are almost there, but need to fix some bugs.\ \";
else
cout << endl << \"Your code needs a lot of fixes for submission\ \";
return 0;
}
=====================================================================
=======
//bst.h
#ifndef _BST_H_
#define _BST_H_
#include
using namespace std;
class BST {
private:
class Node {
public:
int data;
Node* left;
Node* right;
};
Node* root; //root node pointer
//you may add your auxiliary functions here!
public:
BST(); //constructor
~BST(); //destructor
bool Empty() const;
void Insert(int val);
int MinElement() const;
int MaxElement() const;
bool Search(int val) const;
bool RecurSearch(int val) const;
void Erase(int val);
};
#endif
=====================================================================
=======
/*
bst.cpp
Subject: Binary Seach Tree
Modification Time:10/26/2016
*/
#include
#include\"bst.h\"
using namespace std;
BST::BST(){
root= NULL;
}
BST::~BST(){
delete root;
delete root->left;
delete root->right;
}
bool BST::Empty() const {
return data;
}
void BST::Insert(int val){
Node* p= new Node;
p->data= val;
Node* cur = root;
if(val < cur->data){
cur = cur -> left;
}
else{
right->next=val;
}
}
int BST::MinElement() const {
Node* cur;
while(cur->left != NULL){
cur = cur->left;
}
return(cur->data);
}
int BST::MaxElement() const{
if(root==NULL){
return 0;
}
if(root->left>root->data){
root->data=root->right;
}
else if(root->right>root->data){
root->data=root->right;
}
return root->data;
}
bool BST:: Search(int val) const{
Node* cur;
cur = root;
while(cur!=NULL){
if(cur->data == val){
return true;
}
else if(cur->data .
Complete DB code following the instructions Implement the D.pdfaccess2future1
Complete DB code following the instructions:
Implement the DB and use the unittest_db() function to test it. DO NOT CHANGE THIS CODE
FOR YOUR SUBMISSION, as it will be used to test your code against the answers (with different
input files).
a) The student ID should be the base class's key member.
b) The student ID should be automatically assigned such that the ID/key should be n if the student
is the nth student to join the school. If the student later leaves (i.e., deleted from the BST), the ID
does NOT get reassigned to another student. Thus, the student ID of the last student to join the
school should reflect the TOTAL number of students that have joined this school since its
reception (regardless of whether some have left).
5. Test your code against the provided input and output files.
a) The provided answer for the BST unit test is in "unittest_ans_t100_s100.txt". The s100 refers to
the seed of 100 (-s 100), and t100 refers to the number of elements to add to the BST (-t 100).
b) The provided answer for the DB is in "students_1_ans.txt" for the "students_1.txt" input file.
6. Make sure your code has no memory leaks (using valgrind).
7. Your code should work beyond the provided unit tests. That is, even if it does work for all the
given tests, if the code has an identifiable bug (i.e., by reading the source code), points WILL be
deducted.
For example, if I were to change
unittest_bst(num_test, seed, cout, 5); ->
unittest_bst(num_test, seed, cout, 100);
it should still work.
db.h
#ifndef DB_H_
#define DB_H_
#include <iostream>
#include "bst.h"
using namespace std;
class SNode : public Node {
private:
string first;
string last;
unsigned int age;
static unsigned int num_students;
public:
// Constructors and destructor
SNode();
SNode(string f_, string l_, unsigned int a_);
~SNode();
// public interface
void change_first(string f_);
void change_last(string l_);
string get_first();
string get_last();
unsigned int get_age();
void print_info(ostream& to);
};
#endif
main.cc
#include <iostream>
#include <fstream>
#include <string>
#include <sstream>
#include <vector>
#include <algorithm>
#include <getopt.h>
#include "bst.h"
#include "db.h"
using namespace std;
const char* const short_opt = ":ht:s:i:o:";
const struct option long_opt[] = {
{"help", 0, NULL, 'h'},
{"test", 1, NULL, 't'},
{"seed", 1, NULL, 's'},
{"input", 1, NULL, 'i'},
{"output", 1, NULL, 'o'},
{NULL, 0, NULL, 0}
};
void usage(char* argv);
void unittest_bst(unsigned int n, unsigned int seed, ostream& to,
unsigned int remain);
bool read_db(const string file_name, vector<string>& firsts,
vector<string>& lasts, vector<unsigned int>& ages);
void create_db(BST& db, const vector<string> f_, const vector<string> l_,
const vector<unsigned int> a_);
bool unittest_db(string ifile_name, string ofile_name);
/* Main function
*/
int main(int argc, char **argv)
{
int c = 0;
string test = "0";
string seed_str = "0";
string ifile_name;
string ofile_name;
if(argc < 2) {
usage(argv[0]);
return 0;
}
whil.
Presented at ACCU Oxford (14th September 2015)
Functional C++? As opposed to what — dysfunctional? Well, kind of, yeah. Sure, in C++ the principal unit of composition is called a function, but that doesn't mean it's a functional language. And the idea of restricting mutability of state gets a nod with const, but it's a nod not a hug. And the STL shows influences of functional programming, although it falls short of being compositional. And, yes, sure, C++11 has lambdas, but then again, these days, who doesn't? Lambda calculus was invented in the 1930s.
This talk looks at how to express functional programming ideas in (post)modern C++ in a way that can be considered idiomatic to C++, rather than trying to use the power of overloading and meta-programming to pretend C++ is Haskell or Lisp. In short, immutability beyond const and into shared and persistent data structures, concurrency beyond threading and locks, and thinking about functions as transformations and units of composition rather than actions.
Can you finish and write the int main for the code according to the in.pdfaksachdevahosymills
Can you finish and write the int main for the code according to the instruction Thank you so
much.
Here's the code for the BSTNode ADT and BST implementation:
#include <iostream>
#include <fstream>
#include <queue>
using namespace std;
// Krone class
class Krone {
private:
int wholeValue;
int fractionalValue;
public:
Krone() {}
Krone(int whole, int fraction) : wholeValue(whole), fractionalValue(fraction) {}
int getWhole() const { return wholeValue; }
int getFraction() const { return fractionalValue; }
bool operator<(const Krone& other) const {
if (wholeValue < other.wholeValue) {
return true;
} else if (wholeValue == other.wholeValue) {
return fractionalValue < other.fractionalValue;
} else {
return false;
}
}
friend ostream& operator<<(ostream& out, const Krone& krone) {
out << "Kr " << krone.wholeValue << "." << krone.fractionalValue;
return out;
}
};
// BST Node class
class BSTNode {
private:
Krone data;
BSTNode* left;
BSTNode* right;
public:
BSTNode() {}
BSTNode(const Krone& krone) : data(krone), left(nullptr), right(nullptr) {}
Krone getData() const { return data; }
BSTNode* getLeft() const { return left; }
BSTNode* getRight() const { return right; }
void setData(const Krone& krone) { data = krone; }
void setLeft(BSTNode* node) { left = node; }
void setRight(BSTNode* node) { right = node; }
};
// BST class
class BST {
private:
BSTNode* root;
public:
BST() : root(nullptr) {}
BSTNode* getRoot() const { return root; }
bool isEmpty() const { return root == nullptr; }
int countNodes(BSTNode* node) const {
if (node == nullptr) {
return 0;
} else {
return 1 + countNodes(node->getLeft()) + countNodes(node->getRight());
}
}
void empty(BSTNode* node) {
if (node != nullptr) {
empty(node->getLeft());
empty(node->getRight());
delete node;
}
}
void insertNode(const Krone& krone) {
BSTNode* node = new BSTNode(krone);
if (isEmpty()) {
root = node;
} else {
BSTNode* currNode = root;
while (true) {
if (krone < currNode->getData()) {
if (currNode->getLeft() == nullptr) {
currNode->setLeft(node);
break;
} else {
currNode = currNode->getLeft();
}
} else {
if (currNode->getRight() == nullptr) {
currNode->setRight(node);
break;
} else {
currNode = currNode->getRight();
}
}
}
}
}
BSTNode* searchNode(const Krone& krone) const {
BSTNode* currNode = root;
while (currNode != nullptr) {
Declare and implement a BSTNode ADT with a data attribute and two pointer attributes, one for
the left child and the other for the right child. Implement the usual getters/setters for these
attributes.
Declare and implement a BST as a link-based ADT whose data will be Krone objects - the data
will be inserted based on the actual money value of your Krone objects as a combination of the
whole value and fractional value attributes.
For the BST, implement the four traversal methods as well as methods for the usual search,
insert, delete, print, count, isEmpty, empty operations and any other needed.
Your pgm will use the following 20 Krone objects to be created in the exact order in your.
it is and slide contains Save to your mobile device with our new app
Don't have time to read now? Save SlideShares to read later or offline - anytime, anywhere.
dding more information (description, tags, category) makes it easier for others to find your content. The score increases as you add each item.
This pdf shows some part of the code of my private stand-alone C++ library, in particular the implementation of a Libor Market Model, with a term structure of skew and stochastic volatility. It runs on a simple laptop! The underlying Monte Carlo engine is a piece of art that I managed to replicate from SCB's C++ library without any remote access or usb key, only:
1. from memory and a couple of double-sided 'cheat cheets'
2. a week-end day at the office in April 2016 to make some comparison tests to make the calculation results perfectly in line with those from the Bank's library (with 1.0e-8 accuracy).
Credits for the Libor Market Model go to me, credits for the Monte Carlo engine go to the quants who made it at Standard Chartered. This pdf shows some partial code of the Libor Market Model ONLY (obviously I keep the code of the MC engine secret since I am not the author of it).
QuantActive 2016. VIEW ONLY (DOWNLOAD MODE DEACTIVATED ).
(U) WHAT INSIGHTS ARE DERIVED FROM OPERATION ANACONDA IN REGARDS TMoseStaton39
(U) WHAT INSIGHTS ARE DERIVED FROM OPERATION ANACONDA IN REGARDS TO THE NCO COMMON CORE COMPENTENCY (NCOCCC) OF OPERATIONS?
The NCOCCC of Operations is a combination of operational skill sets that, when mastered by senior leaders can save lives and ensure effective unified action. Some of its key tenets include: Large-scale combat operations; understanding operational and mission variables; resolving complex, ill-structured problems with the use of Mission Command; and understanding how to integrate the different branches of the military into successful joint operations (Department of the Army [DA], 2020, pp. 2-3). This final principle of conducting joint operations becomes increasingly important as contemporary conflicts continue to venture further into the realm of multi-domain warfare (Marr, 2018, pp. 10-11). In order to execute such a complex task, Joint Force Commanders (JFC) must “integrate, synchronize, and direct joint operations” through the use of seven Joint Functions (Joint Chiefs of Staff [JCS], 2017, p. III-1). One of these functions, Command and Control, is how the JFC directs the forces toward accomplishment of the mission, and its essential task is to “Communicate and ensure the flow of information across the staff and joint force” (JCS, 2017, p. III-2). This task is critical to the creation of a shared understanding, which allows the separate branches to work seamlessly together toward a common goal. The absence of this unifying component hinders missions and increases casualties. In Operation ANACONDA, JFC Major General (MG) Hagenbeck failed to create such a shared understanding with his subordinate Air Force assets, which contributed to increasing the amount of casualties his forces incurred. Although the warning order was published on 6 January, MG Hagenbeck did not notify the Combined Force Air Component Commander of Operation ANACONDA until 23 February, just days before the operation began (Fleri et al., 2003). This failure to ensure the flow of information across the joint force, caused downstream effects in planning and preparation that led to diminished air support during the initial stages of the operation. As noted by Lambeth (2005) in his comprehensive analysis, “because so little air support had been requested…coalition troops entered the fight virtually unprotected by any preparatory and suppressive fire” (pp. 204-205). Operation Anaconda provides a clear case of how proficiency in the realm of Operations can result in fewer U.S. casualties.
M451: Decisive Action
Case Study Defense Support of Civil Authorities
1. Scenario
Good morning, welcome to VNN -- local officials are celebrating this morning as a new industrial
park is being christened in our community, there’s a ribbon-cutting scheduled for 10am this
morning. Officials say the new Hampton Industrial Park will bring millions of dollars of new tax
revenues and thousands of new jobs to state and local communities. But a group of activi ...
(Remarks)Please keep in mind that the assiMoseStaton39
(Remarks)
Please keep in mind that the assignment states, "Each of your sections’ content must be at least one full page in length, in Times New Roman 12-pt. font, double-spaced, with 1” margins." When you turn something in that is about half of the required length, you take a bit of a double hit. The first hit is for not meeting minimum expectations for the assignment. The second hit is for not going into as much detail as needed to get a high grade. I can see that you are ahead on the sections. That is not a problem as those have not been graded yet. However, understand that as is, they will also have significant point deductions.
1
4
A Pollution Prevention Plan (P3) Pre-Assessment Study
[Student name here…remove brackets]
Columbia Southern University
ENV 4301: Pollution Prevention
[Instructor name here…remove brackets]
[Date here…remove brackets]
Abstract
Block one full paragraph (no indenting the first line or any subsequent lines). Provide one full sentence here for each unit as you complete a level 1 heading section, describing what material or calculations were presented in that section. By the time the Unit VII material is complete, you will have six or seven sentences in this abstract (one for each unit, for Units II–VII).
Pollution Prevention Plan (P3) Pre-Assessment Study
General Operational Characteristics
Start typing here for Unit II in non-italicized font (despite the different font types and sizes allowed with APA 7th edition, please stay in Times New Roman 12-pt. font for this document, since this template is already in that font and size), citing with
CSU APA Citation Guide p. 6 styled citations to defend what you state as fact.
Potential Ecological Health Impacts
Fill this in for Unit II. Remove each blank section before submittal in each unit.
Potential Human Health Impacts
Fill this in for Unit III.
Potential Societal Health Impacts
Fill this in for Unit IV.
Risk Assessment and Regulatory Requirements
Fill this in for Unit V.
Pollution Prevention Technologies
Fill this in for Unit VI.
Engineering Opportunities for Pollution Prevention
Fill this in for Unit VII.
References
Brusseau, M. L., Pepper, I. L., & Gerba, C. P. (2019).
Environmental and pollution science (3rd ed.). Academic Press. https://online.vitalsource.com/#/books/9780128147207
List additional references here alphabetically (you may need to list some before the textbook reference). Be sure to double-space and use a hanging indent for each subsequent line in each reference entry, formatting according to CSU APA Citation Guide pp. 8–11.
1
4
A Pollution Prevention Plan (P4) Pre-Assessment Study
Abstract
This undertaking essentially entails a Pre-Assessment study on behalf of the board of directors at ABC Agriculture Production Inc; it explores the general operational characteristics, potential ecological health effects, potential human health impacts, potential societal health impacts, risk ...
(This is provided as an example of the paper layout and spacMoseStaton39
(This is provided as an example of the paper layout and spacing. No running header required
for this report. Don’t add graphic title pages or additional embellishments. Follow complete
instructions provided for each staged assignment. Note: The BA&SR report is a business
report, and you will be expected to follow the specific formatting guidelines that are shown
in the assignment instructions. This report should be typed and double-spaced on standard-
sized paper (8.5" x 11"), with 1" margins on all sides. You should use a font consistently
throughout the paper. APA recommends using either a sans serif font such as 11-point Calibri,
11-point Arial, or 10-point Lucida Sans Unicode, or a serif font such as 12-point Times New
Roman, 11-point Georgia, or 10-point Computer Modern.
(Title page – centered horizontally and vertically; no running head required)
Title of Report
Company Name
Your Name
Course and Section #
Date of Submission
1
Introduction
(Begin your report with a clear, concise, well organized introduction to explain why you are
writing and what is to come in the complete BA&SR report (not just Stage 1). This should
briefly set the context for MTC – business purpose, environment, and current challenges related
to hiring. Then specifically provide what is to come in the full report. Keep your audience in
mind – this is an internal report for the CIO of MTC. Provide an introduction in one paragraph
that engages the reader’s interest in continuing to read your report.)
I. Strategic Use of Technology
A. Business Strategy
(In this section, you should clearly present – at a broad level – what MTC’s
business strategy is (refer to case study information), then what issues the current
manual hiring process may present that interfere with achieving that strategy, and
how improving the hiring process will benefit MTC and support its business
strategy. (Use two to three strong sentences that explain how the system would
support the strategy and justify your position with specifics from the Case Study.)
B. Competitive Advantage
(First, provide an overview of the competitive environment that MTC is currently
operating in based on information from the case study. Then explain how and
why MTC can use the new hiring system to increase its competitive advantage
and help achieve its overall business strategy. Your explanation should
demonstrate your understanding of what competitive advantage is as well as how
improving the hiring process will help achieve MTC’s competitive advantage.
Include how MTC can use the type of data or information that will be in the
2
hiring system to improve its competitive advantage. (Paragraph of 4-5
sentences))
C. Strategic Objectives
(First, insert an introductory opening sentence for this table. Then, for each of the
rows listed below, complete the table with the requested information. (Pr ...
(Student Name)Date of EncounterPreceptorClinical SiteClMoseStaton39
(Student Name)
Date of Encounter:
Preceptor/Clinical Site:
Clinical Instructor: Grivel J. Hera Gomez APRN, FNP-C
Soap Note # ____ Main Diagnosis ______________
PATIENT INFORMATION
Name:
Age:
Gender at Birth:
Gender Identity:
Source:
Allergies:
Current Medications:
·
PMH:
Immunizations:
Preventive Care:
Surgical History:
Family History:
Social History:
Sexual Orientation:
Nutrition History:
Subjective Data:
Chief Complaint:
Symptom analysis/HPI:
The patient is …
Review of Systems (ROS)
CONSTITUTIONAL:
NEUROLOGIC:
HEENT:
RESPIRATORY:
CARDIOVASCULAR:
GASTROINTESTINAL:
GENITOURINARY:
MUSCULOSKELETAL:
SKIN:
Objective Data:
VITAL SIGNS:
GENERAL APPREARANCE:
NEUROLOGIC:
HEENT:
CARDIOVASCULAR:
RESPIRATORY:
GASTROINTESTINAL:
MUSKULOSKELETAL:
INTEGUMENTARY:
ASSESSMENT:
Main Diagnosis
(Include the name of your Main Diagnosis along with its ICD10 I10. (Look at PDF example provided) Include the in-text reference/s as per APA style 6th or 7th Edition.
Differential diagnosis (minimum 3)
-
-
-
PLAN:
Labs and Diagnostic Test to be ordered (if applicable)
· -
· -
Pharmacological treatment:
-
Non-Pharmacologic treatment:
Education (provide the most relevant ones tailored to your patient)
Follow-ups/Referrals
References (in APA Style)
Examples
Codina Leik, M. T. (2014). Family Nurse Practitioner Certification Intensive Review (2nd ed.).
ISBN 978-0-8261-3424-0
Domino, F., Baldor, R., Golding, J., Stephens, M. (2010). The 5-Minute Clinical Consult 2010
(25th ed.). Print (The 5-Minute Consult Series).
(Student Name)
Date of Encounter:
Preceptor/Clinical Site:
Clinical Instructor: Dr. David Trabanco DNP, APRN, AGNP-C, FNP-C
Soap Note # Main Diagnosis ( Exp: Soap Note #3 DX: Hypertension)
PATIENT INFORMATION
Name: Mr. DT
Age: 68-year-old
Gender at Birth: Male
Gender Identity: Male
Source: Patient
Allergies: PCN, Iodine
Current Medications:
· Atorvastatin tab 20 mg, 1-tab PO at bedtime
· ASA 81mg po daily
· Multi-Vitamin Centrum Silver
PMH: Hypercholesterolemia
Immunizations: Influenza last 2018-year, tetanus, and hepatitis A and B 4 years ago.
Preventive Care: Coloscopy 5 years ago (Negative)
Surgical History: Appendectomy 47 years ago.
Family History: Father- died 81 does not report information
Mother-alive, 88 years old, Diabetes Mellitus, HTN
Daughter-alive, 34 years old, healthy
Social History: No smoking history or illicit drug use, occasional alcoholic beverage consumption on social celebrations. Retired, widow, he lives alone.
Sexual Orientation: Straight
Nutrition History: Diets off and on, Does not each seafood
Subjective Data:
Chief Complaint: “headaches” that started two weeks ago
Symptom analysis/HPI:
The patient is 65 years old male who complaining of episodes of headaches and on 3 different occasions blood pressure was measured, which was high (159/100, 158/98 and 160/100 respectively). Patient noticed the problem started two weeks ago and somet ...
(TITLE)Sung Woo ParkInternational American UniversityFINMoseStaton39
(TITLE)
Sung Woo Park
International American University
FIN 500: Financial management
Vahick Yedgarian, Ph.D., J.D., M.B.A., M.S.
April 15th, 2021
TITLE
According to the market analysis of Walmart, the retail firm is considered an unstoppable retail force. It is ranked as the first or number retail firm and the largest business organization in revenue and employee size. The company's total number of employees is estimated to be 2.2 million employees across its different stores. Apart from the retail business line, it also undertakes wholesale business activities (Tan, 2017). It provides all types of assortment merchandise as well as services for affordable costs. In this research paper, the main objective is to undertake a cash flow analysis statement of Walmart and its Relevance to its investors (Tan, 2017).
A cash flow statement is an important financial statement. A cash flow statement is understood as the financial statement that summarizes the financial or cash amounts. It is a summary of the amount in cash and cash equivalents (Murphy, 2021). In other words, it reflects the amount of cash entering and leaving an organization. The cash flow statement provides measures of a company’s financial strength and reflects its position in terms of revenue (Murphy, 2021). Besides, it helps investors to make the right financial decision.
The cash flow statement is an important financial document to investors. Investors always have a trait of looking at how a company is performing by evaluating the progress, the trends among other issues, and deciding whether to invest in the company. Investment decision-making in an in-depth analysis is usually achieved by looking at the cash flow performance based on an analysis of different elements of the statement.
The cash flow statement for Walmart is an important document to its investors. The cash flow statement of Walmart is an important measure of the profitability of the company. Besides, it provides investors with a clear picture and future projection outlook of how the company will be. Based on the analysis of the company’s cash flow statement company has been recording high levels of revenue over the past few years. As a result, it has been ranked as the largest company in terms of revenue collected. Such a specific entity of the company is a clear reflection that Walmart is indeed a profitable firm in profitability (Tan, 2017). Hence, it is a clear reflection to the investors that the company is making money instead of losses. For instance, over the past few years, the company has recorded a revenue increment and stability. The economic analysis measures the company revenue growth in terms of net sales changes to be 7.2% (WMT | Walmart Inc. Annual Cash Flow Statement | Market Watch. Market Watch, 2021). Such a growth rate is indeed admirable and attractive to investors searching for companies to invest in. The company's revenue level is a general overview and clear or direct instant and r ...
(Student Name) UniversityDate of EncounterPreceptorCliniMoseStaton39
(Student Name)
University
Date of Encounter:
Preceptor/Clinical Site:
Clinical Instructor:
Soap Note # Main Diagnosis ( Exp: Soap Note #3 DX: Hypertension)
PATIENT INFORMATION
Name: Mr. DT
Age: 68-year-old
Gender at Birth: Male
Gender Identity: Male
Source: Patient
Allergies: PCN, Iodine
Current Medications:
· Atorvastatin tab 20 mg, 1-tab PO at bedtime
· ASA 81mg po daily
· Multi-Vitamin Centrum Silver
PMH: Hypercholesterolemia
Immunizations: Influenza last 2018-year, tetanus, and hepatitis A and B 4 years ago.
Preventive Care: Coloscopy 5 years ago (Negative)
Surgical History: Appendectomy 47 years ago.
Family History: Father- died 81 does not report information
Mother-alive, 88 years old, Diabetes Mellitus, HTN
Daughter-alive, 34 years old, healthy
Social History: No smoking history or illicit drug use, occasional alcoholic beverage consumption on social celebrations. Retired, widow, he lives alone.
Sexual Orientation: Straight
Nutrition History: Diets off and on, Does not each seafood
Subjective Data:
Chief Complaint: “headaches” that started two weeks ago
Symptom analysis/HPI:
The patient is 65 years old male who complaining of episodes of headaches and on 3 different occasions blood pressure was measured, which was high (159/100, 158/98 and 160/100 respectively). Patient noticed the problem started two weeks ago and sometimes it is accompanied by dizziness. He states that he has been under stress in his workplace for the last month. Patient denies chest pain, palpitation, shortness of breath, nausea or vomiting.
Review of Systems (ROS)
CONSTITUTIONAL: Denies fever or chills. Denies weakness or weight loss. NEUROLOGIC: Headache and dizziness as describe above. Denies changes in LOC. Denies history of tremors or seizures.
HEENT: HEAD: Denies any head injury, or change in LOC. Eyes: Denies any changes in vision, diplopia or blurred vision. Ear: Denies pain in the ears. Denies loss of hearing or drainage. Nose: Denies nasal drainage, congestion. THROAT: Denies throat or neck pain, hoarseness, difficulty swallowing.
RESPIRATORY: Patient denies shortness of breath, cough or hemoptysis.
CARDIOVASCULAR: No chest pain, tachycardia. No orthopnea or paroxysmal nocturnal
dyspnea.
GASTROINTESTINAL: Denies abdominal pain or discomfort. Denies flatulence, nausea, vomiting or
diarrhea.
GENITOURINARY: Denies hematuria, dysuria or change in urinary frequency. Denies difficulty starting/stopping stream of urine or incontinence.
MUSCULOSKELETAL: Denies falls or pain. Denies hearing a clicking or snapping sound.
SKIN: No change of coloration such as cyanosis or jaundice, no rashes or pruritus.
Objective Data:
VITAL SIGNS: Temperature: 98.5 °F, Pulse: 87, BP: 159/92 mmhg, RR 20, PO2-98% on room air, Ht- 6’4”, Wt 200 lb, BMI 25. Report pain 2/10.
GENERAL APPREARANCE: The patient is alert and oriented x 3. No acute distress noted. NEUROLOGIC: Alert, CNII-XII grossly intact, oriented to person, ...
(Student Name)Miami Regional UniversityDate of EncounterMoseStaton39
(Student Name)
Miami Regional University
Date of Encounter:
Preceptor/Clinical Site:
Clinical Instructor: Patricio Bidart MSN, APRN, FNP-C
Soap Note # ____ Main Diagnosis ______________
PATIENT INFORMATION
Name:
Age:
Gender at Birth:
Gender Identity:
Source:
Allergies:
Current Medications:
·
PMH:
Immunizations:
Preventive Care:
Surgical History:
Family History:
Social History:
Sexual Orientation:
Nutrition History:
Subjective Data:
Chief Complaint:
Symptom analysis/HPI:
The patient is …
Review of Systems (ROS) (This section is what the patient says, therefore should state Pt denies, or Pt states….. )
CONSTITUTIONAL:
NEUROLOGIC:
HEENT:
RESPIRATORY:
CARDIOVASCULAR:
GASTROINTESTINAL:
GENITOURINARY:
MUSCULOSKELETAL:
SKIN:
Objective Data:
VITAL SIGNS:
GENERAL APPREARANCE:
NEUROLOGIC:
HEENT:
CARDIOVASCULAR:
RESPIRATORY:
GASTROINTESTINAL:
MUSKULOSKELETAL:
INTEGUMENTARY:
ASSESSMENT:
(In a paragraph please state “your encounter with your patient and your findings ( including subjective and objective data)
Example : “Pt came in to our clinic c/o of ear pain. Pt states that the pain started 3 days ago after swimming. Pt denies discharge etc… on examination I noted this and that etc.)
Main Diagnosis
(Include the name of your Main Diagnosis along with its ICD10 I10. (Look at PDF example provided) Include the in-text reference/s as per APA style 6th or 7th Edition.
Differential diagnosis (minimum 3)
-
-
-
PLAN:
Labs and Diagnostic Test to be ordered (if applicable)
· -
· -
Pharmacological treatment:
-
Non-Pharmacologic treatment:
Education (provide the most relevant ones tailored to your patient)
Follow-ups/Referrals
References (in APA Style)
Examples
Codina Leik, M. T. (2014). Family Nurse Practitioner Certification Intensive Review (2nd ed.).
ISBN 978-0-8261-3424-0
Domino, F., Baldor, R., Golding, J., Stephens, M. (2010). The 5-Minute Clinical Consult 2010
(25th ed.). Print (The 5-Minute Consult Series).
Nutrition and Diet.
Semester:
Spring
Course:
MSN6150C Advanced Practice Pediatrics
Preceptor:
REYES-CHOUZA, CARLOS
Clinical Site:
IDEAL MEDICAL CENTER
Setting Type:
Patient Demographics
Age:
12 years
Race:
Black or African American
Gender:
Male
Insurance:
Medicaid
Referral:
No referral
Clinical Information
Time with Patient:
25 minutes
Consult with Preceptor:
15 minutes
Type of Decision-Making:
Moderate complexity
Reason for Visit:
New Consult
Chief Complaint:
Felling pressure behaving my eyes
Type of HP:
Detailed
Social Problems Addressed:
Sanitation/Hygiene
Emotional
Prevention
Procedures/Skills (Observed/Assisted/Performed)
Physical Assessment - Physical Assessment (Perf)
General Skills - Vital Signs (Perf)
ICD-10 Diagnosis Codes
#1 -
J01.10 - ACUTE FRONTAL SINUSITIS, UNSPECIFIED
CPT Billing Codes
#1 -
99214 - OFFICE/OP VISIT, EST PT, MEDICALLY APPROPRIATE HX/EXAM; MODERATE LEVEL MED DECISION; 30-39 MIN
Birth & Delivery
Medications
# OTC Drugs taken regularly:
0
# Prescriptions currently pre ...
(Student Name)Miami Regional UniversityDate of EncounterPMoseStaton39
(Student Name)
Miami Regional University
Date of Encounter:
Preceptor/Clinical Site:
Clinical Instructor: Dr. David Trabanco DNP, APRN, AGNP-C, FNP-C
Soap Note #1 DX: Allergic Rhinitis
PATIENT INFORMATION
Name: Ms. JD
Age: 23-year-old
Gender at Birth: Female
Gender Identity: Female
Source: Patient
Allergies: NKDA
Current Medications:
· Cetirizine 10mg/d
· Mucinex-D
PMH:
Immunizations: Tetanus.
Preventive Care: No history.
Surgical History: No history of surgery.
Family History: Father- alive, 60 years old, healthy.
Mother-alive, 54 years old, HTN, hyperlipidemia.
Sister-alive, 20 years old, Asthma.
Social History: Denies alcohol, tobacco or illicit drugs use. College student, lives alone in campus hostels. Physically active and occasionally does exercise.
Sexual Orientation: Active
Nutrition History: Eats balance diet but avoids excessive junk food.
Subjective Data:
Chief Complaint: “stuffy nose” that has lasted for two weeks.
Symptom analysis/HPI:
Ms. JD is a 23-year-old patient who presents with complaints of a stuffy nose, rhinorrhea, congestion and sneezing. She reports a spontaneous start of the symptoms that have remained consistent. Indicates no particular aggravating symptoms but reports higher severity of the symptoms in the morning. She complains of a sore throat and itchy eyes. She reports an all-day clear runny nose. She indicates consistent outdoor handball practice routine. She reports using Cetirizine and Mucinex-D which do not help. She denies vision or taste changes. She denies fever or chills. Denies diagnosis with allergies.
Review of Systems (ROS)
CONSTITUTIONAL: Denies change in weight, fatigue, fever, night sweats or chills. NEUROLOGIC: Denies seizure, numbness or blackout.
HEENT: HEAD: Denies headache. Eyes: Reports itchy eyes. Denies vision change. Ear: Denies hearing loss, pain or discharge. Nose: Admits stuffiness, nasal congestion and clear discharge. Denies nose bleeds. THROAT: Reports a sore throat.
RESPIRATORY: Patient denies breathing difficulties, cough, wheezing, TB, pneumonia.
CARDIOVASCULAR: No palpitations or chest pain. No edema, PND or orthopnea.
GASTROINTESTINAL: Denies nausea, abdominal pains, vomiting and diarrhea. Denies ulcers hx.
GENITOURINARY: Denies change in urine color, urgency and frequency. Regular menses cycle. Denies ovulation pain. Denies hematuria and dysuria.
MUSCULOSKELETAL: Denies back and joint pains or stiffness.
SKIN: No skin rashes or lesions.
Objective Data:
VITAL SIGNS: Temperature: 36.7 °C, Pulse: 78, BP: 119/87 mmHg, RR 20, PO2-97% on room air, Ht- 1.60m, Wt 67kg, BMI 26.
GENERAL APPREARANCE: Healthy appearing. Alert and oriented x 3. No acute distress. Well-groomed and responds appropriately.
NEUROLOGIC: Alert, oriented, posture erect, clear speech. gait. to person, place, and time.
HEENT: Head: Normocephalic, atraumatic, symmetric, non-tender. Maxillary sinuses mild tenderness. Eyes: Bilateral conjunctival inject ...
(Monica)Gender rarely shapes individual experience in isolation buMoseStaton39
(Monica)Gender rarely shapes individual experience in isolation but is instead linked to other social statuses in the effects it has on our lives. The gender distinction reflects what we see as appropriate “masculine” or “feminine.” For example, some societies expect men to be more aggressive and competitive and women to be emotionally nurturing. I was playing with dolls one day and was playing with two dolls: a female doll and a male doll. Upon passing by, an uncle of mine saw me playing with my toys and frowned. When I asked what was wrong, he seemed uncomfortable. In this statement, he suggested that girls should act like girls and play with girlie things, while boys should play with boy things, including boy dolls. The family experiences that taught me about gender and gender roles are vividly in my memory. Throughout my childhood, my mother and father stressed how essential it is for me to understand and know that I am a girl, and I should always act and carry myself accordingly.
I found conversations like that to be overly exaggerated at the time, but I subsequently understood why my parents did what they did. We were a family of six, with five girls and one boy. As a child, my parents, specifically my mother, stressed what clothing the girls wore. Our mother was always careful not to let us wear anything provocative, and we were to get married and have our own families. Girls are often told that it's alright to cry because girls cry, and if I was a boy, I'd be made to suck it up and deal with it. In addition, my mother taught me that women nurture and that we take care of the home, including cooking, cleaning, and taking care of the children. As girls, we could not play any sports that were deemed "too rough" or to be performed by boys. From a young age, we chose professional careers. All these careers involved female dominating industries, such as nursing, teaching, caretaking, and hairdressing. They all contributed to the construction of my gender.
Multiple ways are available to conceptualize gender; essentialists see it as a binary division, which classifies you as male or female at birth. In contrast, mainstream social scientists take a constructionist approach to gender. Page 242 argues that gender is a constructed concept that has been shaped through culture and history. Finally, people internalize the social expectations they are introduced to.(Ferris & Stein, 2020) (Links to an external site.)
Resources
Ferris, T., & Stein, J. (2020). Chapter 9/ Page 242. In The Real World: An Introduction to Sociology (7th ed., pp. 236–242). essay, W.W. Norton.
...
(Monica) A summary of my decision-making process starts with flippMoseStaton39
(Monica) A summary of my decision-making process starts with flipping through ads to find a job, I was concerned with what companies offered for pay, the type of work I would be doing, and how long would the job last. There were a few companies that were only looking to hire temporarily and again not an ideal situation if I am already concerned with having a steady income. Between the three ads, Office temp, a server at a restaurant making $2.13hr plus tips with hours varying, and a warehouse position, starting at $14Hr with hours from 12 pm to 7 pm. I chose to pick the warehouse position since it offers the most money and a set schedule. Continuing with the simulation, my monthly take-home pay after taxes is $1,224, making my weekly pay only $306. Ideally $1,224 is not enough funds to help sustain a family, barely one person. During this time, I have to pick my insurance, which is a requirement through the Affordable Care Act. Luckily my child is covered and I picked the cheapest plan that I could afford, the bronze plan and it costs $303 a month, which averages to almost $76 a paycheck. I have to ensure I have a place to live, paying rent over $720 and traveling puts my monthly rental and traveling costs at more than 800 dollars a month. The results of me living further away from my job, so that my rent is lower also increased gas costs. According to the simulation, every working household that saves a dollar spends 77 cents on transportation. My balance jumps from $1000 to $192 after paying rent only to find out my apartment is too small for my things, so I chose to have a yard sale. I only made $150 from the yard sale and made the decision to get paid by the piece, since I am barely making a living wage on an hourly paycheck, and in doing so my paycheck decreased by 25cents. I skipped my grandfather’s memorial service because I can not afford to travel, I paid $25 to replace a broken item I fixed, even though considered hiding the evidence. Grocery shopping is next on my to-do list, spending only 30 for things I needed, I felt was hardly enough food, but could not really afford to splurge and spend on extra things. During this time my stress levels are at an all-time high, but I turn the offer for a cigarette down because I do not want to get addicted. As a result, the simulation states there is a misconception that smoking relieves stress during difficult situations in life.
Now that I have come to payday, I decided to start my fitness journey by asking a friend to be my running partner. On the way to work, something blew in the car and needed to get fixed, and asking a friend to look at the issue saved money. The landlord decided to raise rent and $150 had to be paid or I could spend more on legal fees fighting it in court. On the way out to work, someone stole my gas from my car, so I had to make the decision to take the bus and the result where it took me three buses and fives times longer to get there, making me miss a few hours of p ...
(Note This case study is based on many actual cases. All the nameMoseStaton39
(Note: This case study is based on many actual cases. All the names used are made up, and any relation to actual people or events is purely accidental and coincidental.)
Addictions Case Study: Narrative
Presenting Problem:
Marci is a 22-year-old female college student who was arrested five months ago for driving while impaired with a blood alcohol level of 0.13. She was also charged with possession of a small amount (about 1 gram) of marijuana. Her license was suspended, but she has driving privileges to get to school/work and back.
Drug History and Current Patterns of Use:
She has smoked cigarettes since age 16 and currently smokes one pack daily. Marci stopped smoking cigarettes for six months one year ago, but she presently does not plan to cut down or quit.
She has five prescription pills (Xanax) for depression and anxiety that were given to her by a college classmate (for whom they were prescribed). Marci shared that she had been struggling with feelings of sadness and worrying too much about two months ago. She hasn’t taken them yet, but has considered trying them.
Marci first experimented with marijuana during her senior year of high school (age 17), with her use becoming more regular after she entered college. Marci was first introduced to marijuana by her high school boyfriend, who used it every day along with alcohol on the weekends.
While she started drinking wine with her family when she was 13, she started to
EDCO 740
Page 2 of 2
“seriously” drink starting around 18-years-old. She currently drinks four or more alcoholic beverages (usually wine or wine coolers; sometimes beer) three to four times a week and had been smoking marijuana two to three times a week for one year. Her usual pattern was to go on weekend binges, starting to drink and smoke on Friday evenings until 2:00 a.m. She would then have a glass or two of wine around lunchtime on Saturday, smoking a joint or two with a couple of friends during Saturday afternoons prior to attending college sporting or social events. She would then go to parties with friends on Saturday evenings, typically consuming six to seven cans/bottles/cups of beer and sharing several joints of marijuana with others. She had also started to consume energy drinks (Red Bull, Monster, etc.) when she drank beer at these parties to get an added “boost” to her high.
During the past two months, she has sometimes had one to two glasses of wine (she also used to smoke half a joint of marijuana with it) when alone on school nights. On the mornings after she used alcohol, Marci tended to sleep in and cut class, but not every week. Her recreational and social interests had increasingly involved the use of alcohol and marijuana, now since her arrest, it is mainly alcohol (although she still desires to smoke cannabis). Recently, Marci has begun to express concern to her friends about “feeling depressed and anxious,” but she reports no suicidal ideation or panic attacks. She is also concerned since sh ...
(Individuals With Disabilities Act Transformation Over the Years)DMoseStaton39
(Individuals With Disabilities Act Transformation Over the Years)
Discussion Forum Instructions:
1. You must post at least three times each week.
2. Your initial post is due Tuesday of each week and the following two post are due before Sunday.
3. All post must be on separate days of the week.
4. Post must be at least 150 words and cite all of your references even it its the book.
Discussion Topic:
Describe how the lives of students with disabilities from culturally and/or linguistically diverse backgrounds have changed since the advent of IDEA. What do you feel are some things that can or should be implemented to better assist with students that have disabilities? Tell me about these ideas and how would you integrate them?
ANOVA
ANOVA
• Analysis of Variance
• Statistical method to analyzes variances to determine if the means from more than
two populations are the same
• compare the between-sample-variation to the within-sample-variation
• If the between-sample-variation is sufficiently large compared to the within-sample-
variation it is likely that the population means are statistically different
• Compares means (group differences) among levels of factors. No
assumptions are made regarding how the factors are related
• Residual related assumptions are the same as with simple regression
• Explanatory variables can be qualitative or quantitative but are categorized
for group investigations. These variables are often referred to as factors
with levels (category levels)
ANOVA Assumptions
• Assume populations , from which the response values for the groups
are drawn, are normally distributed
• Assumes populations have equal variances
• Can compare the ratio of smallest and largest sample standard deviations.
Between .05 and 2 are typically not considered evidence of a violation
assumption
• Assumes the response data are independent
• For large sample sizes, or for factor level sample sizes that are equal,
the ANOVA test is robust to assumption violations of normality and
unequal variances
ANOVA and Variance
Fixed or Random Factors
• A factor is fixed if its levels are chosen before the ANOVA investigation
begins
• Difference in groups are only investigated for the specific pre-selected factors
and levels
• A factor is random if its levels are choosen randomly from the
population before the ANOVA investigation begins
Randomization
• Assigning subjects to treatment groups or treatments to subjects
randomly reduces the chance of bias selecting results
ANOVA hypotheses statements
One-way ANOVA
One-Way ANOVA
Hypotheses statements
Test statistic
=
𝐵𝑒𝑡𝑤𝑒𝑒𝑛 𝐺𝑟𝑜𝑢𝑝 𝑉𝑎𝑟𝑖𝑎𝑛𝑐𝑒
𝑊𝑖𝑡ℎ𝑖𝑛 𝐺𝑟𝑜𝑢𝑝 𝑉𝑎𝑟𝑖𝑎𝑛𝑐𝑒
Under the null hypothesis both the between and within group variances estimate the
variance of the random error so the ratio is assumed to be close to 1.
Null Hypothesis
Alternate Hypothesis
One-Way ANOVA
One-Way ANOVA
One-Way ANOVA Excel Output
Treatme
(Kaitlyn)To be very honest I know next to nothing about mythology,MoseStaton39
(Kaitlyn)To be very honest I know next to nothing about mythology, it has never been something that I have had around me or taught in school, I guess it was one of those subjects that got kind of, overlooked. But history is history and in my opinion, it’s important to know what happened in the past to prevent future mishaps or wrongdoings. Therefore I don't know anything about mythology to start, but I am eager to learn more about all these different gods, goddesses, etc., and am surprised to find out that entire towns or civilizations would support the myths or people I am reading about.
The gods and goddesses seem to all have their sanction of what was claimed as their own, one wraps his arms around the earth floating the continents with his aqua arms, and another is essentially the undertaker and decides whose soul belongs where. The people are peasants and they are unequal to those that are considered the higher power, they are the protected and shall not reach out to become a protector. From what I have read it doesn't seem like the gods step on each other’s territory or have competitions to push each other out, it seems as though all that made it up there are respected and get to look down on those that are less than them.
While reading I noticed that there is a bit of a divide between men and women the same as we have today. A big part of societal issues today is gender equality and the general outlook on how each gender is portrayed without any prior information. Men are supposed to be large, strong, and tall, to protect and conquer for the interest of mankind. Women are supposed to be dainty and spread love, make a house a home, and show endearing qualities. I can see the reverse argument for Cupid who is the God of Love being that Eros is a male, being portrayed as the, "fairest of the deathless gods," (Hamilton, 36) but that is one instance in an array of different people. It seems that even though we have come a long way to today with working on gender-specific stereotypes, for these "myths" to be ancient and long ago, it doesn't seem like we have come that far. Yes women are seen as loving and they can be attractive to people around them, but in the man’s brain, they are simply there to be of service to the man, and to man the home when they are not present. It's interesting because even though the language of the reading may be hard for me to get used to, being that it is not in modern English, I can still very well understand one thing. Women like Aphrodite would "...[laugh] sweetly or mockingly at those her wiles had conquered, the irresistible goddess who stole away even the wits of the wise" (Hamilton, 32). Being a woman I translated this to essentially smiling in the faces of those who either are factually in the wrong, or have done wrong to you, and that is something that is still very much alive today. From history, we know that women were seen as property or disposable at the discretion of the man that homed her, and f ...
(Harry)Dante’s Inferno is the first of the three-part epic poem, DMoseStaton39
(Harry)Dante’s Inferno is the first of the three-part epic poem, Divine Comedy, written by Dante Alighieri. The Inferno depicts Dante’s journey through Hell, accompanied and guided by the ancient Roman poet Virgil. In his poem, Dante describes Hell’s topography consisting of nine circles, each representing the seriousness of the sin committed by its offenders, these sins are categorized (by the Catholic Church), grouped, and commonly known as the nine deadly sins. Each level of Hell represent places of torment where the first level is home to less serious offenders, and increase in severity in each circle. As they go deeper into each level, our characters, Dante and Virgil encounter offenders within each ring of hell who have committed more serious offenses and the sins are more egregious. We find that the lowest part of hell houses the betrayers, and punishment here is more severe. Punishment in the poem is handed out in a poetic justice fashion Dante calls contrapasso. In this last (deepest) level or ring of Hell the betrayers of Julius Caesar: Brutus and Cassius are prime tenants, along with Judas, who had betrayed Jesus.
As I read this poem, I can agree with how Hell was organized, and as it sits currently, those guilty of child sexual abuse could reside along with those who are being tortured in the second circle: Lust. But Dante seemed to portray these sins as less severe. But personally, I think that those guilty of committing child sexual abuse should be in the ninth circle of Hell, along with those committing treachery because what is child sexual abuse if not treachery! It is treacherous against the innocent children, who fall betrayed by those who they must respect and obey (adults or those older then they), it is an act of treason to the victim who may have trusted the person committing such a heinous act. But after much contemplation, I still cannot agree with this placement. Child sexual abuse and child sexual assault is, in a very real way, equal to those types of betrayals. The innocence of a child makes those crimes so bad that I feel so uncomfortable writing about. As defined on their website, child sexual abuse includes: any sexual act between an adult and a minor, or between two minors, when one exerts power over the other, forcing, coercing or persuading a child to engage in any type of sexual act, non-contact acts such as exhibitionism, exposure to pornography, voyeurism, and communicating in a sexual manner by phone or Internet. In Dante’s world, those guilty of child sexual assault are far more wicked than those guilty of other sexual sins, and even worse than those guilty of aberrant sexual behavior (as it was understood at the time). Therefore, these sinners would have their very own special place below the ninth circle.
For sinners tormented in the tenth circle, the torture must be as gruesome as the act committed by the sinners. For someone who has committed such a abominable act as is child sexual abuse, assault, ...
(Lucious)Many steps in the systems development process may cause aMoseStaton39
(Lucious)Many steps in the systems development process may cause a project to balloon out of control, affecting the scope's size, where the budget and timeline remain the same. Unfortunately, this is a widespread problem known as scope creep during an IS development. Scope creep is an unexpected demand that moves a project past its predetermined limits. Projects are always documented with a planning outline, which covers in-depth details on boundaries, schedules, major deliverables, time, and budget. Unfortunately, individuals involved in the project may intentionally or unintentionally cause a project to not meet its goals due to the unpredictable nature of adding tasks to a project in progress. Project managers can ensure that the scope is clear by referring to the project planning outline, where all the boundaries and parameters of the project stipulate all deliverables. Spending extra time finalizing the plan can dial in a clear and detailed scope for everyone involved in the project. A project manager needs to engage directly with the clients by speaking with them and thoroughly walking them through all the parameters and deliverables. Closely collaborating with clients throughout the various stages of the project can prevent hiccups that may occur. If issues arise during project development, it is always best to be transparent with the client about every problem. Being able to work through solutions with clients will ease the anxieties as strategies are planned. To ensure deliverables are to the client's expectations, necessary features should be identified as critical for delivering a usable end product. For example, managing a scope creep can be difficult if not handled correctly. However, managing change in a project development does not have to be a battle of wills. Knowing how to address change can be beneficial. It can be outlined in the project planning document with parameters that will deliver the best product for the client without derailing the project. (Joseph S. Valacich, 2015)
REFERENCES
Joseph S. Valacich, J. F. (2015). Essentials of Systems Analysis and Design Sixth Edition. Pearson Education, Inc.
i1v2e5y5pubs
W21153
NEDBANK GROUP: LEADERSHIP AND ADAPTIVE SPACE FOR
DIGITAL INNOVATION
Caren Scheepers, Jill Bogie, and Michael Arena wrote this case solely to provide material for class discussion. The authors do not
intend to illustrate either effective or ineffective handling of a managerial situation. The authors may have disguised certain names
and other identifying information to protect confidentiality.
This publication may not be transmitted, photocopied, digitized, or otherwise reproduced in any form or by any means without the
permission of the copyright holder. Reproduction of this material is not covered under authorization by any reproduction rights
organization. To order copies or request permission to reproduce materials, contact Ivey Publishing, Ivey Business Sch ...
(Eric)Technology always seems simple when it works and it is when MoseStaton39
(Eric)Technology always seems simple when it works and it is when it fails that we see how complex these physical and virtual spiderwebs truly are. Networks can fail due to multiple reasons, namely lack of redundancy and failover. This can be in the form of backup servers and switches that can activate when primary hardware fails or backup power supplies for when there are failures outside the network hardware. Hardware runs firmware and software, which needs to be updated. Forgetting to keep it updated can also lead to issues with loss of efficiency or complete failure.
I work for the Texas Department of Criminal Justice, and one of the common LAN issues that we have on our units is outdated hardware. The units suffer daily from bandwidth problems since the physical cables that are run throughout the building(s) are incredibly outdated. This means that the physical network cannot handle the data required for daily business. Another issue with LAN design is the lack of continuous testing. You should plan to test your networks on a regular basis to ensure that they are continuing to function as intended and plan for unscheduled testing after large increases in company growth.
Introduction
On a cold winter morning in 2006, Jeff Ryan sat in his office steaming over the fax he had just received from his long-time distribution partner. This could easily be the last straw for the company, as what choice did he have since this partner was responsible for the sales and distribution of over 95 percent of their product? The fax had come on the heels of a highly charged discussion with this distributor just two days earlier, which had been tense but ended with the distributor assuring Jeff that they would continue their exclusive arrangement with Versare. At the meeting, Jeff aired his concerns about the distributor’s lack of interest in the business, the cost increases for Versare, and the distributor’s poor receiving and order-taking processes, which cause expensive and unnecessary extra work on wall bed installations. As Jeff walked out of the meeting, though, he was assured by the distributor’s president that they were maintaining the exclusive arrangement. “We give you our word. Everything goes through you,” he assured Jeff.
So, despite the tensions, he felt good about the agreement that had been reached two days earlier. But this fax changed everything. Sent to Versare by mistake, the fax was intended for a competitor, and it included a large order for the same product that the distributor had promised would come only from Versare. Jeff quickly realized that the distributor’s assurances of two days earlier had been a lie. In his head, he could already hear the president saying, “It’s just business you understand.” While he did understand, he also knew that this relationship accounted for nearly all his company’s revenues. In hindsight, this may not have been smart, but in the early days it had been the only way to get the company’s product to t ...
(ELI)At the time when I first had to take a sociology class in higMoseStaton39
(ELI)At the time when I first had to take a sociology class in high school, I was staunchly anti-feminism, as I felt it was unnecessary in first world countries and primarily focused on encouraging immodesty and considering women to be worth more than men. At that time, my only education on feminism or feminist issues had come from my parents during homeschooling. I clearly remember getting into a heated debate with a classmate whom I considered "the feminist equivalent of a vegan," (referring to the stereotypical joke, "How do you know if someone is a vegan? Don't worry, they'll tell you,") and I told her I simply could not see any situations in real life where women aren't being represented without a real reason. She introduced me to the term Bechdel Test, and encouraged me to spend a few weeks watching my usual shows, but counting how many times the female characters spoke to each other about anything other than men.
As my understanding of feminism and of the world around me has evolved, I have seen an increase in media that passes the Bechdel Test, but have also been surprised to find it is significantly less common than I expected. Additionally, the Bechdel Test only looks at named female characters who discuss something other than men. It does not look at factors of race, sexuality, topics of conversation, or visual presentation. Some argue that although media increasingly passes the test, the quality of that media is lacking and therefore the value of the Bechdel Test does not hold up (How does the Bechdel Test measure up in evaluating film representations of women, 2021). More detailed studies show that women remain underrepresented in media, both behind and before the camera (Smith et. al, 2016). The female characters that are portrayed in trend towards being young and traditionally attractive, reinforcing the "ideal" image as the standard and further raising the standard for the average woman. Additionally, women of color and women belonging to other racial or social minority groups are even less visible, impacting the expectations that society has of women based on how they are shown, and influencing what women consider "normal" in themselves.
How does the Bechdel Test measure up in evaluating film representations of women? (2021, April 19). UWIRE Text, 1.
Smith, S., Choueiti, M., & Pieper, K. (2016). Inclusion or invisibility? Comprehensive Annenberg Report on diversity in entertainment. Media, Diversity & Social Change Initiative. USC Annenberg School for Communication and Journalism.
...
(Executive Summary)MedStar Health Inc, a leader in the healthcMoseStaton39
(Executive Summary)
MedStar Health Inc, a leader in the healthcare industry regionally and nation-wide, is a constant target of the malicious attempts of cyber criminals. Over the past 6 years MedStar Health Inc. has faced several instances of data breach most notably, the 2016 breach that compromised 370 computer systems and halted its operations. As the organization continues to digitize and broaden the use of electronic medical records across its facilities, the threat of cyber-attack remains even more pervasive. The purpose of this report is to provide an overview of MedStar Health Inc cybersecurity vulnerabilities, examine the overall causes and impact of the breaches and explore solutions to meet the organization’s cybersecurity challenges.
With a focal point on MedStar Health breaches, a literature-based study was conducted, and various news articles, academic journals and company publications were analyzed. It was found that the 2016 and 2020 data breaches were attacks on the organization’s internet servers. The 2020 hack compromised the records of 668 patients, whereas the 2016 hack was a result of a ransomware infection that compromised 7500 individuals’ records and halted the organizations’ operations. The cost of the virus infection was greater than the $19,000 ransom requested due to additional recovery and remediation costs. It was also revealed that the 2019 breach was due to human error.
To best combat the efforts of cyber criminals, it is recommended that MedStar Health Inc. place greater emphasis on cyber awareness training for employees/professionals, implementing multiple factor authentications and a strong password and identity management system to reinforce its IT infrastructure against future hacks. Failure to effectuate these measures pose significant risk to MedStar Health Inc., its affiliates and patients that extend beyond ransom payments, fines, imprisonment, lawsuits and costs incurred for subsequent identity theft protection services. The damage caused by data security breaches may prove fatal for patients, the company’s most valued asset, compromising public perception and the company’s mission to provide the highest quality of medical care and build long-term relationships with the patients they serve.)
Actual Technical Report
MedStar Medical Vs. Cybercrime
In the health sector, experts "see persistent cyber-attacks as the single greatest threat to the protection of healthcare data" (Moffith & Steffen, 2017). To the world at large, this is not the most absurd news or revelation. Healthcare data embodies some of the most marketable information, and for the black market this is Eldorado – the fictional tale of the city of gold. Healthcare organizations are tasked with fighting the uphill battle of providing quality medical care to their number one stakeholder – patients – while also ensuring that their valuable information is kept safe and secure. Despite their efforts, healthcare organizations sometimes fail in ...
Unit 8 - Information and Communication Technology (Paper I).pdfThiyagu K
This slides describes the basic concepts of ICT, basics of Email, Emerging Technology and Digital Initiatives in Education. This presentations aligns with the UGC Paper I syllabus.
Francesca Gottschalk - How can education support child empowerment.pptxEduSkills OECD
Francesca Gottschalk from the OECD’s Centre for Educational Research and Innovation presents at the Ask an Expert Webinar: How can education support child empowerment?
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...Levi Shapiro
Letter from the Congress of the United States regarding Anti-Semitism sent June 3rd to MIT President Sally Kornbluth, MIT Corp Chair, Mark Gorenberg
Dear Dr. Kornbluth and Mr. Gorenberg,
The US House of Representatives is deeply concerned by ongoing and pervasive acts of antisemitic
harassment and intimidation at the Massachusetts Institute of Technology (MIT). Failing to act decisively to ensure a safe learning environment for all students would be a grave dereliction of your responsibilities as President of MIT and Chair of the MIT Corporation.
This Congress will not stand idly by and allow an environment hostile to Jewish students to persist. The House believes that your institution is in violation of Title VI of the Civil Rights Act, and the inability or
unwillingness to rectify this violation through action requires accountability.
Postsecondary education is a unique opportunity for students to learn and have their ideas and beliefs challenged. However, universities receiving hundreds of millions of federal funds annually have denied
students that opportunity and have been hijacked to become venues for the promotion of terrorism, antisemitic harassment and intimidation, unlawful encampments, and in some cases, assaults and riots.
The House of Representatives will not countenance the use of federal funds to indoctrinate students into hateful, antisemitic, anti-American supporters of terrorism. Investigations into campus antisemitism by the Committee on Education and the Workforce and the Committee on Ways and Means have been expanded into a Congress-wide probe across all relevant jurisdictions to address this national crisis. The undersigned Committees will conduct oversight into the use of federal funds at MIT and its learning environment under authorities granted to each Committee.
• The Committee on Education and the Workforce has been investigating your institution since December 7, 2023. The Committee has broad jurisdiction over postsecondary education, including its compliance with Title VI of the Civil Rights Act, campus safety concerns over disruptions to the learning environment, and the awarding of federal student aid under the Higher Education Act.
• The Committee on Oversight and Accountability is investigating the sources of funding and other support flowing to groups espousing pro-Hamas propaganda and engaged in antisemitic harassment and intimidation of students. The Committee on Oversight and Accountability is the principal oversight committee of the US House of Representatives and has broad authority to investigate “any matter” at “any time” under House Rule X.
• The Committee on Ways and Means has been investigating several universities since November 15, 2023, when the Committee held a hearing entitled From Ivory Towers to Dark Corners: Investigating the Nexus Between Antisemitism, Tax-Exempt Universities, and Terror Financing. The Committee followed the hearing with letters to those institutions on January 10, 202
Biological screening of herbal drugs: Introduction and Need for
Phyto-Pharmacological Screening, New Strategies for evaluating
Natural Products, In vitro evaluation techniques for Antioxidants, Antimicrobial and Anticancer drugs. In vivo evaluation techniques
for Anti-inflammatory, Antiulcer, Anticancer, Wound healing, Antidiabetic, Hepatoprotective, Cardio protective, Diuretics and
Antifertility, Toxicity studies as per OECD guidelines
A Strategic Approach: GenAI in EducationPeter Windle
Artificial Intelligence (AI) technologies such as Generative AI, Image Generators and Large Language Models have had a dramatic impact on teaching, learning and assessment over the past 18 months. The most immediate threat AI posed was to Academic Integrity with Higher Education Institutes (HEIs) focusing their efforts on combating the use of GenAI in assessment. Guidelines were developed for staff and students, policies put in place too. Innovative educators have forged paths in the use of Generative AI for teaching, learning and assessments leading to pockets of transformation springing up across HEIs, often with little or no top-down guidance, support or direction.
This Gasta posits a strategic approach to integrating AI into HEIs to prepare staff, students and the curriculum for an evolving world and workplace. We will highlight the advantages of working with these technologies beyond the realm of teaching, learning and assessment by considering prompt engineering skills, industry impact, curriculum changes, and the need for staff upskilling. In contrast, not engaging strategically with Generative AI poses risks, including falling behind peers, missed opportunities and failing to ensure our graduates remain employable. The rapid evolution of AI technologies necessitates a proactive and strategic approach if we are to remain relevant.
The Roman Empire A Historical Colossus.pdfkaushalkr1407
The Roman Empire, a vast and enduring power, stands as one of history's most remarkable civilizations, leaving an indelible imprint on the world. It emerged from the Roman Republic, transitioning into an imperial powerhouse under the leadership of Augustus Caesar in 27 BCE. This transformation marked the beginning of an era defined by unprecedented territorial expansion, architectural marvels, and profound cultural influence.
The empire's roots lie in the city of Rome, founded, according to legend, by Romulus in 753 BCE. Over centuries, Rome evolved from a small settlement to a formidable republic, characterized by a complex political system with elected officials and checks on power. However, internal strife, class conflicts, and military ambitions paved the way for the end of the Republic. Julius Caesar’s dictatorship and subsequent assassination in 44 BCE created a power vacuum, leading to a civil war. Octavian, later Augustus, emerged victorious, heralding the Roman Empire’s birth.
Under Augustus, the empire experienced the Pax Romana, a 200-year period of relative peace and stability. Augustus reformed the military, established efficient administrative systems, and initiated grand construction projects. The empire's borders expanded, encompassing territories from Britain to Egypt and from Spain to the Euphrates. Roman legions, renowned for their discipline and engineering prowess, secured and maintained these vast territories, building roads, fortifications, and cities that facilitated control and integration.
The Roman Empire’s society was hierarchical, with a rigid class system. At the top were the patricians, wealthy elites who held significant political power. Below them were the plebeians, free citizens with limited political influence, and the vast numbers of slaves who formed the backbone of the economy. The family unit was central, governed by the paterfamilias, the male head who held absolute authority.
Culturally, the Romans were eclectic, absorbing and adapting elements from the civilizations they encountered, particularly the Greeks. Roman art, literature, and philosophy reflected this synthesis, creating a rich cultural tapestry. Latin, the Roman language, became the lingua franca of the Western world, influencing numerous modern languages.
Roman architecture and engineering achievements were monumental. They perfected the arch, vault, and dome, constructing enduring structures like the Colosseum, Pantheon, and aqueducts. These engineering marvels not only showcased Roman ingenuity but also served practical purposes, from public entertainment to water supply.
The French Revolution, which began in 1789, was a period of radical social and political upheaval in France. It marked the decline of absolute monarchies, the rise of secular and democratic republics, and the eventual rise of Napoleon Bonaparte. This revolutionary period is crucial in understanding the transition from feudalism to modernity in Europe.
For more information, visit-www.vavaclasses.com
Read| The latest issue of The Challenger is here! We are thrilled to announce that our school paper has qualified for the NATIONAL SCHOOLS PRESS CONFERENCE (NSPC) 2024. Thank you for your unwavering support and trust. Dive into the stories that made us stand out!
Synthetic Fiber Construction in lab .pptxPavel ( NSTU)
Synthetic fiber production is a fascinating and complex field that blends chemistry, engineering, and environmental science. By understanding these aspects, students can gain a comprehensive view of synthetic fiber production, its impact on society and the environment, and the potential for future innovations. Synthetic fibers play a crucial role in modern society, impacting various aspects of daily life, industry, and the environment. ynthetic fibers are integral to modern life, offering a range of benefits from cost-effectiveness and versatility to innovative applications and performance characteristics. While they pose environmental challenges, ongoing research and development aim to create more sustainable and eco-friendly alternatives. Understanding the importance of synthetic fibers helps in appreciating their role in the economy, industry, and daily life, while also emphasizing the need for sustainable practices and innovation.
Model Attribute Check Company Auto PropertyCeline George
In Odoo, the multi-company feature allows you to manage multiple companies within a single Odoo database instance. Each company can have its own configurations while still sharing common resources such as products, customers, and suppliers.
Introduction to AI for Nonprofits with Tapp NetworkTechSoup
Dive into the world of AI! Experts Jon Hill and Tareq Monaur will guide you through AI's role in enhancing nonprofit websites and basic marketing strategies, making it easy to understand and apply.
Embracing GenAI - A Strategic ImperativePeter Windle
Artificial Intelligence (AI) technologies such as Generative AI, Image Generators and Large Language Models have had a dramatic impact on teaching, learning and assessment over the past 18 months. The most immediate threat AI posed was to Academic Integrity with Higher Education Institutes (HEIs) focusing their efforts on combating the use of GenAI in assessment. Guidelines were developed for staff and students, policies put in place too. Innovative educators have forged paths in the use of Generative AI for teaching, learning and assessments leading to pockets of transformation springing up across HEIs, often with little or no top-down guidance, support or direction.
This Gasta posits a strategic approach to integrating AI into HEIs to prepare staff, students and the curriculum for an evolving world and workplace. We will highlight the advantages of working with these technologies beyond the realm of teaching, learning and assessment by considering prompt engineering skills, industry impact, curriculum changes, and the need for staff upskilling. In contrast, not engaging strategically with Generative AI poses risks, including falling behind peers, missed opportunities and failing to ensure our graduates remain employable. The rapid evolution of AI technologies necessitates a proactive and strategic approach if we are to remain relevant.
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdfTechSoup
In this webinar you will learn how your organization can access TechSoup's wide variety of product discount and donation programs. From hardware to software, we'll give you a tour of the tools available to help your nonprofit with productivity, collaboration, financial management, donor tracking, security, and more.
12. for (int i = 0; i < 4; i++) {
cout << "> ";
cin >> c;
prnContainer(c);
}
}
// Copied from DateTester.cpp
void testDate() {
Date D;
cout << "> ";
cin >> D;
if (!cin) {
cin.clear();
cin.ignore(1000, 'n');
cout << D.state() << endl;
}
else {
13. cout << "Date enterd: " << D << endl;
}
}
void dateTester() {
cout << "Current Date: " << Date() << endl;
cout << "Test mode: " << endl;
ut.testMode();
Date C;
Date F(2022, 5, 25);
cout << "Current Date formatted (C): " << C << endl;
C.formatted(false);
cout << "Current Date unformatted (C): " << C << endl;
cout << "Future Date formatted (F): " << F << endl;
F.formatted(false);
cout << "Future Date unformatted (F): " << F << endl;
cout << "The current date is" << (C != F ? " NOT" : "") << "
the same as the future date" << endl;
cout << "The current date is" << (C == C ? "" : " NOT") << "
the same as the current date" << endl;
14. cout << "The current date is" << (C <= F ? " Less than or
equal to" : " greater than") << " the future date" << endl;;
cout << "The current date is" << (C <= C ? " Less than or
equal to" : " greater than") << " the current date" << endl;;
cout << "The current date is" << (C < F ? " Less than" : "
greater than or equal to") << " the future date" << endl;;
cout << "The future date is" << (F >= C ? " greater than or
equal to" : " Less than") << " the current date" << endl;;
cout << "The future date is" << (F >= F ? " greater than or
equal to" : " Less than") << " the future date" << endl;;
cout << "The future date is" << (F > C ? " greater than" : "
Less than or equal to") << " the current date" << endl;;
cout << "--------------nAssigning the Current date to the
future date!" << endl;
C = F;
if (C == F)
cout << "Now both of the dates are the same!" << endl;
else
cout << "The two dates are different after assignment!!! !!"
<< endl;
cout << "Enter the following:n1- abcn2- 12n3- 1212n4-
121212"
15. "n5- 221312n6- 220229n7- 220228" << endl;
for (int i = 0; i < 7; i++) {
testDate();
}
}
#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <ctime>
#include "Utils.h"
using namespace std;
namespace sdds {
Utils ut;
void Utils::testMode(bool testmode) {
m_testMode = testmode;
}
void Utils::getSystemDate(int* year, int* mon, int* day) {
if (m_testMode) {
if (day) *day = sdds_testDay;
28. }
correct output
this is the correct output
Script started on Wed 02 Mar 2022 07:28:07 PM EST
==112027== Memcheck, a memory error detector
==112027== Copyright (C) 2002-2017, and GNU GPL'd, by
Julian Seward et al.
==112027== Using Valgrind-3.15.0 and LibVEX; rerun with -h
for copyright info
==112027== Command: ws
==112027==
Status Tester -----------------------------------------------------
Enter following values :
abc
123
-123
29. 12
> abc
Container: (Invalid Integer)
Error #: 0
Problem: Invalid Integer
> 123
Container: (ERR#1: value too high)
Error #: 1
Problem: value too high
> -123
Container: (ERR#-1: value too low)
Error #: -1
Problem: value too low
> 12
Container: (12)
Date Tester -------------------------------------------------------
Current Date: 2022/03/02
Test mode:
30. Current Date formatted (C): 2022/03/31
Current Date unformatted (C): 220331
Future Date formatted (F): 2022/05/25
Future Date unformatted (F): 220525
The current date is NOT the same as the future date
The current date is the same as the current date
The current date is Less than or equal to the future date
The current date is Less than or equal to the current date
The current date is Less than the future date
The future date is greater than or equal to the current date
The future date is greater than or equal to the future date
The future date is greater than the current date
--------------
Assigning the Current date to the future date!
Now both of the dates are the same!
Enter the following:
1- abc
2- 12
31. 3- 1212
4- 121212
5- 221312
6- 220229
7- 220228
> abc
Invalid date value
> 12
ERR#2: Invalid month in date
> 1212
Date enterd: 2022/12/12
> 121212
ERR#1: Invalid year in date
> 221312
ERR#2: Invalid month in date
> 220229
ERR#3: Invalid day in date
> 220228
32. Date enterd: 2022/02/28
==112027==
==112027== HEAP SUMMARY:
==112027== in use at exit: 0 bytes in 0 blocks
==112027== total heap usage: 20 allocs, 20 frees, 75,812
bytes allocated
==112027==
==112027== All heap blocks were freed -- no leaks are possible
==112027==
==112027== ERROR SUMMARY: 0 errors from 0 contexts
(suppressed: 0 from 0)
Script done on Wed 02 Mar 2022 07:29:34 PM EST
this is my output
cript started on Sat 19 Mar 2022 11:54:49 AM EDT
33. ==67598== Memcheck, a memory error detector
==67598== Copyright (C) 2002-2017, and GNU GPL'd, by
Julian Seward et al.
==67598== Using Valgrind-3.15.0 and LibVEX; rerun with -h
for copyright info
==67598== Command: ms
==67598==
Status Tester -----------------------------------------------------
Enter following values :
abc
123
-123
12
> abc
Container: (Invalid Integer)
Error #: 0
Problem: Invalid Integer
==67598== Mismatched free() / delete / delete []
==67598== at 0x4C2B51D: operator delete(void*)
(vg_replace_malloc.c:586)
34. ==67598== by 0x4025CE: sdds::Status::~Status()
(Status.cpp:45)
==67598== by 0x4019B5: Container::~Container()
(main_prof.cpp:34)
==67598== by 0x401056: statusTester() (main_prof.cpp:112)
==67598== by 0x400E81: main (main_prof.cpp:23)
==67598== Address 0x5afdcd0 is 0 bytes inside a block of size
16 alloc'd
==67598== at 0x4C2AC38: operator new[](unsigned long)
(vg_replace_malloc.c:433)
==67598== by 0x4024F5: sdds::Status::Status(sdds::Status
const&) (Status.cpp:22)
==67598== by 0x4019EE: Container::Container(Container
const&) (main_prof.cpp:34)
==67598== by 0x40103E: statusTester() (main_prof.cpp:112)
==67598== by 0x400E81: main (main_prof.cpp:23)
==67598==
> 12
Container: (12)
> 123
Container: (ERR#1: value too high)
35. Error #: 1
Problem: value too high
> -123
Container: (ERR#-1: value too low)
Error #: -1
Problem: value too low
==67598== Mismatched free() / delete / delete []
==67598== at 0x4C2B51D: operator delete(void*)
(vg_replace_malloc.c:586)
==67598== by 0x4025CE: sdds::Status::~Status()
(Status.cpp:45)
==67598== by 0x4019B5: Container::~Container()
(main_prof.cpp:34)
==67598== by 0x40106C: statusTester() (main_prof.cpp:113)
==67598== by 0x400E81: main (main_prof.cpp:23)
==67598== Address 0x5afddc0 is 0 bytes inside a block of size
14 alloc'd
==67598== at 0x4C2AC38: operator new[](unsigned long)
(vg_replace_malloc.c:433)
==67598== by 0x4025F9: sdds::Status::operator=(char
const*) (Status.cpp:50)
36. ==67598== by 0x40177B: Container::set(int)
(main_prof.cpp:39)
==67598== by 0x4018B8: Container::read(std::istream&)
(main_prof.cpp:59)
==67598== by 0x400EF1: operator>>(std::istream&,
Container&) (main_prof.cpp:95)
==67598== by 0x40102B: statusTester() (main_prof.cpp:111)
==67598== by 0x400E81: main (main_prof.cpp:23)
==67598==
Date Tester -------------------------------------------------------
Currect Date: 2022/03/19
Test mode:
Current Date formatted (C): 2022/03/19
Current Date unformatted (C): 220319
Future Date formatted (F): 2022/05/25
Future Date unformatted (F): 220525
The current date is NOT the same as the future date
The current date is the same as the current date
The current date is Less than or equal to the future date
37. The current date is Less than or equal to the current date
The current date is Less than the future date
The future date is greater than or equal to the current date
The future date is greater than or equal to the future date
The future date is greater than the current date
--------------
Assigning the Current date to the future date!
Now both of the dates are the same!
Enter the following:
1- abc
2- 12
3- 1212
4- 121212
5- 221312
6- 220229
7- 220228
> abc
Invalid date value
38. > 12
Invalid date valueDate enterd: 2022/03/19
> 1212
Invalid date valueDate enterd: 2022/03/19
> 121212
Invalid date valueDate enterd: 2022/03/19
> 221312
Invalid date valueDate enterd: 2022/03/19
> 220229
Invalid date valueDate enterd: 2022/03/19
> 20220228
Invalid date valueDate enterd: 2022/03/19
==67598==
==67598== HEAP SUMMARY:
==67598== in use at exit: 31 bytes in 2 blocks
==67598== total heap usage: 32 allocs, 30 frees, 75,963 bytes
allocated
==67598==
==67598== 15 bytes in 1 blocks are definitely lost in loss
39. record 1 of 2
==67598== at 0x4C2AC38: operator new[](unsigned long)
(vg_replace_malloc.c:433)
==67598== by 0x4025F9: sdds::Status::operator=(char
const*) (Status.cpp:50)
==67598== by 0x4017AD: Container::set(int)
(main_prof.cpp:43)
==67598== by 0x4018B8: Container::read(std::istream&)
(main_prof.cpp:59)
==67598== by 0x400EF1: operator>>(std::istream&,
Container&) (main_prof.cpp:95)
==67598== by 0x40102B: statusTester() (main_prof.cpp:111)
==67598== by 0x400E81: main (main_prof.cpp:23)
==67598==
==67598== 16 bytes in 1 blocks are definitely lost in loss
record 2 of 2
==67598== at 0x4C2AC38: operator new[](unsigned long)
(vg_replace_malloc.c:433)
==67598== by 0x4025F9: sdds::Status::operator=(char
const*) (Status.cpp:50)
==67598== by 0x4018CF: Container::read(std::istream&)
(main_prof.cpp:62)
==67598== by 0x400EF1: operator>>(std::istream&,
40. Container&) (main_prof.cpp:95)
==67598== by 0x40102B: statusTester() (main_prof.cpp:111)
==67598== by 0x400E81: main (main_prof.cpp:23)
==67598==
==67598== LEAK SUMMARY:
==67598== definitely lost: 31 bytes in 2 blocks
==67598== indirectly lost: 0 bytes in 0 blocks
==67598== possibly lost: 0 bytes in 0 blocks
==67598== still reachable: 0 bytes in 0 blocks
==67598== suppressed: 0 bytes in 0 blocks
==67598==
==67598== ERROR SUMMARY: 6 errors from 4 contexts
(suppressed: 0 from 0)
==67598==
==67598== 1 errors in context 1 of 4:
==67598== Mismatched free() / delete / delete []
==67598== at 0x4C2B51D: operator delete(void*)
(vg_replace_malloc.c:586)
==67598== by 0x4025CE: sdds::Status::~Status()
(Status.cpp:45)
41. ==67598== by 0x4019B5: Container::~Container()
(main_prof.cpp:34)
==67598== by 0x40106C: statusTester() (main_prof.cpp:113)
==67598== by 0x400E81: main (main_prof.cpp:23)
==67598== Address 0x5afddc0 is 0 bytes inside a block of size
14 alloc'd
==67598== at 0x4C2AC38: operator new[](unsigned long)
(vg_replace_malloc.c:433)
==67598== by 0x4025F9: sdds::Status::operator=(char
const*) (Status.cpp:50)
==67598== by 0x40177B: Container::set(int)
(main_prof.cpp:39)
==67598== by 0x4018B8: Container::read(std::istream&)
(main_prof.cpp:59)
==67598== by 0x400EF1: operator>>(std::istream&,
Container&) (main_prof.cpp:95)
==67598== by 0x40102B: statusTester() (main_prof.cpp:111)
==67598== by 0x400E81: main (main_prof.cpp:23)
==67598==
==67598==
==67598== 3 errors in context 2 of 4:
42. ==67598== Mismatched free() / delete / delete []
==67598== at 0x4C2B51D: operator delete(void*)
(vg_replace_malloc.c:586)
==67598== by 0x4025CE: sdds::Status::~Status()
(Status.cpp:45)
==67598== by 0x4019B5: Container::~Container()
(main_prof.cpp:34)
==67598== by 0x401056: statusTester() (main_prof.cpp:112)
==67598== by 0x400E81: main (main_prof.cpp:23)
==67598== Address 0x5afdcd0 is 0 bytes inside a block of size
16 alloc'd
==67598== at 0x4C2AC38: operator new[](unsigned long)
(vg_replace_malloc.c:433)
==67598== by 0x4024F5: sdds::Status::Status(sdds::Status
const&) (Status.cpp:22)
==67598== by 0x4019EE: Container::Container(Container
const&) (main_prof.cpp:34)
==67598== by 0x40103E: statusTester() (main_prof.cpp:112)
==67598== by 0x400E81: main (main_prof.cpp:23)
==67598==
==67598== ERROR SUMMARY: 6 errors from 4 contexts
(suppressed: 0 from 0)
43. Script done on Sat 19 Mar 2022 11:56:32 AM EDT
date.cpp
#include <iostream>
#include <cstring>
#include <ctime>
#include "Date.h"
namespace sdds {
int Date::currentYear() {
time_t current_time;
current_time = time(NULL);
int year = 1970 + current_time / 31537970;
44. return year;
}
int Date::currentMonth() {
std::time_t current_time;
current_time = std::time(NULL);
std::tm* now = std::localtime(¤t_time);
int month = now->tm_mon + 1;
return month;
}
int Date::currentDay() {
std::time_t current_time;
current_time = std::time(NULL);
std::tm* now = std::localtime(¤t_time);
int day = now->tm_mday;
return day;
}
45. int Date::numOfDays(int mon, int year) const {
int days[] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31,
-1 };
int month = mon >= 1 && mon <= 12 ? mon : 13;
month--;
return days[month] + int((month == 1) * ((year % 4 == 0)
&& (year % 100 != 0)) || (year % 400 == 0));
}
bool Date::validate() {
bool isValid;
int min_year = currentYear();
if (m_year < min_year || m_year > max_year) {
State = "Invalid year in date";
State = 1;
isValid = false;
}
else if (m_month < 1 || m_month > 12) {
46. State = "Invalid month in date";
State = 2;
isValid = false;
}
else if (m_day < 1 || m_day > numOfDays(m_month,
m_year)) {
State = "Invalid day in date";
State = 3;
isValid = false;
}
else {
State.clear();
isValid = true;
}
return isValid;
}
Date::Date() {
m_year = currentYear();
73. endl;
for (int i = 0; i < 4; i++) {
cout << "> ";
cin >> c;
prnContainer(c);
}
}
// Copied from DateTester.cpp
void testDate() {
Date D;
cout << "> ";
cin >> D;
if (!cin) {
cin.clear();
cin.ignore(1000, 'n');
cout << D.state() << endl;
}
74. else {
cout << "Date enterd: " << D << endl;
}
}
void dateTester() {
cout << "Current Date: " << Date() << endl;
cout << "Test mode: " << endl;
ut.testMode();
Date C;
Date F(2022, 5, 25);
cout << "Current Date formatted (C): " << C << endl;
C.formatted(false);
cout << "Current Date unformatted (C): " << C << endl;
cout << "Future Date formatted (F): " << F << endl;
F.formatted(false);
cout << "Future Date unformatted (F): " << F << endl;
cout << "The current date is" << (C != F ? " NOT" : "") << "
the same as the future date" << endl;
cout << "The current date is" << (C == C ? "" : " NOT") << "
75. the same as the current date" << endl;
cout << "The current date is" << (C <= F ? " Less than or
equal to" : " greater than") << " the future date" << endl;;
cout << "The current date is" << (C <= C ? " Less than or
equal to" : " greater than") << " the current date" << endl;;
cout << "The current date is" << (C < F ? " Less than" : "
greater than or equal to") << " the future date" << endl;;
cout << "The future date is" << (F >= C ? " greater than or
equal to" : " Less than") << " the current date" << endl;;
cout << "The future date is" << (F >= F ? " greater than or
equal to" : " Less than") << " the future date" << endl;;
cout << "The future date is" << (F > C ? " greater than" : "
Less than or equal to") << " the current date" << endl;;
cout << "--------------nAssigning the Current date to the
future date!" << endl;
C = F;
if (C == F)
cout << "Now both of the dates are the same!" << endl;
else
cout << "The two dates are different after assignment!!!!!"
<< endl;
cout << "Enter the following:n1- abcn2- 12n3- 1212n4-
121212"
76. "n5- 221312n6- 220229n7- 220228" << endl;
for (int i = 0; i < 7; i++) {
testDate();
}
Script started on Sat 19 Mar 2022 11:54:49 AM EDT
==67598== Memcheck, a memory error detector
==67598== Copyright (C) 2002-2017, and GNU GPL'd, by
Julian Seward et al.
==67598== Using Valgrind-3.15.0 and LibVEX; rerun with -h
for copyright info
==67598== Command: ms
==67598==
Status Tester -----------------------------------------------------
Enter following values :
abc
123
-123
12
> abc
77. Container: (Invalid Integer)
Error #: 0
Problem: Invalid Integer
==67598== Mismatched free() / delete / delete []
==67598== at 0x4C2B51D: operator delete(void*)
(vg_replace_malloc.c:586)
==67598== by 0x4025CE: sdds::Status::~Status()
(Status.cpp:45)
==67598== by 0x4019B5: Container::~Container()
(main_prof.cpp:34)
==67598== by 0x401056: statusTester() (main_prof.cpp:112)
==67598== by 0x400E81: main (main_prof.cpp:23)
==67598== Address 0x5afdcd0 is 0 bytes inside a block of size
16 alloc'd
==67598== at 0x4C2AC38: operator new[](unsigned long)
(vg_replace_malloc.c:433)
==67598== by 0x4024F5: sdds::Status::Status(sdds::Status
const&) (Status.cpp:22)
==67598== by 0x4019EE: Container::Container(Container
const&) (main_prof.cpp:34)
==67598== by 0x40103E: statusTester() (main_prof.cpp:112)
78. ==67598== by 0x400E81: main (main_prof.cpp:23)
==67598==
> 12
Container: (12)
> 123
Container: (ERR#1: value too high)
Error #: 1
Problem: value too high
> -123
Container: (ERR#-1: value too low)
Error #: -1
Problem: value too low
==67598== Mismatched free() / delete / delete []
==67598== at 0x4C2B51D: operator delete(void*)
(vg_replace_malloc.c:586)
==67598== by 0x4025CE: sdds::Status::~Status()
(Status.cpp:45)
==67598== by 0x4019B5: Container::~Container()
(main_prof.cpp:34)
==67598== by 0x40106C: statusTester() (main_prof.cpp:113)
79. ==67598== by 0x400E81: main (main_prof.cpp:23)
==67598== Address 0x5afddc0 is 0 bytes inside a block of size
14 alloc'd
==67598== at 0x4C2AC38: operator new[](unsigned long)
(vg_replace_malloc.c:433)
==67598== by 0x4025F9: sdds::Status::operator=(char
const*) (Status.cpp:50)
==67598== by 0x40177B: Container::set(int)
(main_prof.cpp:39)
==67598== by 0x4018B8: Container::read(std::istream&)
(main_prof.cpp:59)
==67598== by 0x400EF1: operator>>(std::istream&,
Container&) (main_prof.cpp:95)
==67598== by 0x40102B: statusTester() (main_prof.cpp:111)
==67598== by 0x400E81: main (main_prof.cpp:23)
==67598==
Date Tester -------------------------------------------------------
Currect Date: 2022/03/19
Test mode:
Current Date formatted (C): 2022/03/19
Current Date unformatted (C): 220319
80. Future Date formatted (F): 2022/05/25
Future Date unformatted (F): 220525
The current date is NOT the same as the future date
The current date is the same as the current date
The current date is Less than or equal to the future date
The current date is Less than or equal to the current date
The current date is Less than the future date
The future date is greater than or equal to the current date
The future date is greater than or equal to the future date
The future date is greater than the current date
--------------
Assigning the Current date to the future date!
Now both of the dates are the same!
Enter the following:
1- abc
2- 12
3- 1212
4- 121212
81. 5- 221312
6- 220229
7- 220228
> abc
Invalid date value
> 12
Invalid date valueDate enterd: 2022/03/19
> 1212
Invalid date valueDate enterd: 2022/03/19
> 121212
Invalid date valueDate enterd: 2022/03/19
> 221312
Invalid date valueDate enterd: 2022/03/19
> 220229
Invalid date valueDate enterd: 2022/03/19
> 20220228
Invalid date valueDate enterd: 2022/03/19
==67598==
82. ==67598== HEAP SUMMARY:
==67598== in use at exit: 31 bytes in 2 blocks
==67598== total heap usage: 32 allocs, 30 frees, 75,963 bytes
allocated
==67598==
==67598== 15 bytes in 1 blocks are definitely lost in loss
record 1 of 2
==67598== at 0x4C2AC38: operator new[](unsigned long)
(vg_replace_malloc.c:433)
==67598== by 0x4025F9: sdds::Status::operator=(char
const*) (Status.cpp:50)
==67598== by 0x4017AD: Container::set(int)
(main_prof.cpp:43)
==67598== by 0x4018B8: Container::read(std::istream&)
(main_prof.cpp:59)
==67598== by 0x400EF1: operator>>(std::istream&,
Container&) (main_prof.cpp:95)
==67598== by 0x40102B: statusTester() (main_prof.cpp:111)
==67598== by 0x400E81: main (main_prof.cpp:23)
==67598==
==67598== 16 bytes in 1 blocks are definitely lost in loss
record 2 of 2
83. ==67598== at 0x4C2AC38: operator new[](unsigned long)
(vg_replace_malloc.c:433)
==67598== by 0x4025F9: sdds::Status::operator=(char
const*) (Status.cpp:50)
==67598== by 0x4018CF: Container::read(std::istream&)
(main_prof.cpp:62)
==67598== by 0x400EF1: operator>>(std::istream&,
Container&) (main_prof.cpp:95)
==67598== by 0x40102B: statusTester() (main_prof.cpp:111)
==67598== by 0x400E81: main (main_prof.cpp:23)
==67598==
==67598== LEAK SUMMARY:
==67598== definitely lost: 31 bytes in 2 blocks
==67598== indirectly lost: 0 bytes in 0 blocks
==67598== possibly lost: 0 bytes in 0 blocks
==67598== still reachable: 0 bytes in 0 blocks
==67598== suppressed: 0 bytes in 0 blocks
==67598==
==67598== ERROR SUMMARY: 6 errors from 4 contexts
(suppressed: 0 from 0)
84. ==67598==
==67598== 1 errors in context 1 of 4:
==67598== Mismatched free() / delete / delete []
==67598== at 0x4C2B51D: operator delete(void*)
(vg_replace_malloc.c:586)
==67598== by 0x4025CE: sdds::Status::~Status()
(Status.cpp:45)
==67598== by 0x4019B5: Container::~Container()
(main_prof.cpp:34)
==67598== by 0x40106C: statusTester() (main_prof.cpp:113)
==67598== by 0x400E81: main (main_prof.cpp:23)
==67598== Address 0x5afddc0 is 0 bytes inside a block of size
14 alloc'd
==67598== at 0x4C2AC38: operator new[](unsigned long)
(vg_replace_malloc.c:433)
==67598== by 0x4025F9: sdds::Status::operator=(char
const*) (Status.cpp:50)
==67598== by 0x40177B: Container::set(int)
(main_prof.cpp:39)
==67598== by 0x4018B8: Container::read(std::istream&)
(main_prof.cpp:59)
==67598== by 0x400EF1: operator>>(std::istream&,
Container&) (main_prof.cpp:95)
85. ==67598== by 0x40102B: statusTester() (main_prof.cpp:111)
==67598== by 0x400E81: main (main_prof.cpp:23)
==67598==
==67598==
==67598== 3 errors in context 2 of 4:
==67598== Mismatched free() / delete / delete []
==67598== at 0x4C2B51D: operator delete(void*)
(vg_replace_malloc.c:586)
==67598== by 0x4025CE: sdds::Status::~Status()
(Status.cpp:45)
==67598== by 0x4019B5: Container::~Container()
(main_prof.cpp:34)
==67598== by 0x401056: statusTester() (main_prof.cpp:112)
==67598== by 0x400E81: main (main_prof.cpp:23)
==67598== Address 0x5afdcd0 is 0 bytes inside a block of size
16 alloc'd
==67598== at 0x4C2AC38: operator new[](unsigned long)
(vg_replace_malloc.c:433)
==67598== by 0x4024F5: sdds::Status::Status(sdds::Status
const&) (Status.cpp:22)
==67598== by 0x4019EE: Container::Container(Container
86. const&) (main_prof.cpp:34)
==67598== by 0x40103E: statusTester() (main_prof.cpp:112)
==67598== by 0x400E81: main (main_prof.cpp:23)
==67598==
==67598== ERROR SUMMARY: 6 errors from 4 contexts
(suppressed: 0 from 0)
Script done on Sat 19 Mar 2022 11:56:32 AM EDT