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)