Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

App Inventor

Authors: David Wolber, Hal Abelson

1st Edition

1449397484, 9781449397487

More Books

Students also viewed these Programming questions

Question

Write the first five terms of each sequence. an = 5(-1) -1

Answered: 1 week ago