1.5: String Challenges

In this module we'll give some challenges/exercises with the intention of deepening your understanding of strings.

File Location

  1. Right click on the solution you made in the first module, go to Add > New Project

  2. Select Console App (.NET Framework)

  3. Name it 0.04_String_Challenges

  4. Write your code for this module within Program.cs of that project

Bronze Challenge:

Silver Challenge:

  • Create a note to a potential employer that states your goals as a developer

  • Include a string for today's date usingToShortDateString()- use the docs for reference

  • Here'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