Answer:
See text attachment for complete source code (for the answer) where I used comments to explain each line of the program
Explanation:
First, design the form using the following tools (and the accompanying properties) :
1 Label: Property: Text: Score
2 Buttons
Button1: Property: Name: btnAdd; Text: Add
Button2: Property: Name: btnDisplay; Text: Display
1 ListBox: Property: Visible: Hidden
1 TextBox: Property: Name: txtNum1
First, create the following function.
The function (named typecheck) validates input from the user (i.e. integer input only)
Function typecheck(ByVal input As String) As Boolean
Try
Convert.ToInt32(input)
[tex]Return\ True[/tex]
[tex]Catch\ ex\ As\ Exception[/tex]
[tex]Return\ False[/tex]
End Try
End Function
It returns true if the input is integer and false, if otherwise.
Next, double-click on the "Add" button and write the following lines of code:
Dim num1 As String
num1 = txtNum1.Text
If num1 IsNot String.Empty Then
If typecheck(num1) Then
[tex]ListBox1.Items.Add(num1)[/tex]
[tex]txtNum1.Text = String.Empty[/tex]
Else
[tex]MsgBox("Only[/tex] [tex]Integer[/tex] [tex]Inpu t")[/tex]
[tex]txtNum1.Text = String.Empty[/tex]
[tex]End\ If[/tex]
Else
[tex]MsgBox("Box[/tex] [tex]can\ not\ be\ empty")[/tex]
[tex]txtNum1.Text = String.Empty[/tex]
[tex]End\ If[/tex]
Next, double-click on the "Display" button and write the following lines of code:
If ListBox1.Items.Count > 0 Then
[tex]Dim\ max1, max2\ As\ Integer[/tex]
max1 = Convert.ToInt32(ListBox1.Items(0))
max2 = Convert.ToInt32(ListBox1.Items(0))
[tex]For\ count\ = 0\ To\ ListBox1.Items.Count - 1[/tex]
If Convert.ToInt32(ListBox1.Items([tex]count[/tex])) >= max1 Then
max1 = Convert.ToInt32(ListBox1.Items([tex]count[/tex]))
[tex]End\ If[/tex]
Next
[tex]For\ count\ = 0\ To\ ListBox1.Items.Count - 1[/tex]
If Convert.ToInt32(ListBox1.Items([tex]count[/tex])) >= max2 And Convert.ToInt32(ListBox1.Items([tex]count[/tex])) < max1 Then
max2 = Convert.ToInt32(ListBox1.Items([tex]count[/tex]))
[tex]End\ If[/tex]
Next
MsgBox("Highest Scores: " + max1.ToString() + " " + max2.ToString())
MsgBox("[tex]Total[/tex]: " + ListBox1.Items.Count.ToString())
[tex]End\ If[/tex]
ListBox1.Items.Clear()
Can software work without Hardware? Why?
Answer:
No
Explanation:
Software requires hardware to run. Think about a computer, you can't have windows without having the computer. Software is programmed to run on hardware.
45. Our goals are a reflection of our:
O values
O standards
O obstacles
O resources
beliefs
values and beliefs
In the early days of the Internet, most access was done via a modem over an ________.
Question 10 options:
Analog telephone line
Fax
Telegram
None of the above
Answer:
analog telephone line
Explanation:
I hope this helps! :)
☁️☁️☁️☁️☁️☁️☁️☁️☁️
ERIC'S Company sells cement at 30.0 Ghana Cedis per bag. The company
however gives discount of 15% for customers that buy 100 or more bags, and 0% for
customers that buy less than 100 bags.
Write a pseudo code and present a flowchart that
will display the discount percentage when the quantity of bags purchased is entered.
Answer:
The pseudocode is as follows:
Input Quantity
Discount = 0%
If Quantity >= 100:
Discount = 15%
Print Discount
See attachment for flowchart
Explanation:
This line gets the quantity from the user
Input Quantity
This line initializes the discount to 0%
Discount = 0%
This checks if quantity is more than or equal to 100
If Quantity >= 100:
If yes, discount is set to 15%
Discount = 15%
This prints the discount percentage
Print Discount
See attachment for flowchart
BitTorrent, a P2P protocol for file distribution, depends on a centralized resource allocation mechanism through which peers are able to maximize their download rates.
True or False?
Answer:
yes. it is true. mark as brainlest
Use the drop-down menus to complete the sentences about the Calendar view Arrange command group.
Under the Calendar view, you will see your calendar as
by default.
When you create an appointment, you are creating an activity that will not send
to other people.
A meeting is an activity where individuals are invited and
are shared.
is an all-day incident placed on the calendar.
Answer:
Use the drop-down menus to complete the sentences about the Calendar view Arrange command group.
Under the Calendar view, you will see your calendar as
✔ monthly
by default.
When you create an appointment, you are creating an activity that will not send
✔ an invitation
to other people.
A meeting is an activity where individuals are invited and
✔ resources
are shared.
✔ An event
is an all-day incident placed on the calendar.
Explanation:
edge 2021
The complete sentences about the calendar view arrange command group are as follows:
Under the Calendar view, you will see your calendar as monthly by default. When you create an appointment, you are creating an activity that will not send an invitation to other people.A meeting is an activity where individuals are invited and resources are shared. An event is an all-day incident placed on the calendar.What do you mean by Calender view?Calendar view may be characterized as a type of feature within calendar software in which the user can choose from various formats in order to view the calendar more accurately and interestingly.
A calendar view lets a user view and interacts with a calendar that they can navigate by month, year, or decade. A user can select a single date or a range of dates. It doesn't have a picker surface and the calendar is always visible.
Command and control functions are performed through an arrangement of personnel, equipment, communications, facilities, and procedures employed by a commander in order to execute its functions.
Therefore, the complete sentences about the calendar view arrange command group are well mentioned above.
To learn more about Calendar view, refer to the link:
https://brainly.com/question/17524242
#SPJ2