Program61.java Write a program that prompts an employee to enter his/her hourly pay rate and hours worked last week. Call a method that takes these inputs as arguments. This method should calculate and print the employee's regular pay and overtime pay in currency format. The method should return the gross pay to main. The main method should print the gross pay in currency format.

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
icon
Related questions
Question

Program61.java
Write a program that prompts an employee to enter his/her hourly pay rate and hours worked last week. Call a method that takes these inputs as arguments. This method should calculate and print the employee's regular pay and overtime pay in currency format. The method should return the gross pay to mainThe main method should print the gross pay in currency format.
Sample Output (image below)

Program62.java
Write a program that prompts for a full name (first and last) and assigns it to one string. The program then passes the full name to a void method as its sole parameter. The void method should print the first name, on one line, as many times as indicated by the length of the last name
Sample Output (image below)

Enter your full name Helen Hywatter
Helen Helen Helen Helen Helen Helen Helen Helen
Transcribed Image Text:Enter your full name Helen Hywatter Helen Helen Helen Helen Helen Helen Helen Helen
Enter your hourly pay rate 45.00
Enter hours worked in week 50
Regulay pay: $1,800.00
Overtime pay: $675.00
Total gross pay: $2,475.00
Transcribed Image Text:Enter your hourly pay rate 45.00 Enter hours worked in week 50 Regulay pay: $1,800.00 Overtime pay: $675.00 Total gross pay: $2,475.00
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
void method
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
Recommended textbooks for you
Database System Concepts
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)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education