Create a C++ program that will quantify and summarize Divvy Biketrip data, using . Your program will have options to

 

Create a C++ program that will quantify and summarize Divvy Biketrip data, using . Your program will have options to analyze the dataset as awhole and to analyze patterns and similarities between a weekday (September 1st) and aweekend (September 4th). Running your program will look like what is shown below, alsoavailable as a :

Changes made Thursday 10/21:

1.                  New datafile uploaded to Zybooks, small enough to be usable in thatenvironment. Sample output recreated to reflect results when using that new smallerdataset.

2.                  Datafile selection sub-menu: Option 2 no longer refers to thesecond datafile as having “50,000+” rides. A new menu option 3 isgiven to refer to the full dataset, which you may want to use for your ownexploration, even though it will not be tested in Zybooks.

3.                  Notes include hints on how to convert a string to an integer ordouble

4.                  Menu option 4 (week day vs. weekend) submenu option 2 now is: 2. Proportional50 column graph with @ for weekday and + for weekend

 

 

Notes

 

Youwill need to convert strings to numerical values for some parts of yourprogram. Here is an example of how to do this, assuming it runs in a C++program that has #include<string> at the top:

     strings1 = “32767”;

     strings2 = “3.14159”;

     intintegerValue = stoi( s1);    // Convertstring s1 to integer, giving 23767

     doubledoubleValue = stod( s2);  // Convertstring s2 to double, giving 3.14159

 

Yourprogram must present the following six menu options:

Selecta menu option:

1.Select datafile, display rides totals and clean data

2.Display overall trip information.

3.Display percentage of members vs. casual riders

4.Display weekday vs weekend usage

5.Extra Credit: find closest station

6.Exit

Yourchoice –>

 

Theuser must select menu option 1 (select data file…) prior to selecting anyother menu options. Failing to do so results in an error message prompting theuser to first choose menu option 1.

 

Menu Option 1

Selectthe file you would like to read data from. When menu option 1 is selected, yourprogram will then prompt for a sub-menu option asking for which data file to beused, as follows:

Selectdatafile:

1. Small subset of data with 14 rides to helpcreate your program

2. Week day vs weekend rides

3. All September 2021 data (not tested inZybooks)

Yourselection–> 1

Total# of trips found in datafile: 13

Total# of trips in clean data: 10

Thesample above shows how after the datafile is read, your program then displaysthe total number of trips in the datafile, along with the number of tripsconsidered “clean” data, where all fields for that trip have valuesin them. Subsequent steps all use the clean data.

 

Menu Option 2

Providesthe following general information on the cleaned data

   Total # of miles traveled

   Average length of trips in miles

   Longest trip ID, start and end locations and distance in miles

Thislooks like the following:

Total# of miles traveled: 12

Averagelength of trips in miles: 1.2

Longesttrip information below:

——————————-

TripID: B465E78B601DB5A8

Tripstart location: Broadway & Belmont Ave

Tripend location: Broadway & Thorndale Ave

Tripdistance in miles: 3.5

 

Menu Option 3

Displaythe percentage of casual vs member riders. This looks like the following:

CasualRider Percentage: 40.0%

MemberRider Percentage: 60.0%

Menu Option 4

Compute and display the number oftrips by hour, comparing Divvy bike data for September 1st and 4th. This has a sub-menu as follows:

Select type of display:

1. Counts of rides per hour in the day

2. Proportional 50 column graph with @ forweekday and + for weekend

Your selection–> 1

LargestNumberOfRides is: 1317

Rides per hour for weekday and weekend:

0: 66 324

1: 26 245

2: 18 122

3: 7 55

4: 16 36

5: 86 42

6: 301 70

7: 565 144

8: 556 275

9: 382 437

10: 311 671

11: 402 770

12: 495 915

13: 428 852

14: 436 819

15: 602 881

16: 845 876

17: 1317 822

18: 1093 751

19: 821 611

20: 533 461

21: 442 376

22: 305 477

23: 174 375

 

