Question

Create an application in Visual Studios 2015 that displays the result of dividing the larger of two numbers entered by the user by the smaller one. You can not label entries of one must the larger on the user interface. You must use your known logic to determine which number is larger of the two entered by the user to perform your calculations.

¢ If the smaller number is 0, the application should display the message "Cannot divide by 0" in a message box.

¢ You should also be using the Val() and TryParse() functions where applicable.

¢ Test your application.

o Test the application by entering the values 150.72 and 3 in the First and Second boxes.

o Test your application by entering 4 and 100 in the First and Second boxes.

o Also test is using 0 and 5, and then again using 0 and -3.

¢ Add an appropriate splash screen to your application.

o The timer should be set to display the splash screen for 12 seconds

o Add an appropriate image and text of your choice.

Below is an image of what the interface might look like

Division Calculator Numbers First: Second: Divides larger number by smaller number Quotient Calculate Exit

0 0
Add a comment Improve this question Transcribed image text
Answer #1

i attached code and screenshot of output. go through it. this will help you. please provide your valuable feedback.

Code:

Public Class Form1
Private Sub btncalculate_Click(sender As Object, e As EventArgs) Handles btncalculate.Click
Dim first As Double
Dim second As Double
Dim result As Double
first = Convert.ToDouble(txtfirst.Text.Trim())
second = Convert.ToDouble(txtsecond.Text.Trim())
If (first > second) Then
result = first / second
Else
result = second / first

End If
lblresult.Text = result.ToString()
End Sub

Private Sub btnexit_Click(sender As Object, e As EventArgs) Handles btnexit.Click
Me.Close()
End Sub
End Class

Output:

Divison Calculator Numbers First Second 2 10 Divides larger number by smaller number Quotient 5 Calculate Exit

Add a comment
Know the answer?
Add Answer to:
Create an application in Visual Studios 2015 that displays the result of dividing the larger of...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • C# Visual Studios Create a GUI application that prompts users to enter a ten (10) digit...

    C# Visual Studios Create a GUI application that prompts users to enter a ten (10) digit phone number, with hyphens and parentheses included – this input should be validated as a phone number adhering to the (XXX)-XXX-XXXX format. Should the user input an incorrect format, an error message should print to screen and your phone number textbox should be highlighted in red. Should an appropriately formatted phone number be entered, an acceptance message should printed to screen and your phone...

  • Travel Expenses Create a GUI in C# Visual Studios application that calculates and displays the total...

    Travel Expenses Create a GUI in C# Visual Studios application that calculates and displays the total travel expenses of a business person on a trip. Here is the information that the user must provide: • Number of days on the trip • Amount of airfare, if any • Amount of car rental fees, if any • Number of miles driven, if a private vehicle was used • Amount of parking fees, if any • Amount of taxi charges, if any...

  • Android Problem Using JAVA Problem: You need to create an app on Android Studios that allows...

    Android Problem Using JAVA Problem: You need to create an app on Android Studios that allows users to register and login into the system. The focus of this project is for you to create an app with several activities and has data validation. You should have for your app: A welcome screen (splash screen) with your app name and a picture. You should then move to a screen that asks the user for either to log in or to register....

  • Written in C# visual studio (Please show step by step) Create an application that can be...

    Written in C# visual studio (Please show step by step) Create an application that can be used to allow users to enter information such as their names, e-mail addresses, and phone numbers. The application should provide a minimum of four features. The first retrieves and displays the information entered by the user. Output should be displayed in a Windows dialog message box. The second feature clears the entries so that new values can be entered. Provide an “About” feature under...

  • create java application with the following specifications: -create an employee class with the following attibutes: name...

    create java application with the following specifications: -create an employee class with the following attibutes: name and salary -add constuctor with arguments to initialize the attributes to valid values -write corresponding get and set methods for the attributes -add a method in Employee called verify() that returns true/false and validates that the salary falls in range1,000.00-99,999.99 Add a test application class to allow the user to enter employee information and display output: -using input(either scanner or jOption), allow user to...

  • Create a Wpf application Use Visual Studios 2019 A shipping company receives packages at its headquarters,...

    Create a Wpf application Use Visual Studios 2019 A shipping company receives packages at its headquarters, which functions as its shipping hub. After receiving the packages the company ships them to a distribution center in one of the following states: Alabama, Florida, Georgia, Kentucky, Mississippi, North Carolina, South Carolina, Tennessee, West Virginia or Virginia. The company needs an application to track the packages that pass through its shipping hub. The application generates a package ID number for each package that...

  • home work

    a.      You must use proper error and exception handling (try, catch) in the application. [5 marks] b.      Accept the users first and last name store in two SEPARATE variables. [2 marks] c.      Accept two numbers:                                i.     validate that the user has entered numbers for each input. [3 marks]                               ii.     For invalid numbers ask the user to re-enter the number [2 marks]                               iii.     If the user enters a number greater than 500 throw an exception, display a message that numbers should...

  • You are to create a new application that will execute on your Arduino platform based upon...

    You are to create a new application that will execute on your Arduino platform based upon the Blink example that is available in the Arduino Examples folder that you downloaded as part of the IDE. Your application will use a toggle switch to interface with the user. The application will operate by controlling the LEDs based upon the position of the toggle switch. If the user moves the LEDs until new user input is provided. When the user moves the...

  • Using Java Create an application that creates and displays a list of names using an array....

    Using Java Create an application that creates and displays a list of names using an array. Then modify the application to create and use a list of numbers. Console for the names application Please enter a name or type “exit” to quit: Diane Please enter a name or type “exit” to quit: Joe Please enter a name or type “exit” to quit: Greta Please enter a name or type “exit” to quit: Henry Please enter a name or type “exit”...

  • Please please help with the code! Apperciate all the effort --create using html5, css3, and javas...

    Please please help with the code! Apperciate all the effort --create using html5, css3, and javascript. --The interface permits the user to compute the number of primes in ranges of integer values. --The interface should present the user with 4 pairs of "number" boxes in which 4 pairs of integer values can be entered. Each pair of values should be used by a thread to compute the number of prime numbers in that range, inclusive. -- If any box is...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT