文件名称:UsedCarSystem
介绍说明--下载内容均来自于网络,请自行研究使用
简易二手车管理系统
可添加删除车辆、修改车辆具体信息(车型、厂家、型号、购入时间、购入价格、是否售出、售出价格)、将车辆信息保存到外部文档、从外部文档读取车辆信息-System Design
Class car:
includes car’s self-attributes, such as its number, logo, price.etc.
Class DataStream:
includes 2 methods, readData() and saveData()
readData(): use DataInputStream get data “CarData.txt”, and then put data into class car’s object.
saveData(): use Array store cars’ data their object, and use DataOutputStream to store data in “CarData.txt”
Class AddAndDel:
Includes 2 methods, addNewCar() and DelSoldCar()
addNewCar(): read Child object of car, add a new object in the end. Scan its details.
DelSoldCar(): scan the number of the sold car, mark it and scan its sale price and date of sale.
Class Show:
Includes 4 methods, showAll(), showOnList(), showOnListByDate() and showSold()
showAll(): Traversing all child objects and print them on screen.
showOnList():Traversing all child objects, recognize which have not been sold and print them on screen.
showOnListByDate(): On basis of showOnList(), using Bubbling algorithm to sort dates
可添加删除车辆、修改车辆具体信息(车型、厂家、型号、购入时间、购入价格、是否售出、售出价格)、将车辆信息保存到外部文档、从外部文档读取车辆信息-System Design
Class car:
includes car’s self-attributes, such as its number, logo, price.etc.
Class DataStream:
includes 2 methods, readData() and saveData()
readData(): use DataInputStream get data “CarData.txt”, and then put data into class car’s object.
saveData(): use Array store cars’ data their object, and use DataOutputStream to store data in “CarData.txt”
Class AddAndDel:
Includes 2 methods, addNewCar() and DelSoldCar()
addNewCar(): read Child object of car, add a new object in the end. Scan its details.
DelSoldCar(): scan the number of the sold car, mark it and scan its sale price and date of sale.
Class Show:
Includes 4 methods, showAll(), showOnList(), showOnListByDate() and showSold()
showAll(): Traversing all child objects and print them on screen.
showOnList():Traversing all child objects, recognize which have not been sold and print them on screen.
showOnListByDate(): On basis of showOnList(), using Bubbling algorithm to sort dates
(系统自动生成,下载前可以参看下载内容)
下载文件列表
UsedCarSystem\CarData.txt
UsedCarSystem
.............\bin
.............\...\CSE105
.............\...\......\AddAndDel.class
.............\...\......\Car.class
.............\...\......\DataStream.class
.............\...\......\Menu.class
.............\...\......\Show.class
.............\build.xml
.............\manifest.mf
.............\nbproject
.............\.........\build-impl.xml
.............\.........\configs
.............\.........\.......\DataStream.properties
.............\.........\.......\Menu.properties
.............\.........\.......\test.properties
.............\.........\genfiles.properties
.............\.........\project.properties
.............\.........\project.xml
.............\src
.............\...\CSE105
.............\...\......\AddAndDel.java
.............\...\......\Car.java
.............\...\......\DataStream.java
.............\...\......\Menu.java
.............\...\......\Show.java
.............\System Design.docx