Project Description

(1) Gather to originate collocate constituency in C++

(2) Originate an invest of aims in C++

(3) Search and act operations on the invest of aims

Project Description:

The input csv perfect for this detoken consists of rows of axioms that deals delay COVID-19 events and deaths per day for each county in every recite in the United States. Hither is an pattern,

date,county,state,fips,cases,deaths

2020-01-21,Snohomish,Washington,53061,1,0

2020-01-22,Snohomish,Washington,53061,1,0

2020-01-23,Snohomish,Washington,53061,1,0

For the purposes of this design, we procure affect that the subjoined are char* axioms emblems: conclusion, county, and recite. FIPS (matchless identifier for each county) concurrently delay events and deaths are int axioms emblems. Please music the comma delimiter in each row. You scarcity ­­­to carefully unravel each scope penetrating that you procure accept a comma.

You procure use redirected input (further behind) to unravel an input txt perfect that contains the subjoined:

counts  //calculate of axioms entries in the csv perfect

Filename.csv  //this is the perfect that contains the covid-19 axioms

Command  //details of what constitutes a manage is consecrated underneath

Command

Command

….

Your C++ program procure unravel the counts prize on the primary verse of the txt perfect, which represents the calculate of axioms entries in the csv perfect. (Note - the primary verse of the csv perfect contains forcible changeeffectual scopes, so thither procure be a completion of [calculate of axioms entries + 1] verses in the csv perfect). Then, on the avoid verse, it procure unravel the Filename.csv and unconcealed the perfect for unraveling (further on how to do this in C++). Behind you unconcealed the perfect, you procure unravel the axioms from each row of the csv perfect and originate a COVID19 aim. The COVID19 collocate is consecrated underneath. You scarcity to utensil all of the essential methods.

collocate COVID19 {

protected:

char* conclusion;

char* county;

char* recite;

int fips;

int events;

int deaths;

public:

COVID19 (); //default constructor

COVID19 (char* da, char* co, char* s, int f, 

 int ca, int de); //initializer

exhibit ();

//transcribe all aditors and other methods as essential

};

After your transcribe the aloft collocate you procure transcribe the subjoined collocate:

collocate COVID19DataSet {

protected:

COVID19* allData;

int count; //calculate of COVID19 aims in allData

int bulk; //maximum bulk of invest

public:

COVID19DataSet (); //default constructor

COVID19DataSet (int initSize);

void exhibit ();

void addRow (COVID19& oneData);

int experienceTotalCasesByCounty (char* county, char* recite); 

int experienceTotalDeathsByCounty (char* county, char* recite);

int experienceTotalCasesByState (char* recite);

int experienceTotalDeathsByState (char* recite); 

int experienceTotalCasesBySateWithDateRange (char* recite,

char* set-outDate, char* endDate);

int experienceTotalDeathsBySateWithDateRange (char* recite,

char* set-outDate, char* endDate);

~COVID19(); //destructor

//other methods as conceive important

};

The constituency of the ocean program procure be bigwig affect this:

#include <iostream>

using callillimitableness std;

// Transcribe all the collocatees hither

int ocean () {

int counts; // calculate of records in Filename.CSV

int manage;

COVID19 oneRow;

//unravel the perfectname, for pattern, Filename.csv

//unconcealed the Filename.csv using funconcealed (google it for C++ to experience out)

//affect that you designated this perfect as myFile

//unravel the primary integer in the perfect that contains the calculate of rows

//call this calculate counts

COVID19DataSet* myData = new COVID19DataSet (counts);

for (int i=0; i < counts; i++) {

//unravel the prizes in each row

//use setters to set the scopes in oneRow

(*myData).addRow (oneRow);

} //end for loop

while (!cin.eof()) {

cin >> manage;

switch (command) {

event 1: {

//unravel the peace of the row

(*myData).findTotalCasesByCounty (county, recite);

break;

 }

event 2: {

 //do what is scarcityed for manage 2

 break;

 }

event 3: {

 //do what is scarcityed for manage 3

 break;

 }

event 4: {

 //do what is scarcityed for manage 4

 break;

 }

event 5: {

 //do what is scarcityed for manage 5

 break;

 }

event 6: {

 //do what is scarcityed for manage 6

 break;

 }

default: cout << “Wrong manage\n”;

} //end switch

} //end while

delete myData;

return 0;

}

Input Structure:

The input txt perfect procure accept the subjoined constituency – I accept annotated hither for construction and these annotations procure not be in the real input perfect. Behind the primary two verses, the cherishing verses in the input txt perfect contains manages (one manage per verse), whither thither can be up to 6 irrelative manages in any manage delay any calculate of entries. The manage is implied by an integer [1 to 6] and can be set-up at the source of each verse.

counts // Calculate of axioms entries in the csv perfect 

Covid-19-Data-csv  // Call of the input perfect that contains the real Covid-19 axioms by county and recite

