This section shows the problem statements for coding assessment round.
The following dataset shows the price paid for properties sold in the UK. It includes various columns including the Post Code and Price Paid of the sold property.
Use the dataset to work out what, on average, are the 10 most expensive post code prefixes.
Download the latest monthly price paid data in CSV from here:
Dataset source reference (not required): Gov.uk Price Paid Data Downloads
SE16 7TG the prefix would be SE16)If we had this data:
| PostCode | Amount |
|---|---|
| SE15 2TH | 100 |
| SE15 5NY | 200 |
| SE12 8TW | 33 |
The output should be:
| Prefix | Average |
|---|---|
| SE15 | 150 |
| SE12 | 33 |
Build a .NET 8/9/10 console app (C#). No third-party libraries.
Primary source (preferred):
Call GET https://dogapi.dog/api/v2/breeds
Read results from the JSON:API response under data[*].attributes
links.next, keep fetching that URL and append links.next is missing or nullFrom attributes, use:
namelifefemale_weightEach of life and female_weight may be:
{ "min": <number>, "max": <number> }, or"10 - 12", "10–12", "10 to 12", "20 - 25 kg"-, –, —, and "to"kg, kgs and whitespace before parsingProduce two lists (exactly 10 items when possible):
Tie-breaker: If two breeds have the same max value, sort by name ascending.
Print clean, numbered output starting at 1:
Top 10 by Max Life Span
1. Breed A — max_lifespan=20
2. Breed B — max_lifespan=19
...
Top 10 Heaviest Female Breeds
1. Breed X — max_female_weight=55
2. Breed Y — max_female_weight=52
...
Handle HTTP failures / timeouts / invalid JSON gracefully (don't crash; print a useful message and exit non-zero if you want).