Skip to content

Commit f05f87a

Browse files
committed
add few programs
1 parent 91643e0 commit f05f87a

File tree

195 files changed

+2599
-14
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

195 files changed

+2599
-14
lines changed
Binary file not shown.

Average of 5 Students/.vs/Average of 5 Students/FileContentIndex/read.lock

Whitespace-only changes.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.3.32804.467
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "Average of 5 Students", "Average of 5 Students\Average of 5 Students.vbproj", "{1D5C20F8-A1C0-4BDC-BFA4-9289C7365740}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{1D5C20F8-A1C0-4BDC-BFA4-9289C7365740}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{1D5C20F8-A1C0-4BDC-BFA4-9289C7365740}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{1D5C20F8-A1C0-4BDC-BFA4-9289C7365740}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{1D5C20F8-A1C0-4BDC-BFA4-9289C7365740}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
GlobalSection(ExtensibilityGlobals) = postSolution
23+
SolutionGuid = {60645756-2A92-4CE2-A3E1-481249E2DAC0}
24+
EndGlobalSection
25+
EndGlobal
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
Imports Microsoft.VisualBasic.ApplicationServices
2+
3+
Namespace My
4+
' The following events are available for MyApplication:
5+
' Startup: Raised when the application starts, before the startup form is created.
6+
' Shutdown: Raised after all application forms are closed. This event is not raised if the application terminates abnormally.
7+
' UnhandledException: Raised if the application encounters an unhandled exception.
8+
' StartupNextInstance: Raised when launching a single-instance application and the application is already active.
9+
' NetworkAvailabilityChanged: Raised when the network connection is connected or disconnected.
10+
11+
' **NEW** ApplyApplicationDefaults: Raised when the application queries default values to be set for the application.
12+
13+
' Example:
14+
' Private Sub MyApplication_ApplyApplicationDefaults(sender As Object, e As ApplyApplicationDefaultsEventArgs) Handles Me.ApplyApplicationDefaults
15+
'
16+
' ' Setting the application-wide default Font:
17+
' e.Font = New Font(FontFamily.GenericSansSerif, 12, FontStyle.Regular)
18+
'
19+
' ' Setting the HighDpiMode for the Application:
20+
' e.HighDpiMode = HighDpiMode.PerMonitorV2
21+
'
22+
' ' If a splash dialog is used, this sets the minimum display time:
23+
' e.MinimumSplashScreenDisplayTime = 4000
24+
' End Sub
25+
26+
Partial Friend Class MyApplication
27+
28+
End Class
29+
End Namespace
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<OutputType>WinExe</OutputType>
5+
<TargetFramework>net6.0-windows</TargetFramework>
6+
<RootNamespace>Average_of_5_Students</RootNamespace>
7+
<StartupObject>Sub Main</StartupObject>
8+
<UseWindowsForms>true</UseWindowsForms>
9+
<MyType>WindowsForms</MyType>
10+
</PropertyGroup>
11+
12+
<ItemGroup>
13+
<Import Include="System.Data" />
14+
<Import Include="System.Drawing" />
15+
<Import Include="System.Windows.Forms" />
16+
</ItemGroup>
17+
18+
<ItemGroup>
19+
<Compile Update="My Project\Application.Designer.vb">
20+
<DesignTime>True</DesignTime>
21+
<AutoGen>True</AutoGen>
22+
<DependentUpon>Application.myapp</DependentUpon>
23+
</Compile>
24+
</ItemGroup>
25+
26+
<ItemGroup>
27+
<None Update="My Project\Application.myapp">
28+
<Generator>MyApplicationCodeGenerator</Generator>
29+
<LastGenOutput>Application.Designer.vb</LastGenOutput>
30+
</None>
31+
</ItemGroup>
32+
33+
</Project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup>
4+
<Compile Update="Form1.vb">
5+
<SubType>Form</SubType>
6+
</Compile>
7+
</ItemGroup>
8+
</Project>

Average of 5 Students/Average of 5 Students/Form1.Designer.vb

