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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!