A small console application that retrieves orders and generates a summary report.
dotnet run
- .NET 10 SDK
- IDE
The application loads a set of customer orders and prints a summary report to the console:
Fetching orders...
Loading order data...
Orders Retrieved: 10
Generating report...
Report
------------------------
Order Count: 7
Average Value: £149.36
Total Value: £1,045.50
Cancelled orders should not be included in any report calculations.
The business has reported that the application occasionally crashes and sometimes produces incorrect reporting figures.
Investigate the issue(s) and make any fixes you believe are appropriate.