求助帮忙写一个java程序

来源:百度知道 编辑:UC知道 时间:2024/06/04 11:10:39
‘Broken-down car and truck sales’ requires a simple console based application that will allow them to maintain an accurate inventory of their current stock. The application must allow them to add and remove vehicles to/from their current stock list. They must be able to search for a vehicle by its registration number and print its details to the screen if found. The user should be able to list all vehicles held in stock.
Your menu could look something like this:
***** Broken-down Inventory Menu ****** 1. Add Vehicle 2. Delete Vehicle 3. Search
4. List Vehicles 5. Exit *************************************** Select one of the options above:
DBSD152 – Workplace practices and object-oriented programming 1
Semester 2 - 2009
1. Add Vehicle - Add a vehicle to the current stock. Request from the user the type of vehicle (car or truck), input the relevant details and add it to the correct position (so the array stays sorted correctly) in the array.
2. Delete

帮不上什么忙 翻译下 高手解决

破旧汽车和卡车销售量'需要一个简单的控制台的应用程序,使他们能够保持其目前的库存准确的库存。 应用程序必须让他们添加和删除车辆/从目前的库存清单。 它们必须能够通过其为车辆登记号码的搜索和打印到屏幕上的细节如发现。 ****** 1.用户应能列出库存的所有车辆。您的菜单看起来是这样的:*****坏库存菜单****** 1所示。 2.新增车辆2。 3.删除车辆3。 4.搜索4。 5.名单车辆5。 Exit *************************************** 退出***************************************选择一个以上的选项:DBSD152 -工作间做法和面向对象编程1学期2 - 2009年1。新增车辆-添加的工具,以当前的股票。 2.从用户请求车辆类型(汽车或卡车),输入有关的细节,并将其添加到正确的位置(所以数组保持正确排序)数组中。删除车辆-删除从当前股票的车辆。 从用户请为车辆登记号码删除。 3. (如果车辆被删除没有雷戈则使/模型/需要的是车辆里程表) 4.搜索-搜寻其车辆登记号码的细节和打印到屏幕上,如果存在的话。(使用二进制搜索)名单车辆-列出所有的车辆目前在院子里的汽车。 5. 退出-返回到登录屏幕,我们将存储在一个有序数组的股票的细节,同时在应用程序打开,然后写入数组的内容到一个文件名为坏********** Broken-down Menu *********** 0.我们也会使用这个文件来填补我们的数组当我们启动项目清单。为了防止访问我们的记录,我们也会保护我们的应用程序,只允许与有效的用户的用户名和密码来访问我们的库存以上程序中任何人。甲日志就如下面的菜单可显示在应用程序启动或当用户注销系统:**********坏菜单*********** 0 。 1.登录*************************************** .关机***************************************选择一个以上的选项:1.登录上允许用户输入用户名和密码1。关机-从应用程序退出。DBSD152 -工作场所的做法和面向对象编程1学期2 - 2009 user-name/password细节将被储存