Posted: December 6th, 2022

Your company’s CommunityBike app was a hit! Now the customer wants to offer bike

Place your order now for a similar assignment and have exceptional work written by our team of experts, At affordable rates

For This or a Similar Paper Click To Order Now

Your company’s CommunityBike app was a hit! Now the customer wants to offer bikes for sale as well as rent bikes by the hour.
To implement the bike sale feature, senior developer “Lil” split the CommunityBike class into two classes:
base class Bike is for sale bikes, and
derived class CommunityBike is for rental bikes.
Lil plans to build a single list of Bike and CommunityBike class instances. This list will store Bike* pointers, but each CommunityBike instance is also a Bike instance so this list will store all the customer’s bikes.
Lil recommended these changes:
Add a member variable ms_serialNumber of type string to track all bike frame serial numbers, for security.
Replace the LinkedList class with std::list Links to an external site., because the class template offers better functionality and ease of maintenance (good C++ programmers know std::list, but they’d have to learn the LinkedList class code).
As a junior developer, you’re asked to complete Lil’s recommended tasks. Start with the PA11 starter code provided below, which runs correctly using the LinkedList class.
Add member variable ms_serialNumber in the appropriate class declaration. Use type string.
Add getter and setter functions for this new member variable ms_serialNumber.
Replace the LinkedList g_bikes variable with std::list g_bikes, remove all references to the LinkedList and Node classes, and make the app work with these changes.

For This or a Similar Paper Click To Order Now

Expert paper writers are just a few clicks away

Place an order in 3 easy steps. Takes less than 5 mins.

Calculate the price of your order

You will get a personal manager and a discount.
We'll send you the first draft for approval by at
Total price:
$0.00