Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 # include # include

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

Records And Database Management

Authors: Jeffrey R Stewart Ed D, Judith S Greene, Judith A Hickey

4th Edition

0070614741, 9780070614741

More Books

Students also viewed these Databases questions

Question

Find the derivative. f(x) 8 3 4 mix X O 4 x32 4 x32 3 -4x - x2

Answered: 1 week ago