Display the list of all car record

Assignment Help C/C++ Programming
Reference no: EM13326538

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.

Reference no: EM13326538

Questions Cloud

What is the frequency of the whistle : A child is walking toward a wall at a speed of 1.00m/s in a direction at right angles to the wall. what is the frequency of the whistle
What is the resultant of these two forces : Two forces are applied to a car in an effort to move it, as shown in the following figure, where F1 = 423 N and F2 = 355 N. What is the resultant of these two forces
What does the scale read during the acceleration : A woman stands on a scale in a moving elevator. Her mass is 55.0 kg, and the combined mass of the elevator and scale is an additional 755 kg. What does the scale read (in N) during the acceleration
Find the magnitude of the charge on the plates : A capacitor consists of a set of two parallel plates of area A separated by a distance d. find the magnitude of the charge on the plates
Display the list of all car record : 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.
What is the net force exerted by these two charges : Two point charges are placed on the y axis as follows: charge q1= -1.50 nC at y= -.600m, What is the net force (magnitude and DIRECTION) exerted by these two charges on a third charge
Propose solution capable of running on specified hardware : Propose a solution capable of running on the specified hardware platform. Your analysis should include the advantages and disadvantages of Ubuntu vs. Windows Server.
Generate a key for some email addresses : Generate a public and private key pair for yourself. If you have any problem in installing it properly, please discuss this in the project folder.
Determine the escape velocity from the sun for an object : Determine the escape velocity from the Sun for an object at the Sun's surface (r = 7.5 × 105 km, M = 2.0 × 1030 kg)

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Reverses all the element of an array

Write a function that reverses all the element of an array.that is,the first element is exchanged with the last element; the second element is exchange with the second to the last element,and so on

  An expression whose value depends upon the evaluation

Give an example in C++ of an expression whose value depends upon the evaluation order. Show the orders that produce different values and the values they produce. Explain what side effect is the expression contains.

  Write a c program to compute dr if f1=50 lb and f2 = 4000

make a program for:A hydraulic lift as shown below from fluid mechanics, it can be shown that a small force F1     acting over a piston of diameter D 1    can be multiplied into a large force   F 2    acting over a piston of diameter D 2  .

  Write a program to find that number for nguyen.

In some Asian countries, 8 and 6 are considered lucky digits. Any number containing only 8s and 6s is considered lucky number, e.g. 6, 8, 66, 668, 88, 886 .... Nguyen is a student who likes mathematics very much. Nguyen likes lucky numbers but only o..

  Given a character code to indicate the type of customer

Pete's Plumbing of Pompey sells to both retail and wholesale buyers. The retail buyer must pay New York State and Onondaga County sales tax (8%). However, the wholesale buyer does not pay sales tax and receives a volume discount on the amount purchas..

  Develop a program that when you pipe in a file

develop a program that when you pipe in a file it will demonstrate on the left had side the line number  work by having a program piped in and when a \n occurs a new line and number is indicated.

  Write a c++ program to first find ''n'' fibonacci numbers

Write a C++ program to first find 'N' Fibonacci numbers and then display only the "even" Fibonacci numbers in "descending order" as output.

  Write a menu-driven program that maintains an address book

Write a menu-driven program that maintains an address book using a linked list. The address book must supports the following operations

  Model-view-controller

Explain Model-View-Controller paradigm

  What output would be produced by the program segment

What output would be produced by the following program segment?

  Write a recursive and iterative versions of binary search

in C++ write a recursive and iterative versions of binary search and compare their run times using the array a[i]=i, i=0,..., n-1

  Execute the next line which is enter your last name

C++ in VS and I'm trying to run the following program. As soon as I put in my name after the 2nd cout statement, the program ends.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd