Knowledge Check!
Here’s a summary of what we learned in this lesson:
- How to install Visual Studio and setup a simple Console Application
- How code consists of Data and Statements
- How to use the Console.WriteLine() command to print text to the console output window
- About Visual Studio’s “Intellisense” feature
- About “Dot Syntax” where you can access commands by using the . character (ex: Console.WriteLine(), Console.ReadLine())
Class Discussion
- What is Visual Studio and why do we use it?
- This question helps students understand the role of an Integrated Development Environment (IDE) in programming.
- Where are you storing your projects on your computer’s hard drive?
- This question should spark some discussion about how to find projects and get students thinking about organizing early.
- Can anyone explain what a Console Application is?
- This question is aimed at understanding if students grasp the concept of a console application.
- What does
Console.WriteLine()
do in a C# program?
- Students should be able to explain that it prints out a line of text to the console.
- How would you explain “dot syntax” to a friend who isn’t in this class?
- This question tests students’ understanding of dot syntax and their ability to explain complex concepts in simple terms.
- Can someone give an example of where we used “dot syntax” in our code today?
- This question tests students’ ability to recognize and apply what they’ve learned about dot syntax.
- In our “Hello, World!” program, what would happen if we wrote
Console.Write()
instead of Console.WriteLine()
?
- This question helps students understand the difference between these two methods and how they affect the output of the program.
- What was the most challenging part of setting up and creating your first console application in Visual Studio?
- This question gives students an opportunity to express any difficulties they had and allows for troubleshooting and further learning.
- How did it feel to write and run your first piece of code?
- This open-ended question allows students to reflect on their experience and share their feelings about coding.
- Can anyone think of a real-world application where console applications might be used?
- This question helps students make connections between what they’re learning and real-world applications of programming.
Projects
1. ASCII Art
- Make a new Console application called “ASCII_ART”
- Use a series of Console.WriteLine() statements to draw different shapes to the console output window using characters and spaces. Keep in mind you can use spaces in your output!
Try to draw a square, a triangle, and a circle.