I need a program

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • VeGo
    New Member
    • Jun 2021
    • 1

    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
    producers;
    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
    BMW;
    8. Displays on the screen the attributes of the vehicles, the price of which does not exceed the value entered from the keyboard.
    Last edited by Banfa; Jun 4 '21, 03:06 PM.
  • Banfa
    Recognized Expert Expert
    • Feb 2006
    • 9067

    #2
    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

    Comment

    Working...