这段是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
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
建议你自己动下手,, 如果实在不愿意动手,, 帮你写一个也无妨!
回sgcl,这是我最后一个作业。
明年就换专业了,确实发现学不来= 。=
非常感谢。。