Posted: September 13th, 2017
Paper, Order, or Assignment Requirements
Your task is to develop a formal specification for the car park management system in C# using Code Contracts (as detailed overleaf), and demonstrate that it meets the needs of the council.
C# Implementation with Code Contracts 40 Marks /55
You must develop a C# console application in a single .cs file.
The application should consist of at least one class called CarPark, and a main program which exercises the CarPark class. You may include other classes to help if necessary.
To pass, the program must compile without errors, but does not need to pass static analysis without warnings.
CarPark class (30 marks):
For full marks, you should fully and correctly specify any invariants on the state, and pre- and post- conditions for the following methods (you must decide what parameters are needed):
The specification (and correct implementation) of the methods will attract between 2 and 4 Marks each up to 24 Marks
Your representation and specification of the state will attract up to 6 Marks
Place an order in 3 easy steps. Takes less than 5 mins.