An intermediate level task for practicing loops and branches.
The task is to implement three methods using "for", "while" and "do" statements.
- Fork the task project (repository) in GitLab.
- Open a project from your remote repository or get your local copy with Visual Studio.
It's allowed to use String.Length and String.Chars properties only for solving the task. You are not allowed to use other static or instance methods of the String class or any extension method from System.Linq namespace.
- Implement "GetCharsCount(string, char[])" method in the LookingForChars.cs file. See the method documentation and TODO.
- Implement "GetCharsCount(string, char[], int, int)" method in the LookingForChars.cs file. See the method documentation and TODO.
- Implement "GetCharsCount(string, char[], int, int, int)" method in the LookingForChars.cs file. See the method documentation and TODO.
Additional style and code checks are enabled for the projects in this solution to help you maintaining consistency of the project source code and avoiding silly mistakes. Review the Error List in Visual Studio to see all compiler warnings and errors.
If a compiler error or warning message is not clear, review errors details or google the error or warning code to get more information about the issue.
- Rebuild your solution in Visual Studio.
- Check out the Error List window for compiler errors and warnings. If you have any of those issues, fix issues and rebuild the solution again.
- Run all unit tests with Test Explorer and make sure there are no failed unit tests. Fix your code to make all your unit tests GREEN.
- Review all your changes before saving your work.
- Open "Changes" view in Team Explorer.
- Click with your right mouse button on a modified file.
- Click on "Compare with Unmodified" menu item to open a comparison window.
- Stage your changes and create a commit.
- Share your changes by pushing them to remote repository.
- C# Reference
- .NET API