Programming Activities_Ordoñez
Programming Activities_Ordoñez
BSCS - 2B
1. Declare these data types with corresponding variable and values, using a single Button print each using
labels:
Answer:
2. Create a C# program that allows you to input and display information about employees in a company. The
program should perform the following tasks:
Your program will ask the user to type these data: Employee ID, First Name, Middle Name, Last Name,
Age, and Salary. And display these data in your own way of creativity.
Note: If your employee ages below 18, message box will prompt with a message “You are not allowed to
work yet”.
3. Create a program that willtake:
First Name, Last Name, and Middle Name.
Barangay, Municipality, and Province.
Birthday: Day, Month, and Year.
Note: The collected data will be displayed in a Message Box and the age must be automatically computed.
Example: Hello, you are John Randolf M. Penaredondo from Malaking Ambling, Magdalena, Laguna, born
on October 19, 1999, and you are now 23 years old.
Answer:
4. Create a program that identify whether a letter is a Vowel or Consonant, Display the answer in a message
box.
Answer:
5. Create a program that identify whether a number is Positive, Negative, and Zero. You can freely display the
output on your own ways.
Answer:
6. Create a program that identify whether a number is Odd or Even, Display the answer in a message box.
Answer:
7. Create a program that that will compare three numbers and will display the greatest number in a message
box.
Answer:
8. Create a program that will compute the mean average of 5 subjects: Filipino, Math, English, Science, and
Programming. The average grade will be displayed in a message box with its equivalent grade.
100-99= 1.00
98-96= 1.25
95-93= 1.50
92-90= 1.75
89-87= 2.00
86-84= 2.25
83-81= 2.50
80-78= 2.75
77-75= 3.00
74-70= 5.00
If one subject has no grade it prints the average and the word “Incomplete”
Answer:
9. Create a program that calculates a person's body mass index (BMI) and classifies their weight status as
underweight, normal weight, overweight, or obese based on the following table:
Answer:
10. Create a program that converts meters into different type of measurements (Inches, Feet, Yard, Miles).
Theprogram willasktheusertoselectinaradiobuttonofwhatmeasurementshouldthe metertobe
converted. Display the converted measurement in a label.
Answer:
11. Create a program that will take two numbers and will perform these operations: Addition, Subtraction,
Multiplication, Division, and Modulus.
Note: The results should take decimal points.
Answer: