Project #22273 - VISUAL BASIC

 

Create an application with the following specifications.  Upload your zip file to blackboard under assignments. 

 

1.      Create the following menu structure:

File                        Functions                                Subroutines

Exit  Ctrl+X                ComputePay   F3                    ComputePay   F4

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

                                                                                          About              Ctrl+Shift+A

 

2.      Create a context menu associated with the form that has options for ComputeFunction, ComputeSub and Divide.  Use the same shortcut keys as above and add an image to each menu choice.

 

3.      Write a ComputePayFunc function that does the following:

  • Takes as input the number of hours a person has worked
  • Takes as input the pay rate per hour
  • Computes the salary
  • Returns the result to the main program

The click event of the ComputePay menu item (under functions) should call this function.

            Get the hours worked and the pay rate from text boxes

            Display the result in a message box

The click event of the ComputeFunction context menu item should call this function.

            Get the hours worked and the pay rate from input boxes

            Display the result in a label on the form

 

4.      Write a subroutine (ComputePaySub) for to compute the pay for an employee.

  • Write a ComputePaySub routine that does essentially the same thing the previous function, only it should work as a subroutine, not a function. 
  • Your results should be displayed in a label on the form.

The click event of the ComputePay menu item under subroutines should call this function

            Get the hours worked and the pay rate from text boxes

The click event of the ComputeSub context menu item should call this function.

            Get the hours worked and the pay rate from input boxes

 

 

5.      The About menu choice should pop up a message box that displays your name and the date this application was created.

Subject Computer
Due By (Pacific Time) 02/09/2014 12:00 am
Report DMCA
TutorRating
pallavi

Chat Now!

out of 1971 reviews
More..
amosmm

Chat Now!

out of 766 reviews
More..
PhyzKyd

Chat Now!

out of 1164 reviews
More..
rajdeep77

Chat Now!

out of 721 reviews
More..
sctys

Chat Now!

out of 1600 reviews
More..
sharadgreen

Chat Now!

out of 770 reviews
More..
topnotcher

Chat Now!

out of 766 reviews
More..
XXXIAO

Chat Now!

out of 680 reviews
More..
All Rights Reserved. Copyright by AceMyHW.com - Copyright Policy