+63
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
<root>
2+
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
3+
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
4+
<xsd:element name="root" msdata:IsDataSet="true">
5+
<xsd:complexType>
6+
<xsd:choice maxOccurs="unbounded">
7+
<xsd:element name="metadata">
8+
<xsd:complexType>
9+
<xsd:sequence>
10+
<xsd:element name="value" type="xsd:string" minOccurs="0" />
11+
</xsd:sequence>
12+
<xsd:attribute name="name" use="required" type="xsd:string" />
13+
<xsd:attribute name="type" type="xsd:string" />
14+
<xsd:attribute name="mimetype" type="xsd:string" />
15+
<xsd:attribute ref="xml:space" />
16+
</xsd:complexType>
17+
</xsd:element>
18+
<xsd:element name="assembly">
19+
<xsd:complexType>
20+
<xsd:attribute name="alias" type="xsd:string" />
21+
<xsd:attribute name="name" type="xsd:string" />
22+
</xsd:complexType>
23+
</xsd:element>
24+
<xsd:element name="data">
25+
<xsd:complexType>
26+
<xsd:sequence>
27+
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
28+
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
29+
</xsd:sequence>
30+
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
31+
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
32+
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
33+
<xsd:attribute ref="xml:space" />
34+
</xsd:complexType>
35+
</xsd:element>
36+
<xsd:element name="resheader">
37+
<xsd:complexType>
38+
<xsd:sequence>
39+
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
40+
</xsd:sequence>
41+
<xsd:attribute name="name" type="xsd:string" use="required" />
42+
</xsd:complexType>
43+
</xsd:element>
44+
</xsd:choice>
45+
</xsd:complexType>
46+
</xsd:element>
47+
</xsd:schema>
48+
<resheader name="resmimetype">
49+
<value>text/microsoft-resx</value>
50+
</resheader>
51+
<resheader name="version">
52+
<value>2.0</value>
53+
</resheader>
54+
<resheader name="reader">
55+
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
56+
</resheader>
57+
<resheader name="writer">
58+
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
59+
</resheader>
60+
</root>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Public Class Form1
2+
Dim NameInput(5) As String
3+
Dim age(5) As Integer
4+
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
5+
For i = 0 To 4
6+
NameInput(i) = InputBox("Enter a name", "Input")
7+
ListBox1.Items.Add(Name(i))
8+
age(i) = Int(InputBox("Enter the age", "Input"))
9+
ListBox1.Items.Add(age(i))
10+
Next
11+
End Sub
12+
13+
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
14+
Dim avg As Decimal
15+
Dim sum As Integer = 0
16+
For i = 0 To 4
17+
sum += age(i)
18+
Next
19+
avg = sum / 5
20+
MessageBox.Show("The average of age is " & avg)
21+
End Sub
22+
End Class

Average of 5 Students/Average of 5 Students/My Project/Application.Designer.vb

+37
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<MyApplicationData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
3+
<MySubMain>true</MySubMain>
4+
<MainForm>Form1</MainForm>
5+
<SingleInstance>false</SingleInstance>
6+
<ShutdownMode>0</ShutdownMode>
7+
<EnableVisualStyles>true</EnableVisualStyles>
8+
<AuthenticationMode>0</AuthenticationMode>
9+
<SaveMySettingsOnExit>true</SaveMySettingsOnExit>
10+
</MyApplicationData>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"runtimeTarget": {
3+
"name": ".NETCoreApp,Version=v6.0",
4+
"signature": ""
5+
},
6+
"compilationOptions": {},
7+
"targets": {
8+
".NETCoreApp,Version=v6.0": {
9+
"Average of 5 Students/1.0.0": {
10+
"runtime": {
11+
"Average of 5 Students.dll": {}
12+
}
13+
}
14+
}
15+
},
16+
"libraries": {
17+
"Average of 5 Students/1.0.0": {
18+
"type": "project",
19+
"serviceable": false,
20+
"sha512": ""
21+
}
22+
}
23+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"runtimeOptions": {
3+
"tfm": "net6.0",
4+
"frameworks": [
5+
{
6+
"name": "Microsoft.NETCore.App",
7+
"version": "6.0.0"
8+
},
9+
{
10+
"name": "Microsoft.WindowsDesktop.App",
11+
"version": "6.0.0"
12+
}
13+
]
14+
}
15+
}

0 commit comments

Comments
 (0)