Answered step by step
Verified Expert Solution
Question
1 Approved Answer
CSC 1 3 4 : Chapter 7 Programming Project Individual work, you may use any resource, but the work must be your own. Please include
CSC : Chapter Programming Project
Individual work, you may use any resource, but the work must be your own. Please
include with your solution a statement that this is your own work.
Payroll, PC #
Write a C solution to Programming Challenge # from Chapter Your solution can
be written using arrays or vectors.
Code Specifications:
The employee ID numbers should be stored in an array or vector The array or
vector should be initialized with the given ID numbers. In addition, store each
name in a parallel array or vector.
The program should prompt the user for each of the employee's hourly pay and
hours worked. The interactive prompt for the pay rate and hours for each
employee should include the employee's name and ID
Include Timeandahalf in the calculation of the gross pay. The gross pay should
be nicely formatted in the output rounded with 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.
REQUIRED: Include a screenshot showing your program tested with the following table
of data. Remember to demonstrate Input Validation with your program in the screen
shot.
HINT: You should review section on parallel arrays prior to beginning this project.
Your program should store the employee names and the employee IDs in parallel
arrays. You should also study the expected output shown in the Grading Rules
document.
Turn in your source code solution file and a testing screenshot that shows you
successfully compiled and tested the program or a ZIP of these files Be sure your
name is visible in the screenshot as the author of the code eg a header comment
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started