logo

ITECH1000 Programming 1 Assessment 2

   

Added on  2024-04-25

26 Pages2595 Words67 Views
ITECH1000
Programming 1
Assessment 2

Contents
Introduction..............................................................................................................................................3
Stage 1: Design Documentation..............................................................................................................3
1.1 An algorithm that describes how the program will operate...........................................................3
1.2 Logical structure of the program:..................................................................................................5
1.3: Test cases......................................................................................................................................6
Stage 2: Program Development...............................................................................................................7
2.1 Functionality of the program:........................................................................................................7
2.2 Technical Information:................................................................................................................13
Stage 3: Testing.....................................................................................................................................24
Reference...............................................................................................................................................25
Appendix................................................................................................................................................26
List of Figures
Figure 1 Insert the number of rounds.......................................................................................................8
Figure 2 insert the details.........................................................................................................................9
Figure 3 menu..........................................................................................................................................9
Figure 4 insert the score.........................................................................................................................10
Figure 5 displays the result....................................................................................................................11
Figure 6 program credit.........................................................................................................................11
Figure 7 exit...........................................................................................................................................12
Figure 8: Driver class.............................................................................................................................13
Figure 9: Driver class (ii).......................................................................................................................14
Figure 10: Driver Class (iii)...................................................................................................................14
Figure 11: Driver class (iv)....................................................................................................................15
Figure 12: Race class (i)........................................................................................................................16
Figure 13: Race class (ii).......................................................................................................................16
Figure 14: Race class (iii)......................................................................................................................17
Figure 15: Race class (iv)......................................................................................................................17
Figure 16: Race classs (v)......................................................................................................................18
Figure 17: Race class (vi)......................................................................................................................18
Figure 18: Race class (vii).....................................................................................................................19
Figure 19: Race class (viii)....................................................................................................................19
Figure 20: Race class (ix)......................................................................................................................20
Figure 21: Entry class (i).......................................................................................................................21
Figure 22: Entry class (ii)......................................................................................................................21
Figure 23: Entry class (iii).....................................................................................................................22
Figure 24: Competitor class...................................................................................................................23

Introduction
I have used the java program to maintain the data for the lawn mowing championship for this
I have used to net bean software to develop the program. This section is describing all
functionality of the program and the all test part of the program and importance of the
program for the championship is describing.
Stage 1: Design Documentation.
1.1 An algorithm that describes how the program will operate.
The algorithm of the full program with stepwise implementation of the program is provided
in this part.
Algorithm
Step 1 → Start.
Step -2 → Initializing the contest administration system.
Step -3 → Enter the number of rounds to complete the competitions.
(3.1) If (Round <= 2 or Round > 4)
Generate error.
(3.2) Initialize the race and lawn movers.
Step -4 → Create competitors and display competitors names and lawn movers names.
Step -5 → Register Competitors.
(5.1) If the name of two competitors is same then, cancel the registration of the second
competitor.
(5.2) If lawn movers are greater than 2 then, cancel the registration of all the competitor after
2 lawn movers.
(5.3) Register maximum 5 competitors.

Step -6 → After the completion of the initialization, create a menu system using a switch
case. Menu system must have four menu options that is 1. “Enter Result”, 2. ”Display
Result”, 3. “View program credits”, 4. ”Exit program”.
(6.1) For menu option 1. “Enter Result” users have to enter the finish time for each
registered competitor for each number of rounds.
(6.2) For menu option 2. “Display Result”. It displays the result in the highest to lowest
order with their respective name.
(6.3) For menu option 3.”View Program Credits ”.It provides the message to provide the
author details.
(6.4) For menu option 4. “Exit ”. It exits the program with a thank you message displayed on
the screen and then terminates the program.

1.2 Logical structure of the program:

1.3 Test cases
In this step, testing on individual modules is performed so that all the errors and bugs present
in the program can be removed. Each module is checked individually to determine whether it
is working in an expected way or not.
Test Case Expected Result Actual Result
1. After Initialization of
Contest administration
system, the message should
be displayed to enter the
number of rounds.
The message should
display to enter the value.
The message is successfully
displayed.
2. Tests the value of
rounds which has been
entered must be greater than
2 and smaller than 5.
Otherwise, it will prompt to
enter the valid values.
If the values are not valid,
the message should be
prompted to enter the valid
values.
Successfully implemented.
3. When two users enter
the same name for the
competition. Prompt the
message for the second
competitor to cancel the
registration.
Cancel the registration of
the same name of the
competit or.
Successfully done.
4. If the value of the
brand is more than 2, it will
generate an error message.
Error message should be
displayed
Successfully implemented.
5. If the total number of Error message should be Successfully displayed.

End of preview

Want to access all the pages? Upload your documents or become a member.

Related Documents
Java Programming Project Report
|17
|2681
|139

ITECH1000 Programming Assignment 2
|22
|2739
|91

Design Documentation Program Algorithm
|15
|2080
|86