Sales and profits - show car model the number of car in


Design and write a C program that manages Car sales database.

For each car, the program should collect and track of the following information:

Car Company Name
Car Model
Car Color
Unit Cost
Selling Price
Total Value of car
In Stock
Number of Car Sold
Profit

The program should have the following features:

Information will be stored in a file. This file provides the "permanent" storage for the employee database.

When the program starts it will first load data from the file.

Note: when the program starts for the first time, the file will not exist and there will be no data to load.

The program will display the menu. It is preferred that each selection calls a different function. Use a switch to make the selection.
Menu choices should include:

1-Display the list of all car record
2-Add a new record
3-Modify an existing record
4-Sales and Profits - show car model, the number of car in stock, car sold, unit cost, selling price and the profit for each car and the total profit for all cars.
5-Sort the list of car in alphabetic order, based on company name
6-Quit - Data is to be saved to a file which will then be used by the program on subsequent runs.

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Sales and profits - show car model the number of car in
Reference No:- TGS0665205

Now Priced at $40 (50% Discount)

Recommended (93%)

Rated (4.5/5)