这段是input
Please enter the customer’s full name?
Ji Zhou
Please enter the activity:
B1
Finish booking (Yes/No)?
No
Please enter the activity:
S100
Invalid input!
Please enter the activity:
S1
Finish booking (Yes/No)?
No
Please enter the activity:
S1
Finish booking (Yes/No)?
No
Please enter the activity:
F3
Finish booking (Yes/No)?
Yes下面接着output
下面系统要接着purint out出
a) How many sports activities have been entered;
b) The cost of each activity;
c) The average cost and total cost of the booking;
d) How many booked activities are in the £0.00 – £5.00 group;
e) How many booked activities are in the £5.01 – £10.00 group;
f) How many booked activities are in the over £10.01 group;
g) The date of the booking.
例子。
Customer Name: Ji Zhou
---------------------------------------------------------
Sports booked: Basketball x1
Football x1
Squash x2
---------------------------------------------------------
Price of each activity:
Basketball £9.50
Football £14.00
Squash £4.50
---------------------------------------------------------
Average cost: £8.13
Total cost: £32.5
In £0.00 – £5.00 group: 2
In £5.01 – £10.00 group: 1
In over £10.01 group: 1
---------------------------------------------------------
Today is: 21/4/2010
下面是项目的code和价钱Code      Activity                 Cost 
A1        Aerobics                 4.40
A2        Archery                  5.00 
B1        Badminton                4.50
B2        Basketball               9.50 
C1        Children Activities      25.00
C2        Circuit Training         3.25 
C3         Climbing                6.50
F1          Fencing                12.00 
F2         Fitness Centre           3.25
F3         Football                14.00 
I          Indoor Football         19.00
K          Korfball                12.00  
M          Martial Arts            6.50
N          Netball                  9.00 
S1          Squash                  4.50
S2         Swimming                 3.50 
T1          Table Tennis            8.50
T2           Tennis                  7.25 
V          Volleyball                18.50
Y             Yoga                   4.50
System Code Continue input End input  N/A
No                                    N/A
Yes 

解决方案 »

  1.   

    这个程序就是Syso 和Scanner啊.. 没有任何难度..! LZ不想亲手尝试下.?
    建议你自己动下手,,  如果实在不愿意动手,, 帮你写一个也无妨!
      

  2.   

    好谢谢。
    回sgcl,这是我最后一个作业。
    明年就换专业了,确实发现学不来= 。=
      

  3.   

    input/ouput很简单的,要换专业就早点换,以免浪费更多的时间!
      

  4.   

    MSN可以吗[email protected]
      

  5.   

    没有msn..  你留email或者QQ把
      

  6.   

    email:[email protected]...
    非常感谢。。