Hello, dear friend, you can consult us at any time if you have any questions, add WeChat: daixieit

ECS 36B Spring 2023

Homework #3 (5%)

Due: May 1, 11:59 pm (Unitrans, stage 1)

This is a group project involving exactly two students for stage 1.

You will design and implement classes and objects to represent at least the RED part, which tracks the movement of people and things, of the quoted story è

The ecs36b lecture on Wednesday, April 12 of 2023 ended at 6 pm in the room 176 of Everson Hall at UC Davis. The instructor took the Unitrans L line from the Silo Station, leaving at 6:10 pm, and the bus driver was a Psychology student named Tiffany. On the same bus, there was another ecs36b student, John. John asked the instructor some questions about homework assignment #2 (using his own computer), before he got off the bus at the 8th and J Street stop at 6:20 pm on the same date. After John being off the bus, the instructor started playing an online game on an Android device. The instructor said “thank you” to the bus driver, Tiffany, before he himself got off at the Moore and Pollock stop at 6:32 pm.

You should design and implement classes such as Person, Thing (e.g., bus, computer, device, ), GPS (i.e., locations for classroom and the bus stops), Time (e.g., JvTime), and particular Record (when, where, who, and which things).

Your test program will need to show the following FOUR records:

1. Class room at 6:00 pm

2. Silo station at 6:10 pm

3. 8th and J Street at 6:20 pm

4. Moore and Pollock at 6:32 pm

Furthermore, for each of the classes, you need to implement the member function dump2JSON

Json::Value <class_name>::dump2JSON();

Therefore, the test program you have will need to first create four records as stated above, then call dump2JSON on all four records to show the results.

For submission via canvas, please follow the steps:

· Create a subdirectory ecs36b_s2023, and then cd ecs36b_s2023. (mkdir, cd)

· Create a subdirectory hw3, and then cd hw3.

· Put all your programs and Makefile under the hw3 directory.

· You should also provide a README file to explain how to run your program.

· cd ..

· tar zcvf ecs36b_s2023_hw3_submission_<your_student_id>.tar.gz hw1

· upload ecs36b_s2023_hw3_submission_<your_user_id>.tar.gz to Canvas

· every member of the team needs to submit (the exact same copy) with both student IDs included in the README file.

Some extra info about Unitrans --

https://unitrans.ucdavis.edu/media/uploads/2021/12/10/2014_davis-unitrans_srtp_final.pdf