Question
Lab One Instructions Objective The purpose of this lab is to get some experience in compiling a simple C# program and to become familiar with
Lab One Instructions Objective The purpose of this lab is to get some experience in compiling a simple C# program and to become familiar with Visual Studio 2019 and the Microsoft documentation library. For this Exercise, you will want to investigate the following C# classes and keywords: Console class String class if statement const keyword i. Create a new C# .NET Framework 4.8 or .NET 5 Console project named COMP3602Lab01. ii. Use the Microsoft documentation library (https://docs.microsoft.com/en-us/dotnet/csharp/) to find out some of the other methods in addition to WriteLine() that are available in the Console class. The most useful ones for now will be Write() and ReadLine(). iii. Prompt the user for their name and password. If the password entered is ma5_t3r then display a welcome message otherwise display an appropriate error message. If the name entered is Melissa for example, the welcome message will be: Hello Melissa, and welcome. Notice how the sentence is spaced and punctuated. Format your output to look the same. See if you can: 1. make the password a constant 2. allow the user to enter a case insensitive password with any number of spaces before and/or after it Note: Unlike other C-based languages, the C# operator == compares the contents of two strings. Tip: In VS, after the application is run, the Console window disappears. Use CTRL+F5 or Debug-> Start Without Debugging and it will continue to show the window after the application has completed.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started