Find Us On: Facebook Twitter Rss Feed Blog
Need To Register? Sign Up Login

Assignment 2: WK4 Advanced VB.Net Assignment

dannyboy54
dannyboy54 


Object Oriented Programming You are going to enhance the application by creating two main classes 1- Create a class for the math ( "+","-") operations -- name the class "MathOp" 2- Extend the class using inheritance to include ("*","/") name the class "MathOp2" 3- Create the following class/function when select a line from the list box, the user should be able to modify the values/operations and save it to the listbox/database Let’s say the user clicked on “1+3=4” , the values 1,3 should be displayed in the input text boxes. Attached is assignment from week 2 that I already did. But I need someone to do the program so I can break it down and figure it out. We have 3 more assigments over the next few weeks that add to this that I might need too. Thanks! Attachments Tags Clarifications

Answers

working on it will submit the expect project

sudheer488
sudheer488 



Downpay the money before Attachments
Screenshots
Purchase Answer

Assignment 2: WK4 Advanced VB.Net Assignment

uetian_cute
uetian_cute 



Complete code with a screenshot of output included. Attachments
ENTD461-Assignment1-WK2.zip (123 K) Download
























Preview
?> <configuration> <startup>

Preview
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />

Preview
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"

Preview
resource class. </summary> </member><member name="T:ENTD461_Assignment1_WK2.My.Resources.Resources"> <summary> A strongly-typed resource class, for looking up localized strings, etc. </summary>

Preview
Me.Label2.Name = "Label2" Me.Label2.Size = New System.Drawing.Size(124, 20) Me.Label2.TabIndex = 4 Me.Label2.Text = "Second Number" ' 'Label3 ' Me.Label3.AutoSize = True Me.Label3.Location = New System.Drawing.Point(15, 135) Me.Label3.Margin = New System.Windows.Forms.Padding(4, 0, 4, 0) Me.Label3.Name = "Label3" Me.Label3.Size = New

Preview
file.Write(TextBoxNum1.Text) file.Write(operaator) file.Write(TextBoxNum2.Text) file.Write("=") file.Write(TextBoxNum3.Text) file.WriteLine() file.Close() End Sub Private Sub btnDisplay_Click(sender As Object, e As EventArgs) Handles btnDisplay.Click Dim lines() As String = IO.File.ReadAllLines("test.txt") ListBox1.Items.AddRange(lines) End Sub Private Sub ListBox1_SelectedIndexChanged(sender As Object, e As

Preview
in this file, go to the Project Designer ' (go to Project Properties or double-click the My Project node in ' Solution Explorer), and make changes on the Application tab. ' Partial Friend Class MyApplication <Global.System.Diagnostics.DebuggerStepThroughAttribute()> _ Public Sub New()

Preview
Guid("70ce953c-3713-4aff-9672-f321428542fd")> ' Version information for an assembly consists of the following four values: ' ' Major Version ' Minor Version ' Build Number ' Revision ' ' You can specify all the values or you can default the Build and Revision

