Question: Assignment One: Given two integers, a and b , their least common multiple, commonly denoted LCM ( a , b ) , is the smallest

Assignment One: Given two integers, a and b, their least common multiple, commonly denoted LCM(a,b), is the smallest integer that is a multiple of both a and b. For example, the least common multiple of 6 and 4 is 12. This is because 12 is both a multiple of 6(6*2=12) and 4(4*3=12). This means that 12 is the smallest multiple for both 4 and 6.
For this exercise, create an ASP.NET page and corresponding function that accepts two integer inputs and then computes and displays the least common multiple (LCM) for the numbers entered. The formula for to determine the LCM is given as:
LCM(a,b)=(a * b)/ GCD(a,b)
You should refer to the BMI calculator that you created earlier in the course. The BMI calculator model works well for this exercise as it takes two numeric inputs, performs a calculation, and displays the result. Also check out the pseudo-code for calculating the Greatest Common Denominator (GCD) in exercise 1, chapter 10 of your book. The GCD calculation MUST be set-up as a function in your program for full credit.
As with the previous exercises, be sure to use two TextBox Web controls for the user input, a Button Web control, and a Label Web control. The Button Web controls Click event handler should compute the least common multiple (LCM) of the two values entered by the user using the function you created and then display the results.
Please use VIsual Basic instead of C#. I am mainly having trouble incorportating the GCD. Please have a screen shot so I can visually understand what you are doing. Thank you!!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!