) Put a button titled Open Answers File. When this button is clicked; open Answer.txt, and read and store the answers in an array of Strings. Close this file.
Answer the following questions about the following initialized array: Dim strSeafood(8) as String.
a. Assign Oysters to the first array location. What is the index number?
b. Assign Lobster to the fourth location in the array. What would the assignment statement look like?
c. What value does strSeafood.Length have?
d. How many types of seafood can this array hold?
e. What would happen if you assigned strSeafood(9) = “Red Snapper”?
Write a VB program to calculate the wages based on different rates (Normal hours and Overtime rates).
Write a FUNCTION to calculate the wages based on the following condition:
-Normal Hours: RM 10 per hours
-Overtime: RM 15 per hours
NOTE: The function should pass in a value of hours as Double, and a value of type as String. The function should return the calculated amount of wages and return as a Double.
*set the Enabled properties of the Total Wages Text Box to False
Write a VisualBasic program to show different image and description based on the user selection on the combo box.
*set the Visible properties of RichTextBox to False
*set the ComboBox list items to: Cat, Dog, Rabbit
Step 1 – Choose an animal
The PictureBox’s Image will be changed to corresponding Image while the SelectedIndexChanged event of the ComboBox is triggered.
Tips: The Text of the RichTextBox will be changed at this point.
Step 2 – Checked the Description CheckBox
The RichTextBox will be displayed while the CheckedChanged event of the Description CheckBox is triggered.
You may use the following description:
-Cat: The cat is a domestic species of small carnivorous mammal.
-Dog: The dog or domestic dog, is a domesticated descendant of the wolf, characterized by an upturning tail.
-Rabbit: The rabbits also known as bunnies or bunny rabbits, are small mammals in the family Leporidae (along with the hare) of the order Lagomorpha (along with the pika).
What is visual basic
How many times will the word Hello show up?
For x = 0 To 100
For y = 5 To -10
If y = 0 Then
Exit For
End If
Console.Write("Hello")
Next y
If x > 10 Then
Exit For
End If
Next x
Code a C program to read five integer values from data.txt to console; calculate and display the sum and average thereof. Use the following data to create your text file: 6,45,12,67,9
Make a simple billing application showing the
customer's name, address, number of participants, training fee,
registration fee and total amount due.