Selectingthe sub-menu option 2 gives an ASCII graphics scaled graph. To create thisgraph first find the largest number of rides for any hour of either the weekdayor weekend. For each displayed value figure out what it is as a fraction ofthis largest value. Multiply that by 50 to give the number of characters to bedisplayed. See the google doc sample output near the top of this page forsample output after choosing this menu option.

Menu Option 5 (Extra Credit)

SearchGoogle to find a really nice home in Chicago you would like to live in. InGoogle maps and click on that home to create a “pin” at that spot.Then right-click on the pin to display location information. Click on thelatitude, longitude information shown to copy those numbers. Use those numbersas input to your program, which then should figure out and display the Divvystation closest to that location. See the google doc sample output near the topof this page for sample output after choosing this menu option.

 

Menu Option 6

Exitthe program.


Run the program, again and again, to make sure you know what’s going on, then write c++ in your own version(function names, variable).

After you finish, write 500 words to compare why you chose that version, and why it’s better than the solution program. 


You can work on the startercode that I attached.


Get 20% Discount on This Paper
Pages (550 words)
Approximate price: -

Try it now!

Get 20% Discount on This Paper

We'll send you the first draft for approval by at
Total price:
$0.00

How it works?

Follow these simple steps to get your paper done

Place your order

Fill in the order form and provide all details of your assignment.

Proceed with the payment

Choose the payment system that suits you most.

Receive the final file

Once your paper is ready, we will email it to you.

Our Services

Ace Writing Center has stood as the world’s leading custom essay writing services providers. Once you enter all the details in the order form under the place order button, the rest is up to us.

Essays

Essay Writing Services

At Ace Writing Center, Nowadays, students normally have extremely busy schedules. You will note that some of them have to take on some evening or weekend jobs in order to get some income that can help them to sustain in college or in the university. This can deny them a chance to write all the essays given. Others usually get bombarded with a lot of work by their lecturers. This can still delay such students from working on all their essays. However, some of them usually try to work on all these essays but end up delivering their work late. This can prevent them from graduating since most lecturers are strict on deadlines. If you want to write a business essay, the wise way is to hire an outstanding essay writing service like us, so that you can get the best results. If you are keen, you will note that many companies usually overcharge their customers. Some of them are there only to make money. And in reality, they really don’t care to build a long term commitment with students. You should not choose such companies. You should take your time and choose a reliable company to work with. Ace Writing Center is the ultimate solution for you. We have been offering our writing service for more than 7 years. This is a clear indication that you will get quality essay writing service. We have a wide range of writers who can work on any business essay that you might have. We believe in doing extensive research so that we can provide quality work to all our clients. .

Admissions

Admission and Business Papers

Have you ever had to write an admission essay for college? The majority of students face the same issues when applying to a university or college and many in such situations decide they need professional help to cope with this matter. They get in a situation when the deadline keeps coming closer but lack motivation to start because they are just not sure if their writing skills are strong enough. We have a solution for you! Ace Writing Center is the best admission essay writing service with a large professional team and years of experience in providing high-quality papers to students of all levels and faculties. The mission of our team is to help students make their dreams of entering a good college come true and that’s what we offer!.

Editing

Editing and Proofreading

Sometimes all the words for your paper just flow out of your mind and into your fingers. You type quickly at your keyboard and there they are, your beautiful words right there on the screen. But you have no idea how to polish it up. You may be wishing there was a paper writing service that offered this type of writing service. Look no more! Here at Ace Writing Center, we offer you an editing and proofreading option that you can't find anywhere else..

Coursework

College Essay Writing

In case you are familiar Ace Writing Center, you know the way to distinguish a better company from a cheap one exactly. First of all, poor service website does not have a sufficient support. We think support team is an essential part of success; it has to answer all clients’ questions and be a connecting link between clients and their writers. On our web-service you will get answers about anything you need and your writer will receive all your instructions, assignments and requirements exactly and swiftly. A writing service that we run has got a flexible pricing system that will save you from senseless wastes and many bonus systems that let you sparing money for something important for you.