Question
Write a complete C program that will determine the gross pay for several employees. Each line of input (except the last one) will contain two
Write a complete C program that will determine the gross pay for several employees. Each line of input (except the last one) will contain two values: 1) number of hours worked (int) and 2) hourly pay rate (double). A sentinel value of -1 for hours worked signals the end of input. There will only be one number on the input line with the sentinel. Here's how to calculate an employee's salary. if hours worked <= 40, salary = hours worked * hourly pay rate if hours worked > 40, salary = hours worked * hourly pay rate plus 0.5 * (hours worked - 40) * hourly pay rate Display the employee's salary in the standard dollars and cents format.
Write a C function named factorList that will accept an integer parameter, n, and print all of the factors of the parameter. The function should not return a value. Example incoming parameter: 6 Output to the screen: 1 2 3 6
Write a C function named vectorLength that will accept 3 double parameters: a, n, and m. The function should calculate and return the length of the vector Ch according to this formula. length of Ch = 3 (2 + 2 + )
Complete the following code segment using a switch statement. int main( void ) { // input a character char c; c = getchar(); // determine if c is a vowel (A, E, I, O or U, or a, e, i, o or u) // print a message saying whether or not c is a vowel // your switch statement goes here } // end main
c programming
only use these headers # include
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