Preview
Friend Module Resources Private resourceMan As Global.System.Resources.ResourceManager Private resourceCulture As Global.System.Globalization.CultureInfo '''<summary> ''' Returns the cached ResourceManager instance used by this class. '''</summary> <Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _ Friend ReadOnly Property ResourceManager() As Global.System.Resources.ResourceManager Get If Object.Referen

Preview
"WindowsForms" Then If Not addedHandler Then SyncLock addedHandlerLockObject If Not addedHandler Then AddHandler My.Application.Shutdown, AddressOf AutoSaveSettings addedHandler = True End If End SyncLock End If #End If Return defaultInstance End Get End Property End Class End Namespace

Preview
Kamran\Desktop\ENTD461-Assignment1-WK2\ENTD461-Assignment1-WK2\bin\Debug\ENTD461-Assignment1-WK2.exe.config C:\Users\Muhammad Kamran\Desktop\ENTD461-Assignment1-WK2\ENTD461-Assignment1-WK2\obj\Debug\ENTD461-Assignment1-WK2.exe C:\Users\Muhammad Kamran\Desktop\ENTD461-Assignment1-WK2\ENTD461-Assignment1-WK2\obj\Debug\ENTD461-Assignment1-WK2.xml C:\Users\Muhammad Kamran\Desktop\ENTD461-Assignment1-WK2\ENTD461-Assignment1-WK2\obj\Debug\ENTD461-Assignment1-WK2.pdb C:\Users\Muhammad Kamran\Deskto

Preview
Overrides the current thread's CurrentUICulture property for all resource lookups using this strongly typed resource class. </summary> </member><member

Preview

Screenshots
Screenshot
Purchase Answer

Assignment 2: WK4

Cramshark01
Cramshark01 



I took developed week 2 and added week 4 on it. Image you see is program. Comments in code to help guide you. No refunds! Attachments
ENTD461-Assignment1-WK4.zip (98 K) Download























Preview
version="1.0" encoding="utf-8" ?> <configuration>

Preview
<startup> <supportedRuntime version="v4.0"

Preview
<?xml version="1.0" encoding="utf-8" ?>

Preview
Returns the cached ResourceManager instance used by this class. </summary> </member><member name="P:ENTD461_Assignment1_WK2.My.Resources.Resources.Culture"> <summary> Overrides the current

Preview
components IsNot Nothing Then components.Dispose() End If Finally MyBase.Dispose(disposing) End Try End Sub 'Required by the Windows Form Designer Private components As System.ComponentModel.IContainer 'NOTE: The following procedure is required by the Windows Form Designer 'It can be modified

Preview
= IO.File.ReadAllLines("test.txt") ListBox1.Items.Clear() ListBox1.Items.AddRange(lines) End Sub Private Sub ListBox1_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ListBox1.SelectedIndexChanged If ListBox1.SelectedIndex = -1 Then Return Dim line As String = ListBox1.SelectedItem Dim parts As String() = line.Split(New [Char]() {"+"c, "-"c, "*"c, "/"c, "="c})

Preview
As Decimal Protected Num2 As Decimal Public Sub New(n1 As Decimal, n2 As Decimal) Num1 =

Preview
store n1 and n2. Nothing else needed MyBase.New(n1, n2) End Sub Public Function Multiply() As Decimal

Preview
Designer ' (go to Project Properties or double-click the My Project node in ' Solution Explorer), and make changes on the Application tab. ' Partial Friend Class MyApplication <Global.System.Diagnostics.DebuggerStepThroughAttribute()> _ Public Sub New() MyBase.New(Global.Microsoft.VisualBasic.ApplicationServices.AuthenticationMode.Windows) Me.IsSingleInstance = false Me.EnableVisualStyles

Preview
an assembly consists of the following four values: ' ' Major Version ' Minor Version ' Build Number ' Revision ' ' You can specify all the values or you can default the Build and Revision Numbers ' by using the '*'

Preview
Private resourceCulture As Global.System.Globalization.CultureInfo '''<summary> ''' Returns the cached ResourceManager instance used by this class. '''</summary> <Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _ Friend ReadOnly Property ResourceManager() As Global.System.Resources.ResourceManager Get If Object.ReferenceEquals(resourceMan, Nothing) Then Dim temp As Global.System.Resources.ResourceManager = New G

Preview
Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings), MySettings) #Region "My.Settings Auto-Save Functionality" #If _MyType = "WindowsForms" Then Private Shared addedHandler As Boolean Private Shared addedHandlerLockObject As New Object <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Adv

Preview
property for all resource lookups using this strongly typed resource class. </summary> </member><member name="T:ENTD461_Assignment1_WK2.My.Resources.Resources"> <summary> A

Preview
C:\Users\papa\Dropbox\ja\drakus6972\ENTD461-Assignment1-WK4\ENTD461-Assignment1-WK4\bin\Debug\ENTD461-Assignment1-WK2.exe.config C:\Users\papa\Dropbox\ja\drakus6972\ENTD461-Assignment1-WK4\ENTD461-Assignment1-WK4\bin\Debug\ENTD461-Assignment1-WK2.exe C:\Users\papa\Dropbox\ja\drakus6972\ENTD461-Assignment1-WK4\ENTD461-Assignment1-WK4\bin\Debug\ENTD461-Assignment1-WK2.pdb

ENTD461-Assignment1-WK4.jpg (33 K) Download Preview

Screenshots
Screenshot
Purchase Answer

WK4 Advanced VB.Net Assignment

sudheer488
sudheer488 



This Code is designed as per the mentioned criteria.
Attachments
Advanced vb net assignment.zip (62 K) Download
















