Develop a VB application that reads employee details and computes his payment. The application shall read the employee name and the number of hours worked. It then decides whether the employee is a full time or part time one. Based on that decision, proper hour rate should be used to calculate the payment. Following the instructions below to develop the application: Instructions: 1. Create a new project. 2. Design the form as follow: Employee Note: Add the following to the form: a. Two labels b. Two buttons : btnCheck and btnClear Employee Name Number of Hours Worked

Programming with Microsoft Visual Basic 2017
8th Edition
ISBN:9781337102124
Author:Diane Zak
Publisher:Diane Zak
Chapter11: Sql Server Databases
Section: Chapter Questions
Problem 8E
icon
Related questions
Question

Using Visual basic programming language,

Please do everything based on the requirements.

Question 1:
Develop a VB application that reads employee details and computes his payment. The
application shall read the employee name and the number of hours worked. It then
decides whether the employee is a full time or part time one. Based on that decision,
proper hour rate should be used to calculate the payment.
Following the instructions below to develop the application:
Instructions:
1. Create a new project.
2. Design the form as follow:
Employee
Note:
Add the following to the form:
a. Two labels
Employee Name
b. Two buttons : btnCheck and btnClear
Number of Hours Worked
c. Two textboxes
d. Two pictureBoxes : picFullTime and picPartTime
e. One listBox
Check
Ist Report
btnClear should be added before adding picFullTime
and picPartTime. This will place btnClear behind the two
pictureBoxes.
Give appropriate names to the forms, and controls
(which are: labels, textboxes, listBox, pictureBoxes and
buttons).
FULL
PART
TIME
TIME
3. Write the proper code that responds to the following events handlers:
Action
Read the employee name
Control
Event
btnCheck
Click
Read the number of hours worked
Make a decision; whether s/he is full time or part time:
• Full time if number of hours worked is 40 or more
• picPartTime shall be hidden
• TextAlign of btnClear to middleRight
• Part time if number of hours worked is less than 40
• picFullTime shall be hidden
• TextAlign of btnClear to middleLeft
Calculate the payment:
• Determine the hourRate; as follow:
• 10 BD per hour for full time
7.5 BD per hour for part time
• Payment = hours * hourRate
Display a report in IstReport; as shown in the following screenshot:
Transcribed Image Text:Question 1: Develop a VB application that reads employee details and computes his payment. The application shall read the employee name and the number of hours worked. It then decides whether the employee is a full time or part time one. Based on that decision, proper hour rate should be used to calculate the payment. Following the instructions below to develop the application: Instructions: 1. Create a new project. 2. Design the form as follow: Employee Note: Add the following to the form: a. Two labels Employee Name b. Two buttons : btnCheck and btnClear Number of Hours Worked c. Two textboxes d. Two pictureBoxes : picFullTime and picPartTime e. One listBox Check Ist Report btnClear should be added before adding picFullTime and picPartTime. This will place btnClear behind the two pictureBoxes. Give appropriate names to the forms, and controls (which are: labels, textboxes, listBox, pictureBoxes and buttons). FULL PART TIME TIME 3. Write the proper code that responds to the following events handlers: Action Read the employee name Control Event btnCheck Click Read the number of hours worked Make a decision; whether s/he is full time or part time: • Full time if number of hours worked is 40 or more • picPartTime shall be hidden • TextAlign of btnClear to middleRight • Part time if number of hours worked is less than 40 • picFullTime shall be hidden • TextAlign of btnClear to middleLeft Calculate the payment: • Determine the hourRate; as follow: • 10 BD per hour for full time 7.5 BD per hour for part time • Payment = hours * hourRate Display a report in IstReport; as shown in the following screenshot:
Saad is a FULL TIME Employee
His payment is 450 BD
btnClear
Click
Clear the textboxes and listBox
View the two pictureBoxes
4. Add comments to your program; explaining the meaning of the code.
Sample screenshots:
Employee
Employee
Employee Name
Saad
Employee Name
Ahmed
Number of Hours Worked 45
Number of Hours Worked 25
Check
Check
Saad is a FULL TIME Employee
His payment is 450 BD
Ahmed is a PART TIME Employee
His payment is 187.5 BD
FULL
ΤΙΜE
PART
ΤΙΜE
Clear
Clear
Transcribed Image Text:Saad is a FULL TIME Employee His payment is 450 BD btnClear Click Clear the textboxes and listBox View the two pictureBoxes 4. Add comments to your program; explaining the meaning of the code. Sample screenshots: Employee Employee Employee Name Saad Employee Name Ahmed Number of Hours Worked 45 Number of Hours Worked 25 Check Check Saad is a FULL TIME Employee His payment is 450 BD Ahmed is a PART TIME Employee His payment is 187.5 BD FULL ΤΙΜE PART ΤΙΜE Clear Clear
Expert Solution
steps

Step by step

Solved in 4 steps with 1 images

Blurred answer
Knowledge Booster
Running Time of Application
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
CMPTR
CMPTR
Computer Science
ISBN:
9781337681872
Author:
PINARD
Publisher:
Cengage