locked
Complex C# code RRS feed

  • Question

  • Not so long ago I moved to the Faculty of Computer Science, lagging behind the classmates and I find it difficult to write this code. If you can help at least partly, I will be very grateful.
    Here is the task:

    Setting up a task. 
    The catalog stores information about the main parameters of monitors for two types of PCs: LCD and touch. When buying an LCD monitor with a tv tuner worth more than 5 thousand Grn a 5% discount is available. When buying a touch monitor, a loan is provided for 12 months.
    Develop a program to work with these monitors.
    Implement 2 versions of the program (console and with the Windows Forms interface).
    Program requirements.
    1. Develop the structure of the input file for storing monitor data.
    To describe LCD monitors in a file, you need to store the following information:
    - the model;
    - the manufacturer (for example, ASUS, LG)
    - diagonal;
    - tv tuner (yes, no);
    - permission (e.g., 1920x1080)
    - type of matrix (for example, PLS)
    - cost.
    To describe the touch screens in a file, you need to store the following information:
    - the model;
    - the manufacturer (for example, POS Sector)
    - diagonal;
    - permission (e.g., 1920x1080)
    - type of touch screen;
    - volume of HDD;
    - cost.
    Note.
    In order to distinguish between types of monitors when reading from a file in a collection, you can add a feature to the file.
    You can specify other monitor parameters.
    2. Develop a hierarchy of classes (1 base, 2 derivatives).
    In the base class, keep general information about the monitors, in the derivatives - specific (one derivative class for the LCD, another for the sensory). Announce in the base class a virtual method for calculating the purchase price that is to be realized in derived classes.
    When buying a monitor with a tv tuner worth more than 5 thousand Grn a 5% discount is available. When buying a touch monitor, a loan is provided for 12 months. under 3%. In the method it is necessary to calculate the cost of payment for each month.
    3. In the console version, create two Collections List <> to store the data about the monitors and fill the collections from the file.
    4. To implement the functions of the program:
    - adding, removing monitors;
    - Editing data on price and characteristics;
    - viewing models of touch screens, ordered in price in ascending order;
    - selection of LCD monitors only;
    - the choice of printers of the specified firm;
    - search for ASUS LCD monitors;
    - calculation of the cost of the LCD monitor
    - Calculate the cost of payment for 1 month of touch monitor.
    5. In a project with the Windows Forms interface, use the LinkedList <T> collection. Implement on the form a view of the collection elements in the forward and backward directions.

    • Edited by l_Nort_l Wednesday, April 4, 2018 9:34 AM
    Wednesday, April 4, 2018 9:30 AM

All replies

  • This looks like a homework assignment which we do not help with here. It is also far too large for anyone to write for you. Please try to do this yourself (take a C# course if you need to) and then post back here with specific questions about the code you've written and we can help you at that point.

    Michael Taylor http://www.michaeltaylorp3.net

    • Proposed as answer by Cor Ligthert Wednesday, April 4, 2018 2:42 PM
    Wednesday, April 4, 2018 2:35 PM
  • In addition to Michael, 

    There is nothing complex in the code, it could also be used for cars and bikes. It is just a kind of inventory, not the use of the monitors. 


    Success
    Cor

    Wednesday, April 4, 2018 2:41 PM