Question: Using Formal methods. This program is done in object-Z. using Z-Notation specify the below problem. Some pictures of some already created for the problem is
Using Formal methods. This program is done in object-Z. using Z-Notation specify the below problem. Some pictures of some already created for the problem is provided below include making name unique and the sorting ability
Problem: Swimming Competition:
swimming competition includes several participants. Each participant has a unique name. The competition conducts several events and records the swimming times for each participant at each event. At the end, it averages the best three times (smallest to largest) for each participant and selects one person as the winner who has the maximum average. Notice that the number of events must be at least three.


[STRING,IDNUMBER] sort: seq R seq R input, output: seq RI (sort(input) output) . (Yr: R .# {i: 1 .. #inputl input(i) = r} = # {i: 1 .. # (Yi, j : 1 .. #output iKjs output (i)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
