| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 574 人关注过本帖
标题:[求助]哪位高手帮我看一下这道题?
只看楼主 加入收藏
enhnaran
Rank: 1
等 级:新手上路
帖 子:4
专家分:0
注 册:2005-3-13
收藏
 问题点数:0 回复次数:4 
[求助]哪位高手帮我看一下这道题?

Objective : Write an online Army Individual Fieldcraft (IFC)System in C

1. Online Individual Fieldcraft (IFC)Scoring System

The friendly army needs your help to do an online Individual Fieldcraft (IFC)scoring system.

Your program should perform the following tasks :

(a) Display a menu system as follows :-

· If choice is A, perform input function (see part 2)

· If choice is B, perform computation of score (see part 3)

· If choice is C, display output (see part 4)

· If choice is D, the system will stop

(b) Create your own screen design or use this design as follows:


FRIENDLY ARMY ONLINE IFC SYSTEM

(A) Input of Raw Score

(B) Computation of Score

(C) Display output

(D) Quit

>> Enter Choice : XX

2. Input Function

Your program should perform the Input Function as follows:- :

(a) Input of Students and their descriptions in the following format

· Soldier Code (3 numeric characters : 1-999)

· Name (30 Alphanumeric characters)

· Date of Birth (valid range : DD-MM-YYYY)

· Rank (valid values : Pte, CPL, SGT, LTA, CPT)

· Time taken for Tunnel Crawl (valid range : 0 - 99)

· Time taken for Leopard Crawl (valid range : 0 - 99)

· Time taken for Turtle crawl (valid range : 0 - 99)

· Time taken for wheel barrow walk (valid range : 0 - 99)

Your program should be able to accept soldiers up to 999

(b) No need for input checking. You can assume that the user is smart enough to enter the correct input

3. Computation of Score

Your program should perform the following tasks for computation of score:

(a) Number of points for each test item

For each student, look up the IFC score table and return the number of points.

(b) Total score

Compute the total score by adding up the points for each item.

(c) Award calculation

Compute the award (gold, silver or bronze) according to the rules on minimum and total score. See attached table.

4. Display Output

· Your program should prompt the user as follows :

Enter Soldier Code to display :

· Create your own output screen design or simply display the score of the user on screen similar to the following .


Soldier Code : xx

Name : xxx xxxxxxxx xxxxx

Date of Birth : xx-xx-xxxx

Age : xx years

Rank : CPT

Scores:

Item Tunnel Leopard Turtle Wheelbarrow

Timing 4 6 7 7

Total Time Taken : 24

Award : Silver

Hints

· You NEED to use 1-dimensional array to store your soldier score information

· You NEED looping statements to control the online menu

· Other C techniques you may use are:

· if-else statement

· case-switch statement (eg Select Choice)

· while/for/do-while statement (eg. Online Menu)

2005-03-18 16:17
enhnaran
Rank: 1
等 级:新手上路
帖 子:4
专家分:0
注 册:2005-3-13
收藏
得分:0 

Score Table

Rank

Grade

Tunnel

Leopard

Turtle

Wheelbarrow

For Pte, CPL, SGT

E

>9

>9

>9

>9

D

7-8

7-8

7-8

7-8

C

6

6

6

6

B

5

5

5

5

A

3-4

3-4

3-4

3-4

Bronze Award Requirements

:

At least an E grade performance in all 4 test positions and a total time of < 35 sec

Silver Award Requirements

:

At least a D grade performance in all 4 test positions and a total time of

< 28 sec

Gold Award Requirements

:

At least a C grade performance in all 4 test positions and a a total time of < 24 sec

Rank

Grade

Tunnel

Leopard

Turtle

Wheelbarrow

For LTA, CPT

E

>10

>10

>10

>10

D

8-9

8-9

8-9

8-9

C

7

7

7

7

B

5-6

5-6

5-6

5-6

A

3-4

3-4

3-4

3-4

Bronze Award Requirements

:

At least an E grade performance in all 4 test positions and a total time of < 30 sec

Silver Award Requirements

:

At least a D grade performance in all 4 test positions and a total time of

< 25 sec

Gold Award Requirements

:

At least a C grade performance in all 4 test positions and a total time of

< 20 sec

2005-03-18 16:20
shohokuooo
Rank: 1
等 级:新手上路
威 望:1
帖 子:93
专家分:0
注 册:2005-1-29
收藏
得分:0 

你这是干什么啊!!

2005-03-19 10:59
kessar
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2005-3-19
收藏
得分:0 
可以试试
2005-03-19 11:12
poppylx
Rank: 1
等 级:新手上路
帖 子:367
专家分:0
注 册:2004-9-27
收藏
得分:0 
四级还没过啊  郁闷  

动于心而静如水
2005-03-19 21:16
快速回复:[求助]哪位高手帮我看一下这道题?
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.028966 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved