Question: C++ Simple Car Dealership Program Use of Vectors not allowed , Will thumbs up helpful / correct solution! A car manufacturing company is looking for

C++ Simple Car Dealership Program

Use of Vectors not allowed, Will thumbs up helpful / correct solution!

C++ Simple Car Dealership Program Use of Vectors not allowed, Will thumbs

A car manufacturing company is looking for a system that can handle production and selling. This system can handle multiple car productions, car sales, and revenue management. The goal is to use classes to implement data structure and operations to handle these efficiently. In order to meet this goal, you are required to have 2 different classes. One of the classes accommodate the entity of 'car' which should have the following hidden variables Quantity of the cars Price of each car Model of the cars Construct the class by adding the cars to the inventory and the revenue Assuming your class is called car, in a sample class initialization, you will add 10 Honda to your inventory with the price of 25000 dollars each, and the model of Accord (string) car honda(10, 25000, "Accord") Your car class can handle the following functions Get the price of the car Get the total worth of the cars. For instance, if you have added 5 cars with S5000 price, the function return $25000 as an integer value Set the Price of the car Set the quantity of the cars * Another requirement is to have a class to accommodate sales. This class accommodates the total number of cars in the inventory and the revenue amount of the company as hidden variables. This class provides these simple functions . Selling a car: o o Decreases inventory by the quantity of sale Decrease revenue based on the quantity and the price of sale. You have to pass car as a parameter of the function. For example, selling 2 honda with the price of $10000 has to decrease 2 from the number of cars in the inventory and $20,000 from the revenue amount. Syntax: inventory.sell(honda, 2, 2000); Get total number of cars in the inventory as of the moment. (Returns the number of cars in the inventory)- Example: inventory.getNumberofCars0; Get the revenue. (Returns the amount of revenue) - Example: inventory.getRevenue0; Accept an amount and add that into the revenue. Functions accepts an integer value and add that to the revenue amount. - Example: inventory.acceptAmount(int 120000) Construct the class by initialize a starting revenue Your program should be able to handle this sample set of operations Initialize the revenue to 0 or another amount. * Add some cars to the inventory . Get price of a car * Sell some cars by providing quantity and the price Get the revenue amount. Accept a custom amount and add it to the revenue A car manufacturing company is looking for a system that can handle production and selling. This system can handle multiple car productions, car sales, and revenue management. The goal is to use classes to implement data structure and operations to handle these efficiently. In order to meet this goal, you are required to have 2 different classes. One of the classes accommodate the entity of 'car' which should have the following hidden variables Quantity of the cars Price of each car Model of the cars Construct the class by adding the cars to the inventory and the revenue Assuming your class is called car, in a sample class initialization, you will add 10 Honda to your inventory with the price of 25000 dollars each, and the model of Accord (string) car honda(10, 25000, "Accord") Your car class can handle the following functions Get the price of the car Get the total worth of the cars. For instance, if you have added 5 cars with S5000 price, the function return $25000 as an integer value Set the Price of the car Set the quantity of the cars * Another requirement is to have a class to accommodate sales. This class accommodates the total number of cars in the inventory and the revenue amount of the company as hidden variables. This class provides these simple functions . Selling a car: o o Decreases inventory by the quantity of sale Decrease revenue based on the quantity and the price of sale. You have to pass car as a parameter of the function. For example, selling 2 honda with the price of $10000 has to decrease 2 from the number of cars in the inventory and $20,000 from the revenue amount. Syntax: inventory.sell(honda, 2, 2000); Get total number of cars in the inventory as of the moment. (Returns the number of cars in the inventory)- Example: inventory.getNumberofCars0; Get the revenue. (Returns the amount of revenue) - Example: inventory.getRevenue0; Accept an amount and add that into the revenue. Functions accepts an integer value and add that to the revenue amount. - Example: inventory.acceptAmount(int 120000) Construct the class by initialize a starting revenue Your program should be able to handle this sample set of operations Initialize the revenue to 0 or another amount. * Add some cars to the inventory . Get price of a car * Sell some cars by providing quantity and the price Get the revenue amount. Accept a custom amount and add it to the revenue

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!