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

VB.net - Math Simulator

dickersonka
dickersonka 


A Visual Basic Forms Application that will generate two random numbers and then depending on the selected radio button, will perform the appropriate calculation. (Add, Multiply, Divide or Subtact). The calculations should change at the following times (e.g the handles clause): Calculate Buttons Click Event, Radio Button's CheckChanged Event. There should also be a group box radio button set that allows me to select a difficulty If I choose easy, the numbers should only be between 1 and 50, Intermediate - 1 and 500, Difficult 1 and 1000. Please note that the radio buttons should act independently of the ones used for calculations. Attachments
Tags Clarifications

Answers

VB.net - Math Simulator - Solution

dickersonka
dickersonka 



Attached is the solution to the VB.net - Math Simulator assignment including source and comments Attachments
MathSimulator.zip (16 K) Download







Preview
Me.tbNumber1.Location = New System.Drawing.Point(33, 130) Me.tbNumber1.Name = "tbNumber1" Me.tbNumber1.ReadOnly = True Me.tbNumber1.Size = New System.Drawing.Size(100, 20) Me.tbNumber1.TabIndex = 2 ' 'Label1 ' Me.Label1.AutoSize = True Me.Label1.Location = New System.Drawing.Point(57, 109) Me.Label1.Name = "Label1" Me.Label1.Size = New System.Drawing.Size(53, 13)

Preview
number1 = Val(tbNumber1.Text) number2 = Val(tbNumber2.Text) If rbnAdd.Checked Then result = number1 + number2 ElseIf rbnSubtract.Checked Then result = number1 - number2 ElseIf rbnMultiply.Checked Then result = number1 * number2 ElseIf rbnDivide.Checked Then result = number1 / number2

Preview
Changes to this file may cause incorrect behavior and will be lost if ' the code is regenerated. ' </auto-generated> '------------------------------------------------------------------------------ Option Strict On Option Explicit On Namespace My 'NOTE: This file is auto-generated; do not modify it directly. To make changes,

Preview
an assembly. ' Review the values of the assembly attributes <Assembly: AssemblyTitle("MathSimulator")> <Assembly: AssemblyDescription("")> <Assembly: AssemblyCompany("Hewlett-Packard")> <Assembly: AssemblyProduct("MathSimulator")> <Assembly: AssemblyCopyright("Copyright © Hewlett-Packard 2014")> <Assembly: AssemblyTrademark("")> <Assembly: ComVisible(False)> 'The following GUID is for the ID of the typelib if

Preview
_ Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _ Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _ Global.Microsoft.VisualBasic.HideModuleNameAttribute()> _ 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.Edit

Preview
to this file may cause incorrect behavior and will be lost if ' the code is regenerated. ' </auto-generated> '------------------------------------------------------------------------------ Option Strict On Option Explicit On Namespace My <Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _ Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0"), _ Global.System.Componen

MathSimulator.png (15 K) Download Preview

Screenshots
Screenshot
Purchase Answer