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.

COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
1st Edition
ISBN:9780357392676
Author:FREUND, Steven
Publisher:FREUND, Steven
Chapter4: Financial Functions, Data Tables, And Amortization Schedules
Section: Chapter Questions
Problem 3EYW
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
  • SEE MORE QUESTIONS
Recommended textbooks for you
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr
Enhanced Discovering Computers 2017 (Shelly Cashm…
Enhanced Discovering Computers 2017 (Shelly Cashm…
Computer Science
ISBN:
9781305657458
Author:
Misty E. Vermaat, Susan L. Sebok, Steven M. Freund, Mark Frydenberg, Jennifer T. Campbell
Publisher:
Cengage Learning
Operations Research : Applications and Algorithms
Operations Research : Applications and Algorithms
Computer Science
ISBN:
9780534380588
Author:
Wayne L. Winston
Publisher:
Brooks Cole