Make Windows Forms App (NET Framework)
Language should be Visual Basic
This is the extension of the console application, but we would be using UI in forms project.
So Create a forms project this time and create three Labels and three textfields and submit button as shown.
The only difference between the console and forms project in this application, we would be converting the data entered in a textbox. As you know, text entered in a textbox is a string. But we want numeric value. You can use CSng function to convert strings to Single and CInt function to convert strings to integer.
So use these functions and resue part of the code from the console application to calculate the monthly mortgage.
When the user clicks the submit button, calculate the mortgage payment and display the value calling MessageBox.Show function
Submit the screenshot of the three cases. Submit the VB script , I don't want the project files.
Following are the snapshot of the above program:
The user needs to write the program on the VB compiler to get the desired output
Get Answers For Free
Most questions answered within 1 hours.