Answered step by step
Verified Expert Solution
Link Copied!

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 134: Chapter 7 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 #9
Write a C++ solution to Programming Challenge #9 from Chapter 7. 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 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.
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 7.6 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 C++ 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 (e.g., a header comment).
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

=+1. How similar is the source to the audience?

Answered: 1 week ago

Question

Does it avoid using personal pronouns (such as I and me)?

Answered: 1 week ago

Question

Does it clearly identify what you have done and accomplished?

Answered: 1 week ago