Preview
Create DataBase DB_DEV_USER 2. Create Table with Name MathRresults CREATE TABLE MathRresults( Id int IDENTITY(1,1) primary key, Result varchar(50)

Preview
To modify move field declaration from designer file to code-behind file. </remarks> </member><member name="F:Vb_Calculations1.Calculations.ListBox1"> <summary> ListBox1 control. </summary> <remarks> Auto-generated field. To modify move field declaration from designer file to code-behind file. </remarks> </member><member name="F:Vb_Calculations1.Calculations.btnDelete"> <summary> btnDelete control. </summary> <remarks> Auto-generated field. To modify move field

Preview
runat="server" Text="+" OnClick="btnAdd_Click" />&nbsp; <asp:Button ID="btnSubtract" runat="server" Text="-" OnClick="btnSubtract_Click" />&nbsp; <asp:Button ID="btnMultiply" runat="server" Text="*" OnClick="btnMultiply_Click" />&nbsp; <asp:Button ID="btnDivide" runat="server" Text="/" OnClick="btnDivide_Click" /> </td> </tr> <tr> <td colspan="2" align="center"> <asp:ListBox ID="ListBox1" runat="server" Width="400px" AutoPostBack="true" OnSelectedIndexChanged="ListBox1_SelectedIn

Preview
Global.System.Web.UI.WebControls.ListBox '''<summary> '''btnDelete control. '''</summary> '''<remarks> '''Auto-generated field. '''To modify move field declaration from designer file to code-behind file. '''</remarks> Protected WithEvents btnDelete As Global.System.Web.UI.WebControls.Button '''<summary> '''lblMsg control. '''</summary> '''<remarks> '''Auto-generated field. '''To modify

Preview
dbr As SqlDataReader Try con.Open() dbr = cmd.ExecuteReader() lblMsg.Text = "Values Updated Successfully" lblMsg.ForeColor = Color.Green While dbr.Read() End While Catch ex As Exception lblMsg.Text = "Failed to Save" lblMsg.ForeColor = Color.Red End Try con.Close() listResult()

Preview
this file may cause incorrect behavior and will be lost if '

Preview
of the typelib if this project is exposed to COM <Assembly: Guid("df6c78c8-0649-4364-b86c-018fa87a0728")> ' Version information for an assembly consists of the following four values: ' ' Major Version ' Minor Version ' Build Number ' Revision ' ' You can specify

Preview
instance As T) As T If instance Is Nothing Then Return New T() Else Return instance End If End Function <Global.System.Diagnostics.DebuggerHidden()> _ Private Sub Dispose__Instance__(Of T)(ByRef instance As T) instance = Nothing End Sub <Global.System.Diagnostics.DebuggerHidden()> _

Preview
'<summary> ' Returns the cached ResourceManager instance used by this class. '</summary> <Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _ Friend ReadOnly Property ResourceManager() As Global.System.Resources.ResourceManager Get If Object.ReferenceEquals(resourceMan, Nothing) Then Dim temp As Global.System.Resources.ResourceManager = New Global.System.Resources.ResourceManager("Vb_Calculations1.Resources", GetTyp

Preview
Namespace My <Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _ Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0"), _ Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _ Partial Friend NotInheritable Class MySettings Inherits Global.System.Configuration.ApplicationSettingsBase Private Shared defaul

Preview
D:\Jaipal Reddy\Expert-Exchange\Vb_Calculations\Vb_Calculations1\obj\Debug\ResolveAssemblyReference.cache D:\Jaipal Reddy\Expert-Exchange\Vb_Calculations\Vb_Calculations1\obj\Debug\Vb_Calculations1.Resources.resources D:\Jaipal Reddy\Expert-Exchange\Vb_Calculations\Vb_Calculations1\obj\Debug\GenerateResource.read.1.tlog

Preview
Vb_Calculations1 </name> </assembly> <members> <member name="F:Vb_Calculations1.Calculations.form1"> <summary> form1 control. </summary> <remarks> Auto-generated field. To modify move field declaration from designer file to code-behind file. </remarks> </member><member name="F:Vb_Calculations1.Calculations.txtFirstNumber"> <summary> txtFirstNumber control. </summary> <remarks> Auto-generated field. To modify move field declaration from designer file to code-behind file. <

Preview
For more information on how to configure your ASP.NET application, please visit http://go.microsoft.com/fwlink/?LinkId=169433

Preview
will replace the entire <customErrors> section of your web.config file. Note that because there is only one customErrors section under the <system.web> node, there is no need to use the "xdt:Locator" attribute. <customErrors defaultRedirect="GenericError.htm"

Preview
example below, the "SetAttributes" transform will change the value of "connectionString" to use "ReleaseSQLServer" only when the "Match" locator finds an atrribute "name" that has a value of "MyDB". <connectionStrings> <add name="MyDB" connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"

output.PNG (32 K) Download Preview

Screenshots
Screenshot
Purchase Answer