Write a program to calculate pay for three different types of employees. The program will have the following components: • Combo box to select the type of employee. See Bagel file. • Two text fields to input the number of hours worked and pay rate. • A button to calculate the total pay. Labels where appropriate. The types of employees are: • Salaried: These employees earn $2000 plus a weekly bonus. Use a dialog box to request the weekly bonus. • Hourly: Pay = hours times rate. Volunteer: These employees do not get paid so their pay will display as 0.
Write a program to calculate pay for three different types of employees. The program will have the following components: • Combo box to select the type of employee. See Bagel file. • Two text fields to input the number of hours worked and pay rate. • A button to calculate the total pay. Labels where appropriate. The types of employees are: • Salaried: These employees earn $2000 plus a weekly bonus. Use a dialog box to request the weekly bonus. • Hourly: Pay = hours times rate. Volunteer: These employees do not get paid so their pay will display as 0.
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question

Transcribed Image Text:3.
Write a program to calculate pay for three different types of employees. The
program will have the following components:
• Combo box to select the type of employee. See Bagel file.
• Two text fields to input the number of hours worked and pay rate.
• A button to calculate the total pay.
• Labels where appropriate.
The types of employees are:
• Salaried: These employees earn $2000 plus a weekly bonus. Use a dialog
box to request the weekly bonus.
• Hourly: Pay = hours times rate.
• Volunteer: These employees do not get paid so their pay will display as 0.
Payroll
Select an Employee Type...
Hours: 0
Rate: 0.0
Calculate Pay
Pay: $0.00
*Name the main driver class Pay and the interface panel class PayPanel.

Transcribed Image Text:GUI
You will find the files needed for Problems 1 and 2 in the Module 8: Graphical User Interfaces
course content folder. The EvenOdd and Bagel files will help you with Problem
1.
Make the following changes to the Push Counter program:
Add 2 each time the button is pressed.
Change the title bar from Push Counter to Pushes x Two.
Change the button label from Push me! to Add Two.
Change the background color.
Change the size so the panel is higher than it is wide.
Change the label from Pushes: to Total =.
1.
2.
3.
4.
5.
6.
2.
Modify the Fahrenheit program so that it displays a button that when pressed causes the
conversion calculation to take place. The user will have the option of pressing Enter in
the text field or pressing the button. Have the listener that is already defined for the text
field also listen for the button push.
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 2 images

Knowledge Booster
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.Recommended textbooks for you

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON

Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education