Gross Pay Problem

You have been asked to write a function  named GrossPay to

1) input two values, hours and rate assign them as arguments

2) determine the gross pay (hours * rate)

3) pass the gross pay back as the result through the function name

 

Create a flowchart and VBA code to solve this problem. Create a command button on the spreadsheet named cmdGrossPay Place the code under the Click event of a command button titled “Gross Pay”.

Flowchart Solution

Sample Screen Shots

VBA Solution Code