Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hi there I need help coding this in C Language. Make sure it is C, thank you very much and I will for sure thumbs

Hi there I need help coding this in C Language. Make sure it is C, thank you very much and I will for sure thumbs up any help!

image text in transcribed

Here are the instructions:

Also here is the starting code to use:

#define _CRT_SECURE_NO_WARNINGS

#include #include #include

#define WORKERMAX 25

//prototype for giveRaise

//prototype for printEmployees

int main(void) {

//declare structure definition

//declare array of structures

//call giveRaise

//call printEmployees

}

//Functions defined here including both giveRaise and printEmployees

2. The goal of this problem is to create an array of structures to implement an employee salary system. The only function students are to write is giveRaise. Goals of the problem: 1. Create an array of employee structures the size of WORKERMAX. 2. Create the employee structure with the following fields: fName - first name of 15 characters. IName - last name of 20 characters. years - number of years of service, store as an integer. salary - amount of pay as type double as an hourly amount. state - state of employee, 2 characters. 3. Create the function, call, and prototype for the function giveRaise. Rules of algorithm: All employees with years of service over 5 years and earn less than 18.00 dollars an hour earn a 10% raise. if the employee has years of service less than 3 years and lives in California (CA), then give a raise of 18%, otherwise 12%. 4. Create the function to print the entire array of data. Assume all numeric fields are initialized to zero, therefore print until the element in the array has years equal to zero. Function name is printEmployees

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_2

Step: 3

blur-text-image_3

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

Inference Control In Statistical Databases From Theory To Practice Lncs 2316

Authors: Josep Domingo-Ferrer

2002nd Edition

3540436146, 978-3540436140

More Books

Students also viewed these Databases questions