This repository contains exercises for you undertake to build on your coding and technical ability. We will be checking over your solutions, so please ensure you push to GitHub regularly.
You may find these exercises challenging but they give you the opportunity to strengthen your growth mindset and commitment to programming and learning in general. You can always come to us if you are having any trouble.
We will be covering C# on the Your Return to Tech programme, so it's really important your problem solving skills are fresh.
If you need to go through the key C# concepts to solve these challenges, we recommend the 'Codecademy: Learn C#' (free) course: https://www.codecademy.com/learn/learn-c-sharp
NOTE: You are not required to purchase any PRO content from CodeAcademy.
Remember to break down problems to help you solve them and that Google is your friend!
To complete these exercises you will need .NET 6+ installed on your computer.
Follow this link to download and install .NET 6+ for your laptop:
https://dotnet.microsoft.com/download
Firstly you will need to fork this GitHub repository to your own GitHub profile and then clone your forked repository down to your laptop.
NOTE: You do NOT have to submit Pull Requests to us.
Once you have cloned the repository you can ensure any dependencies are restored by running:
dotnet restore
If you look inside the Exercises directory you will find a file of functions to implement.
To understand how these functions work, take a look in the corresponding test file where the desired functionality is described.
To run the tests, run:
dotnet test
Work through each test 1 by 1 until you have them all passing. Initially, you'll have a lot of failing tests and a lot of output on the console. To focus on a single test, you can run specific tests such as:
dotnet test --filter Exercise001
Or to run a single test within a test file you can run dotnet test --filter FunctionName like so:
dotnet test --filter CapitalizeWord
Before starting on each exercise, please read through the information in the docs. You can see the first exercise in Exercise001.cs.