Question: I would like to ask for help for using in the C language, Planning the Logic of the Program. There are 4 parts I would

I would like to ask for help for using in the C language, Planning the Logic of the Program. There are 4 parts I would like to ask for help with as stated below. Programming in C: Part 1: Commenting Code For the code in this part provided. compile, and run. Pay attention to the formatting of the code. Add at least eight comments to explain what the program does and how it works. After commenting build and test the program to make sure it still builds and runs correctly. Commenting Code Cmments need to explain what the code does and how it does it are an important best practice. Type in the code provided in the assignment Resources, build/compile the program, and run it. /* Ann Smith - IT2240 - U02a1 - Part 1 * 10/01/2015 Rev. 1 */ #include  int main(void) { int firstNumber; int secondNumber; printf(" This program determines if the 1st non-zero integer entered is evenly "); printf("divisible by the 2nd non-zero integer entered using the modulus operator. "); printf("Enter 2 integers separated by a space: "); scanf("%i %i", &firstNumber, &secondNumber); if(firstNumber == 0 || secondNumber == 0) { printf(" Error - Neither number can be 0. Sorry! "); } else { if(firstNumber % secondNumber == 0) { printf("%i is evenly divisible by %i. ", firstNumber, secondNumber); } else { printf("%i is not evenly divisible by %i. ", firstNumber, secondNumber); } } return 0; } Part 2: Pay Calculator This part requires to Write a program in C that requests the user to enter hours worked in a week and the hourly wage. The program should then print the gross pay, the taxes, and the net pay. Assume the following: 1.Overtime (in excess of 40 hours for week) = time and a half. 2.Tax rate: 15% of the first $600, 20% of the rest. Proper code formatting is required with meaningful comments in the source code are required for all code. THere is a requirement to include extended comments about the logic used Part 3 is to explain the Part 2. Part 3 is to write out in plain English, what the program needs from part 2 to do and describe the steps in the process to solve the problem. I need a clear explanation and description the steps in the process to solve the problem. Focus on a clear explanation of the steps in solving the problem, not writing C Part 4: Cab Fare Calculator Write a program in C. This program should calculate the fare for a cab ride based on the rates provided below. The program needs to Ask user to input distance (measured to 1/10 of mile), number of passengers, and if going to/coming from the airport. Calculate fare for trip using these rates: 1.Minimum fare: $5.00 (fares less than this rounded up to $5.00). 2.$1.80 per mile (charged by 1/10 of mile. 2.1 miles = $3.78). 3.1st additional passenger, if more than 1 rider: $1.00. 4.Each additional passenger (after 1st additional passenger): $0.50. 5.Airport surcharge: $2.00 

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!