Payment is INR 600
Program is in Visual Studio and has to be done right now.
2.1 - Write the definition of a class that represents a Car. Include the definition of these properties: VIN Number, GasLevel, Mileage, and MPG (Miles Per Gallon). Make sure to choose proper data types based on how these properties are used. For example, VIN Number, even though a number, but does not need to be defined as Integer.
2.2 - Having done the code for the above question, write the code for a Drive method, which accepts a value that represents the number of miles driven. Drive will update the Mileage property, and reduce the GasLevel based on the MPG and the miles driven. This method should allow the car to be driven based on whether there is enough gas in the tank. If the miles passed require more gas than what is in the tank, drive the car till the tank is empty, and adjust the mileage only by what the actual miles driven were.
2.3 - Write another method, PumpGas, which accepts a value that represents the number of gallons pumped. This method updates the GasLevel by adding the value of the argument received to the current GasLevel. What should the data type of the argument be?
2.4 - Now design a form and write code for the buttons to create a new car, drive it, and pump gas into it. Values for miles driven and gas gallons may be obtained from the end user via textboxes or Inputboxes. Below is a suggested GUI for the form.
9 pekerja bebas membida secara purata ₹1061 untuk pekerjaan ini
I am expert working in .net technology. I have done many windows application [login to view URL] depends on the requirements. I can complete it before time.
Hello, I have good experience on .NET technologies, i would like to work on your project. I will be deliver this in 1 day max. Looking forward for your response.