有关活动的设计,求帮忙!
题目:1.該程序允許用戶註冊一個活動只有一個月的某一天。程序將顯示所有活動將舉行日期.
2.每一天只可以1个活动。如果用戶錯誤地選擇一個日期的活動,該計劃將要求他重新登記日。程序應該處理異常和錯誤。運行這個程序的場景如下所示:
编写:
please enter the date you want to make reservation:
10
please enter the event you want to make reservation:
CS football match
Do you want to make more reservation in a new date? yer or no?
yes
please enter the date you want to make reservation:
20
please enter the event you want to make reservation:
CS basketball match
Do you want to make more reservation in a new date? yer or no?
no
_____________________________________________________
最后就会显示:
On 10 of this month ,CS football match will held.
On 20 of this month ,CS basketball match
will held.
--------------------编程问答-------------------- 没看懂。。。。。 --------------------编程问答-------------------- 百度一下 java控制台输入输出搞一堆if就OK了
补充:Java , Java相关