Question

Please Solve this problem using Visual Basic Programming Language (show design Interface and programming codes): Q....

Please Solve this problem using Visual Basic Programming Language (show design Interface and programming codes):

Q. The Interface provides a text box, for the user to enter his or her current salary. The Calculate Button's Click Event Procedure should calculate the new salary amounts using rates of 2% through 6% in increment's of 0.5%. The procedure should display the rates and salary amounts in the lblNewSalary control. Code the procedure using the For....Next statement. Save the work.

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

VB Code:

Public Class SalIncrement

    Private Sub btnCalculate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCalculate.Click

        ' Reading current salary from user
        Dim currentSal As Double = Double.Parse(tbSalary.Text)

        Dim newSal As Double

        ' Incrementing at step of 0.5 from 2 to 6
        For increment As Double = 2 To 6 Step 0.5

            ' Calculating new salary
            newSal = currentSal + (currentSal * (increment / 100.0))

            ' Constructing string for writing data to text box
            lblNewSalary.Text += "" & vbNewLine & ("Rate: " + increment.ToString() + "%" & "     " & " New Salary: " + newSal.ToString())

        Next

    End Sub

End Class

-----------------------------------------------------------------------------------------------------------------------------------------------------------------

Sample Output:

OX Salary Increment Cumrent Salary 2500 Calculate Rate: 2% Rate: 2.5% Rate: 3% Rate: 3.5% Rate: 4% Rate: 4.5% Rate: 5% Rate:

Add a comment
Know the answer?
Add Answer to:
Please Solve this problem using Visual Basic Programming Language (show design Interface and programming codes): Q....
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
  • The questions below deal with Microsoft Visual Studio 2012 Reloaded, under the Visual Basic programming language....

    The questions below deal with Microsoft Visual Studio 2012 Reloaded, under the Visual Basic programming language. The book ISBN number that I am using is: 978-1-285-08416-9 or the UPC code is: 2-901285084168-1. Question 1 Visual Basic 2012 is an object-oriented programming language, which is a language that allows the programmer to use ____________________ to accomplish a program�s goal. Question 2 An application that has a Web user interface and runs on a server is called a(n) ____________________ application. Question 3...

  • PLEASE USE VISUAL BASIC* BY VISUAL STUDIO. Visual Basic INTERMEDIATE Create a Windows Forms application. Use...

    PLEASE USE VISUAL BASIC* BY VISUAL STUDIO. Visual Basic INTERMEDIATE Create a Windows Forms application. Use the following names for the project and solution, respectively: Chopkins Project and Chopkins Solution. Save the application in the VB2017\Chap03 folder. Change the form file's name to Main Form.vb. Change the form's name to frmMain. Create the interface shown in Figure 3-37. The interface contains six labels, three text boxes, and two buttons. The application calculates and displays the total number of packs ordered...

  • Open the Gross Pay Solution.sln file contained in the VB2017\Chap08\Gross Pay Solution folder. The interface provides...

    Open the Gross Pay Solution.sln file contained in the VB2017\Chap08\Gross Pay Solution folder. The interface provides a text box for entering the number of hours an employee worked. It also provides a list box for selecting the employee’s pay code. The btnCalc_Click procedure should display the gross pay, using the number of hours worked and the pay rate corresponding to the selected code. The pay codes and rates are listed in Figure 8-47. Employees working more than 40 hours receive...

  • the specific programming language to do this with is Visual Basic what formula? specify what you...

    the specific programming language to do this with is Visual Basic what formula? specify what you mean I want to develop a program which will calculate the total pressure and the hydrostatic pressure on a submerged vehicle in atmospheres. Associate this program with a button on a worksheet. Ask the user to input the specific gravity of the fluid and the submersion depth in feet in an input box. Set a variable for the acceleration of gravity in your code,...

  • Hello, I need assistance with my assignment please in Visual Basic. Starting Out With Visual Basic...

    Hello, I need assistance with my assignment please in Visual Basic. Starting Out With Visual Basic Seventh Edition Chapter 5 Programming Challenge #1. Sum Of Numbers... page 370 Create an application that displays a form similar to the one shown in Figure 5-44. When the Enter Numbers button is clicked, the application should display the input box shown in Figure 5-45. The input box asks the user to enter a positive integer value. Notice that the default input value is...

  • An Introduction to Programming Using Visual Basic Tenth Edition Chapter 3 Programming Project 2 What is...

    An Introduction to Programming Using Visual Basic Tenth Edition Chapter 3 Programming Project 2 What is the solution to this project? one of the numbers in an input text box is change the type of Auto Repair Calculator X Customer: John Doe Hours of labor: 3.5 Cost of parts and supplies 84.55 Display Bill + First number 21 Second number 77 х Customer Labor cost Parts cost Total cost John Doe $122.50 $88.78 $211.28 21 x 77 = 1617 FIGURE...

  • Please note: This is in Visual Basic. Create an application (windows forms app). Add a label...

    Please note: This is in Visual Basic. Create an application (windows forms app). Add a label and a button to the form. The button’s Click event procedure should declare and initialize a one-dimensional Double array. Use any six numbers to initialize the array. The procedure should display (in the label) the lowest value stored in the array. Code the procedure using the For...Next statement.

  • Week 5 Programming Lab - Broadway Ticket Group Discount ( Web Design With Visual Basic) Submit...

    Week 5 Programming Lab - Broadway Ticket Group Discount ( Web Design With Visual Basic) Submit Assignment Due No Due Date Points 100 Submitting a text entry box or a file upload Complete the following case programming assignment. To upload and submit the program and materials you created, click the Choose File button to find and select your saved documents. Make sure that the files are saved with your last name in the file name (Example: ch4_case1_Jones.doc). BROADWAY TICKET GROUP...

  • Graphical User Interface Programming (Code using JavaScript w/ Intellij idea) This assignment can be done using...

    Graphical User Interface Programming (Code using JavaScript w/ Intellij idea) This assignment can be done using either the Java Swing Library or the Java FX Library Design a universal remote control for an entertainment system such as (cable / TV, etc). Create the interface as a Java Intellij project. Optionally, you may design the interface for a smartphone. This is Very Important If you are implementing your design using the Swing Library, the assignment cannot be created using the GUI...

  • MESSAGE 1 1. Using the Visual Basic Editor, create a VBA procedure named message_1 that does...

    MESSAGE 1 1. Using the Visual Basic Editor, create a VBA procedure named message_1 that does the following: a. Asks the user for their name (using an Input Box). b. Determines the number of slides in the presentation using the appropriate code. c. Displays a message back to the user (using a Message Box) that contains the name entered and the number of slide in the presentation. The message should be something like this: (Hello Sally, there are 8 slides...

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