1.5: String Challenges
In this module we'll give some challenges/exercises with the intention of deepening your understanding of strings.
File Location
Right click on the solution you made in the first module, go to Add > New Project
Select Console App (.NET Framework)
Name it
0.04_String_Challenges
Write your code for this module within
Program.cs
of that project
Bronze Challenge:
Practice joining strings together using concatenation, composite formatting, and interpolation
Silver Challenge:
Create a note to a potential employer that states your goals as a developer
Include a string for today's date using
ToShortDateString()
- use the docs for referenceHere's an example:
"Dear Mr. Jones, Today is 3/11/2016. I'm enjoying class, and I think I like C# the best. I'd like to get a job as a developer after I finish this course."
Gold Challenge:
Create 2 strings: Your username in lowercase and your username in uppercase.
Write code that compares the two strings and prints whether or not they are equal.
Print one sentence that says they are equal. Print another that says they are not equal.
Answers
Next: Integers
Last updated