You are on page 1of 6

Visual Programming

Assignment No. 2
Rules

1. Deadline: 18 October 2023

2. Take Screen shot of your C# designed form and add


in MS word file for all Questions

3. Copy-paste not allowed

4. ChatGPT and other online tools are not allowed to


finish the assignment
Question No. 1 Write C# Code to read ten Patients Name and then display the
names in alphabetically (A to Z)

Question No. 2 Design a C# form to read a number using Text Box and then
compute the factorial of that number and display the result using MessageBox

Question No. 3 Write the code for the following design form, design this form in
your Visual Studio and then write complete code using C# programming language.

Question No. 4 Write complete C# programming code for the following


Formulas are given below
area = width * length
perimeter = (width + length) * 2
Question No. 5 Design the following C# windows form

Next, C# code to get the details and show the patient details using single
MessageBox
Question No. 6 Design the following form

Select your Date of Birth using DateTimePicker Control and then compute your
Age and display the same using TextBox as shown in the above figure.

Question No. 7 Design the following form using numericUpDown Control, button,
lable

Define the Maximum and Minimum Limit of the two numericupdown controls and
then display the time in AM/PM format, as an example is shown in above figure
Question No. 8 Design the following form using MaskText Control, button, lable

When you press the OK button, then the entered IP address will be shown in
MessageBox

Question No. 9 Design the following form using RadioButtons, CheckBox,


GroupBox Control, button

When you click the Selected Movies button, then all of your selected Movie types
should be displayed in MessageBox
&
When you click the Favorite Movies button, then your Favorite Movie type should
be displayed in MessageBox

You might also like