Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Could you please take the following Program C text and put in into a \".c\" file

ID: 3645169 • Letter: C

Question

Could you please take the following Program C text and put in into a ".c" file and send it back as a .c file
thank you:




Program File: Arithmetic
Author: Greg DeMont
Email: nskiboyg@yahoo.com
Date: June 2, 2012
Assignment: Program Assignment 1
Course: 90.211.031
Objective: This program will calculate and be able to print the sum, difference, product and remainder of two integers.



#include <stdio.h>
*/

/*
*/

int main(void)
{
//print info
printf("This program will do some arithmetic operations.n");
printf("The 2 numbers used by this program are 63 and 25. ");

// Declare variables
int value1, value2, sum;

//Assign values
value1 = 63;
value2 = 25;

//Addition
printf ("The Sum of %i plus %i is %i ", value1, value2, value1 + value2);

//Subtraction
printf ("The Difference of %i minus %i is %i ", value1, value2, value1 - value2);

//Multiplication
printf ("The Product of %i times %i is %i ", value1, value2, value1 * value2);


//Division with a remainder

printf ("The Quotient of %i divided by %i is %i with a remainder of %i ", value1, value2, value1 / value2, value1 % value2);

printf("If I had %i nickels and %i cents then I would have $ %.2f ",num_1,num_2,money);

printf("Thank you for using this program. ");
getchar();
}

Explanation / Answer

#include #include void main() { int a,b,c; int menu; printf("choose the arithmetic option "); scanf("%d",&menu); switch(menu) { case 1: printf("Enter The Two Numbers: "); scanf("%d%d",&a,&b); c=a+b; printf("The addition of two numbers %d ",c); break; case 2: printf("Enter THE TWO NUMBERS: "); scanf("%d%d",&a,&b); c=a-b; printf("The subtraction of two numbers %d ",c); break; case 3: printf("Enter THE TWO NUMBERS: "); scanf("%d%d",&a,&b); c=a*b; printf("The multiplication of two numbers %d ",c); break; case 4: printf("Enter THE TWO NUMBERS: "); scanf("%d%d",&a,&b); c=a/b; printf("The division of two numbers %d ",c); break; } getch(); }
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote