2) The __________ class provides static methods to start, stop, or filter Windows message in an application.
A) Forms B) Control C) Windows D) Application
Arrange the following data types in increasing order of size.
I. Long
II. Short
III. Single
IV. SByte
Select one:
a. IV, III, II, I
b. III, IV, I, II
c. IV, II, III, I
d. III, IV, II, I
Create a file called “grades.txt” with the following contents:
56
94
83
77
39
60
79
67
95
99
100
84
Read the data from the file into an array called grades when the program is loaded.
Then, when the button is clicked, display the number of A's, B's, C's, D's, and F's in the
list box, and show the min, max, and average.
From the given input, the output should be like the following:
Number of scores: ...
Max score: ...
Min score: ...
Average: xx.x
A’s: 4
B’s: 2
C’s: 2
D’s: 2
F’s: 2
A is for grade >=90
B is for 80 <= grade < 90
C is for 70 <= grade < 80
D is for 60 <= grade < 70
F is for grade < 60.
Note that the average should show one decimal digit. You want to use separate
functions to find the number of scores, max score, min score, the average, and the
number of each grade.
Develop an application with one screen that calculates the monthly salary of an employee. Your application should satisfy the following requirements:
If the user does not enter anything in the textboxes it must notify you by using a messagebox e.g. MessageBox.Show("Please Enter a value in Pay Rate Field");
Your formula is as follows (rate * hours)
Your answers must be displayed only in the messagebox
Write an app that reads the integers representing the total sales for three sales people then determines ad prints the largest and the smallest integers in the group.
Write a VB App that entered the students' marks on the textbox and display the final decision on the label after clicking on the button Get the Decision. The evaluation of the results shall be as follow:
- If the student marks are less or equal to 40, the decision will be failed,
- If the student's marks are greater than 40 and less or equal to 45, the decision will be student must write the sup exams,
- If the student's marks are greater than 45 and less or equal to 60, the decision will be student passed,
- If the student's marks are greater than 60 and less or equal to 75, the decision will be student passed with satisfaction,
You work for a Marketing firm called SA Modern Suppliers. Your Purchasing Manager has asked you to write a VB Application that will allow users to create a flexible Suppliers List to which Suppliers can be added and removed as well as enable the user to clear the entire Suppliers List when it is no longer needed.
Allow the user to enter the Supplier name in the text box.
When the user clicks on the Add button the program should add the Supplier to
the list.
When the user selects a Supplier from the list and clicks the remove button, the
program should remove the selected Supplier from the list.
When the user clicks the Clear button, the program should clear the entire
Suppliers List.
When the user clicks on Exit, the application should close.
Write a VB program to swap the 1st quarter elements of one dimension integer
array of size 12 with 2nd quarter elements.
There is one button and one listbox on the form.
Adding the names and surnames of personnel younger than 35 years old into the listbox when the button is clicked.
is requested.
Using object-oriented programming techniques the required class (with methods) and from that class
code the object to be created.
Thanks in advance to those who help.
1. My question) There is a button, a textbox and a datagridview on the form.
When the button is clicked, the id, name, surname and salary of the personnel belonging to the company written in the textbox1
It is requested to transfer the information to datagridview1.
Using object-oriented programming techniques the required class (with methods) and from that class
I need to encode the object to be created.
As my second question) I need to send a message on the screen of the total salary of all the personnel transferred to the datagirdview1 of the question I wrote above, I would be glad if you could help me. Thank you from now