Question
(1) Write a C# .NET Core Console App that asks the user to enter a character and line number and then displays a triangle of
(1) Write a C# .NET Core Console App that asks the user to enter a character and line number and then displays a triangle of that size with the given character. For example, if the user entered * as a character and 3 as line number then you display the following triangle on the console window.
*
***
*****
(2) Modify your program above to display a diamond shape rather than a triangle. For example, if the user entered * as a character and 3 as line number then you display the following diamond on the console window.
*
***
*****
***
*
(3) Write a C# .NET Core Console App that asks the user to enter a number and then displays a string with the original number followed by the reverse of the number. For example, if the user entered 123 as an int you program should create a string "123321" and display it on the screen
(4) Write a C# .NET Core Console App that validates a password string entered by the user to conform to the following rules:
Length between 6 and 15 characters.
At least one uppercase letter (A-Z).
At least one lowercase letter (a-z).
At least one digit (0-9).
At least one supported special characters such as ! @ # $ % ^ & * ( ) + = _ - { } [ ] : ; " ' ? , .
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