Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I am having difficulty running this on the Dev-C++ Compiler, what is the proper way to do this? The purpose of this phase is to

I am having difficulty running this on the Dev-C++ Compiler, what is the proper way to do this?

The purpose of this phase is to expand the payroll system to display all employee information in a tabular form by including arrays.

A) Display company title and a header that labels the output in a tabular form. Input the first name and last name of an employee.

char firstname[100][10], lastname[100][15]; or you may use #include using namespace std; string firstname[100], lastname[100]; int hw[100],empid[100];

Hint: You may want to use the following I/O manipulators.

#include , setw(15), setprecision(2) setiosflags(ios::fixed|ios::showpoint|ios::left)

PAYROLL INSTITUTE

FIRST NAME LAST NAME STAT

SSN

HW

HR

OTH

OTP

REGP

GROSS

TAX

NET

======== ======== ==== ====

===

=== ==== ===== ===== ===== ===== =====
John Smith M

113

50

20

10

300

800

1100

385

715

Jane Dow M

223

45

15

5

112.5

675

787.5

275

512.5

B) Take advantage of arrays by breaking programs into separate units. Each unit should have a separate loop. (Do not use functions.)

  • Read all data into arrays
  • Compute all the overtimepays
  • Compute all the grosspays
  • Compute all the taxratesCompute all the netpays
  • Display all the arrays

C) Include separate functions to read in the data, compute the gross pay, tax rate, net pay, and overtime pay for all employees, and display.

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

Recommended Textbook for

Refactoring Databases Evolutionary Database Design

Authors: Scott Ambler, Pramod Sadalage

1st Edition

0321774515, 978-0321774514

More Books

Students also viewed these Databases questions

Question

=+ Are unions company-wide, regional, or national?

Answered: 1 week ago

Question

=+j Explain the litigation risks in international labor relations.

Answered: 1 week ago

Question

=+j What rules will apply to the process of negotiations?

Answered: 1 week ago