本文介绍了如何在C#中生成代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当客人到达时,代客将接受或记下以下详细信息并将其输入程序:

•名称

•车牌

然后程序将为汽车分配一个停车位并将其记录为该人/汽车所占用的。

当客人准备离开时,代客将取得他们的名字或许可证车牌号码和程序将使用这些详细信息进行搜索,并告诉代客车辆所在的停车位。

一旦车辆返回客人,代客可以再次按名称搜索车辆,车牌号或停车位号码,并告诉程序该车已经退回,停车位现在是免费的。

程序应该是一个控制台应用程序,其菜单提供以下选项:

•处理客人抵达

•寻找停放的汽车

•汽车返还给用户

•列出停放的所有汽车

•退出计划



对不起我只是编程c#的初学者。

When a guest arrives, the valet will take or note the following details and enter them into the program:
• Name
• Licence Plate
The program will then assign a parking space for the car and record it as taken by that person/car.
When a guest is ready to leave, the valet will take either their name or licence plate number and the program will search using those details and tell the valet which parking space the car is in.
Once the car has been returned to the guest, the valet can again search for the car by name, licence plate or parking space number and tell the program that the car has been returned and the parking space is now free.
The program should be a console application, with a menu offering options for:
• Handling guest arrival
• Finding a parked car
• Car returned to user
• List all cars parked
• Exit program

Sorry Im just a beginner at programming c#.

推荐答案


这篇关于如何在C#中生成代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-23 16:24