Intro to Programming with C

Lorem ipsum dolor sit amet consectetur adipisicing elit. Impedit culpa eveniet atque dolor, cum omnis id vitae quasi aliquid optio perspiciatis inventore, quae aspernatur, velit quo a ipsa. Omnis, nam!

  • #include <stdio.h>
  • void main(void)
  • {
  • printf("Programming is fun\n");
  • getchar();
  • }

Assignment #1

Write a C program that calculates and prints the sum, difference, product, quotient, and remainder (modulus) of two integer numbers. This should be output by a well structured and thorough report that shows the math involved.

Assignment #2

Write a C program that calculates the cost of carpets for 3 rooms of carpeting. The program should prompt the user to enter the area of each room and the cost per sq. ft. of area in each room, and then calculate the overall area and cost per room in a friendly report.

Assignment #3

Write a C program that calculates and prints the average of two or more movie rating values entered by the user. Once all values are entered, the program should calculate and print the average of all the valid values entered. At the end, display a message for the appropriate movie ratings average.

Assignment #4

Write a C program that allows the user to enter sales information for a number of sales persons and compute the commissions due for each, and summary results in report form. The report should look identical to the one provided by your instructor.

Assignment #5

For our fifth assignment, the instructor provided us with a working program and we were asked to modify it, to include at least five functions from a list we were provided. Once the functions were added, the code was expected, of course, to run and have the same output.