470,871 Members | 2,062 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,871 developers. It's quick & easy.

I need a program

Can someone help me i need to write this program
Information on car sales offers from a specialist store is recorded in the file
textual Auto.txt.
For each line of the Auto.txt file only one record is presented and reciprocally. A line in the file
respectively contains the following data, separated by space:
 NrInreg (Registration number);
 Company (Manufacturer: Audi, BMW, Dacia, Honda, ...);
 Model (Model: 100, X5, Nova, STEED, ...);
 Color, Price (Price);
 DenTara (Name of the producing country).
Develop a C / C ++ language program that will use menus and subprograms to implement
at the request of the user, the following sub-tasks:
1. Register a new vehicle;
2. Exclude from the Auto.txt file the line corresponding to the vehicle, the registration number of which is
enter from the keyboard;
3. Displays the attributes of all vehicles on the screen in alphabetical order of company names
4. Determines the average price of vehicles produced in the country, indicated on the keyboard;
5. Displays the attributes of the most expensive and cheapest green car;
6. Determine the name of the company, represented by the maximum number of copies;
7. Create the Audi & BMW.txt text file which will copy the attributes of Audi vehicles and
8. Displays on the screen the attributes of the vehicles, the price of which does not exceed the value entered from the keyboard.
Jun 2 '21 #1
1 2663
9,065 Expert Mod 8TB
On the whole people are not going to respond to a request that involves a lot of work where you have done none, especially one like this that reeks of being a piece of course work.

If the separator between fields is a space how will you handle data fields that have spaces in them i.e. car manufacturer Alfa Romeo
Jun 4 '21 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

22 posts views Thread by edgrsprj | last post: by
11 posts views Thread by christopher diggins | last post: by
1 post views Thread by Eric Whittaker | last post: by
1 post views Thread by sylsau | last post: by
9 posts views Thread by Hemal | last post: by
7 posts views Thread by ibtc209 | last post: by
2 posts views Thread by Banfa | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.