Menu
support@nursinghomework.org
+1 714-215-3097

(Solved) : Write C Program Windows Form Load Parse Xml Configuration Files Vehicles Program Able Hand Q35584961

Write C# program in Windows Form to  to Load and Parsethe XML configuration files for vehicles. The program should beable to handle badly formed files or errors in the data in asuitable manner without crashing the program. Need to create XMLfiles for testing purposes.

Then it should allow users to write any SQL query theywish and have it run against the database. The program shouldreturn sensible errors any time the SQL written is not valid. Theusers should NOT be allowed to add, modify or delete data from thedatabase.

An example layout of the XML file is as follows:

For Petrol Vehicles

<vehicle>

     <engine>Petrol</engine>

<vehicleID>Vehicle01</vehicleID>

     <range>1500</range>

     <weight>35</weight>

     <carryCapacity>12</carryCapacity>

     <topspeed>24.9</topspeed>

      <noise>65</noise>

     <cylinders>4</cylinders>

</vehicle>

For Electric Vehicles

<vehicle>

     <engine>Electric</vehicle>

<vehicleID>Vehicle02</vehicleID>

     <range>2500</range>

     <weight>30</weight>

     <carryCapacity>10</carryCapacity>

     <topspeed>22.1</topspeed>

     <voltage>40</voltage>

     <brushed>0</brushed>

</vehicle>

These specifications are then stored in two of three databasetables in an SQLite database. The database schema is shown below:

Table : Vehicle

vehicleID – varchar(20) (Primary Key)

engine – varchar(20)

range – integer

weight – integer

carryCapacity – integer

topspeed – real

Table : Petrol

vehicleID – varchar(20) (Primary Key)

noise – integer

cylinders – integer

Table : Electric

vehicleID – varchar(20) (Primary Key)

voltage – integer

brushed – integer

Leave a Reply

Your email address will not be published. Required fields are marked *