Important Lessons Learned in Developing a Vehicle Inventory System
Verified
Added on 2023/06/04
|3
|539
|339
AI Summary
This article discusses the important lessons learned in developing a vehicle inventory system, including file handling, loops and lists, modularity, and object-oriented constructs. It also covers the use of various programming elements such as print statements, arrays, dictionaries, and string manipulation functions.
Contribute Materials
Your contribution can guide someone’s learning journey. Share your
documents today.
Running head: TITLE (All CAPITALIZED)1 Assignment Name Coures Professor Date
Secure Best Marks with AI Grader
Need help grading? Try our AI Grader for instant feedback on your assignments.
TITLE (All CAPITALIZED)2 Summary The most important lesson that I learned while doing this assignment was file handling. If we don't do file handling, we can't store data, and all the data is present in the main memory. As soon as the program terminates, all the data is also lost. In the final assignment of vehicle inventory system, we are storing the data as a CSV(Comma-separated values) file on the disk. This data can be used later by any persons or the program as and when required. The second valuable lesson is the use of loops and lists. I am using loops to iterate through the list of automobiles. I can then use this information of each automobile as I wish. I am using the loops to traverse the list and then save it to a comma-Separated Values file. I am also using these loops to traverse the list and display the results on screen. Next important lesson that I learned is modularity. I am dividing our program into various small methods and then integrating these methods together to carry out the overall functionality. By the use of these methods, our program is straightforward to read and understand. Each method performs only one specific functionality. Therefore, it becomes straightforward to construct a program and then debug it in case of any errors by the use of these methods. The final lesson that I have learned through this application development is the use of various object-oriented constructs like classes and objects. I am making a separate class automobile in this program. This automobile class has various private variables and a constructor also to initialize these instance variables. Then I am using this automobile class in our main file to carry out various functionalities. I am also storing a number of objects of this class in a list.
TITLE (All CAPITALIZED)3 In one of the assignments, we carried out String validation by the use of various String methods. I learnt various string methods in python such as isUpper, isLower and isalnum to validate the input entered by the user. I have also used dictionaries in a program to calculate income tax. Dictionaries are used to store key value pair in python. In most of these assignments , I am also taking input from the user. I am taking input from the users which is of various data types. In these assignments, we have taken int, float and string types of input from the user. After taking input from the user we have carried out various operations on these inputs to process it and get the required result. To conclude,I am using most of the programming elements that are part of python basic programming. I have used print statements, loops, arrays, lists, dictionaries and various string manipulation functions in these programs.