Objective: Reintroduce basic syntax and structure.
- Task: Write a simple program that prints "Hello, World!" to the console.
- Hint: Use Console.WriteLine().
Objective: Practice basic arithmetic operations.
- Task: Create a program that takes two numbers as input and prints their sum, difference, product, and quotient.
- Hint: Use Console.ReadLine() to get user input and Convert.ToInt32() to convert it to an integer.
Objective: Revisit if-else statements.
- Task: Write a program that checks if a number entered by the user is even or odd.
- Hint: Use the modulus operator %.
Objective: Refresh knowledge of loops.
- Task: Create a program that prints the first 10 numbers of the Fibonacci sequence.
- Hint: Use a for loop and remember that the next number is the sum of the previous two.
Objective: Work with arrays.
- Task: Write a program that takes 5 numbers from the user, stores them in an array, and then prints the array in reverse order.
- Hint: Use a for loop to iterate through the array.
Objective: Practice writing and using functions.
- Task: Create a function that takes a string as input and returns the string in uppercase.
- Hint: Use the ToUpper() method.
Objective: Reintroduce object-oriented programming concepts.
- Task: Define a Person class with properties for Name and Age. Create an instance of the class and print the person's details.
- Hint: Use public properties and a constructor to initialize the object.
Objective: Handle errors gracefully.
- Task: Write a program that takes two numbers and divides them, but handles any division by zero errors.
- Hint: Use try-catch blocks.
Objective: Work with file input and output.
- Task: Create a program that writes a list of names to a file and then reads the file and prints the names to the console.
- Hint: Use StreamWriter and StreamReader.
Objective: Introduce basic LINQ queries.
- Task: Write a program that filters an array of integers to only include even numbers using LINQ.
- Hint: Use the Where method.