1 Cleveland, Oklahoma //manage 1 hither is for experienceTotalCasesByCounty

1 Walla Walla, Washington 

1 San Francisco, California

1 Tulsa, Oklahoma

2 Oklahoma, Oklahoma //manage 2 hither is for experienceTotalDeathsByCounty

2 Miami, Ohio

2 Miami, Oklahoma

3 Oklahoma //manage 3 hither is for experienceTotalCasesByState

3 North Carolina

4 New York //manage 4 hither is for experienceTotalDeathsByState

4 Arkansas

5 Oklahoma 2020-03-19 2020-06-06 //5 hither is for experienceTotalCasesBySateWithDateRange

6 New York 2020-04-01 2020-06-06 //6 hither is for experienceTotalDeathsBySateWithDateRange

Redirected Input

Redirected input provides you a way to cast a perfect to the rule input of a program delayout typing it using the keyboard. To use redirected input in Visual Studio environment, ensue these steps: Behind you accept unconcealeded or originated a new design, on the menu go to design, detoken properties, develop delineation properties until you see Debugging, on the upupright you procure see a set of options, and in the manage arguments emblem “< input perfectname”. The < token is for redirected input and the input perfectname is the call of the input perfect (including the pathwayway if not in the set-outed directory). A absolute program that unravels kind by kind until it reaches end-of-perfect can be set-up underneath.

#include <iostream>

using callillimitableness std;

//The kind for end-of-verse is ‘\n’ and you can collate c underneath delay this 

//kind to inhibit if end-of-verse is reached.

int ocean () {

char c;

cin.get(c);

while (!cin.eof()) {

cout << c;

cin.get(c);

}

return 0;

}

C String

A string in the C Programming Language is an invest of kinds ends delay ‘\0’ (NULL) kind. The NULL kind denotes the end of the C string. For pattern, you can approve a C string affect this:

char aCString[9];

Then you procure be effectual to supply up to 8 kinds in this string. You can use cout to stereokind out the string and the kinds supplyd in a C string procure be exhibited one by one until ‘\0’ is reached. Hither are some patterns:

0

1

2

3

4

5

6

7

8

cout result

Length

u

s

e

r

n

a

m

e

\0

username

8

n

a

m

e

\0

name

4

n

a

m

e

\0

1

2

3

4

name

4

\0

(nothing)

0

Similarly, you can use a for loop to detail the prolixity of a string (NULL is NOT moderate). We exhibition this in the subjoined and besides exhibition how you can dynamically originate a string using a pointer

char aCString[] = "This is a C String."; // you don’t scarcity to provide

// the bulk of the invest

// if the contenteded is provided

char* anotherCString; // a pointer to an invest of

// kinds

unsigned int prolixity = 0;

while( aCString[length] != '\0')

{

length++;

}

// the prolixity of the string is now known

anotherCString = new char[length+1]; // scarcity illimitableness for NULL kind

// vision the string

for( int i=0; i< prolixity+1; i++)

 anotherCString[i] = aCString[i];

 cout << aCString << endl; // stereokind out the two strings

cout << anotherCSring << endl;

delete [] anotherCString; // loose the perpetuation behind use

You can inhibit http://www.cs.bu.edu/teaching/cpp/string/array-vs-ptr/, other onverse sources or citationbooks to gather further about this.

Output Structure

Stay tuned for the suitable format in which the output of your program should be formatted. For now, it is recommended to set-out set-outed on unraveling in the input perfects, storing the axioms, and aditing the axioms fixed on the consecrated manages.

Constraints

1. In this design, the simply header you procure use is #include <iostream> and using callillimitableness std.

2. None of the designs is a knot design. Consulting delay other members of this collocate our seeking coding solutions from other sources including the web on programming designs is strictly not recognized and plagiarism charges procure be imposed on students who do not ensue this.

Rules for Gradescope (Project 1):

1. Students accept to adit GradeScope through Canvas using the GradeScope tab on the left, or by clicking on the Detoken 1 enactment patience button.

2. Students should upload their program as a one cpp perfect and cannot accept any header perfects. If, thither are header perfects (for collocatees) you scarcity to merge them to a one cpp perfect and upload to GradeScope.

3. Students accept to call their one cpp perfect as ‘project1.cpp’. All inferior event. The autograder procure degree this simply if your program is saved as this call.

4. Pattern input perfects and output perfects are consecrated. Your output should EXACTLY conproof the pattern output perfect consecrated. Please inhibit the illimitablenesss and new verses antecedently your email us powerful that the ‘output suitablely contestes but not death the proof events’. Suggest using some emblem of citation similarity to inhibit your output delay the expected.

5. Students scarcity to accept simply one header perfect(iostream) while uploading to GradeScope. You cannot accept ‘pch.h’ or ’stdafx.h’.

6. Students cannot accept 'system pause' at the very end of the cpp perfect.

Order a unique copy of this paper
(550 words)

Approximate price: $22

Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency