Programming C

profileLLRR2017
Graded_Hwk_1_Skeleton.txt

/************************************************************************************** Name: INFO.2110 Graded Homework 1 Part A:(65 pts) Write a program that asks the user to enter two whole numbers, and prints the sum, product, difference, quotient and remainder of the two numbers. Your program is on-time. Part B: (75 pts) Part A and write a program that gets three different whole numbers from the user, then prints the sum, the average, the product of these numbers. Your program is on-time. Part C: (85 pts) Part A & B and write a program that reads in the radius of a circle and prints the circle's diameter, circumference and area. Use the constant value 3.14159 for Pi. All calculations should occur outside the printf statement(s) and use the formatted conversion %.2f for float variables. Your program is on-time. Part D: (95 pts) Part A, B, & C and write a program that calculates the student average based on the following where the user enters 3 values, the program adds the values up and then displays the student average dividing the sum by 10. Your program is on-time. ********************************************************************************************/ //Libraries #include "stdafx.h" //C++ #include <stdio.h> //C void PartA(void) { /* Write a program that asks the user to enter two whole numbers, and prints the sum, product, difference, quotient and remainder of the two numbers. */ } void PartB(void) { /*Part A and write a program that gets three different whole numbers from the user, then prints the sum, the average, the product of these numbers. */ } void PartC(void) { /* Part A & B and write a program that reads in the radius of a circle and prints the circle's diameter, circumference and area. Use the constant value 3.14159 for Pi. All calculations should occur outside the printf statement(s) and use the formatted conversion %.2f for float variables. */ } void PartD(void) { /* Part A, B, & C and write a program that calculates the student average based on the following where the user enters 3 values, the program adds the values up and then displays the student average dividing the sum by 10. */ } int main(void) { PartA(); PartB(); PartC(); PartD(); return 0; }