Question: Write a C++ solution to Programming Challenge #9 from Chapter 7. Your solution can be written using arrays or vectors. You should review section 7.7
Write a C++ solution to Programming Challenge #9 from Chapter 7.
Your solution can be written using arrays or vectors. You should review section 7.7 on parallel arrays prior to beginning this project.
Your program should store the employee names and the employee IDs in parallel arrays. The program should prompt the user for each of the employees hourly pay and hours worked. The interactive prompt for an employees hours and pay rate should include their name and ID. Include Time-and-a-half in the calculation of the gross pay. The gross pay should be nicely formatted in the output (rounded, with 2 decimal places visible). Input Validation: do not accept negative values for hours or values less than the minimum wage for the hourly pay rate for North Carolina. Include a screenshot showing your program tested with the following table of data. Also show a screenshot to demonstrate Input Validation with your program. Name______ Employee ID ____Hours ___Hourly Pay Bill Smith_____ 5658845 _______10________ 25 Sally Mae _____8451277 ______22_________12 Tom Williams __4520125_______40_________10 John Cook ____1302850 ______44 _________12 Bill Joy _______7895122 ______48 ________10.10 Sue Bach _____7580489______35 __________15 Pam Little_____8777541_____ _40 __________12
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
