any help please?
#include <stdio.h>
#include <math.h>
int main()
{
double borrow;
double interest;
double monthes;
double payment;
borrow= 15.090;
interest= .00583;
monthes=48;
payment= borrow*(interset*pow(interest,48)+1)/(pow(interest,48)+1* - 1);
return 0;
}
I'm trying to calculate the monthly payment but nothing shows up!
#include <stdio.h>
#include <math.h>
int main()
{
double borrow;
double interest;
double monthes;
double payment;
borrow= 15.090;
interest= .00583;
monthes=48;
payment =
borrow*(interest*pow(1+interest,monthes))/(pow(1+interest,monthes)
- 1); // this is the formula for calculating the
payment
printf("Payment: %.2f\n", payment); // use
printf to display the result to screen
return 0;
}
any help please? #include <stdio.h> #include <math.h> int main() { double borrow; double interest; double...
Draw the flowchart of the following program: # include < stdio.h> # include < math.h> int main (void) {double time, velocity, acceleration; print f("Enter new time value in second: \n"); scanf("% 1f", & time); if (time = = 1)} velocity = 0.5 * pow (time, 3); acceleration = 0.5* velocity * velocity;); if (time = = 0.5 * pow (time, 3); acceleration = .5 velocity * velocity;} else {velocity = 1.5 * pow (time, 3); acceleration = 1.5 * velocity...
please help me asap 1 Determine the output for the following code: #include<stdio.h> int main static int num; fornum : ++ num: num++) -- printf("%d". num): if num ==8) break; [10] COI retum 1 b) #include<stdio.h> int main int test: fortest - 0: tests=5: test); printer test: retum
please help, no explanation just need answer #include <stdio.h> #include <stdlib.h> int main(void) { int -x5); for (int = 0; i < 5; i++) { x[i] = malloc(sizeof (int) - 5); for (int i = 0; i < 5; i++) { for (int j = 0; j < 5; j++) { x[i][j] = i j ; modify(x, 5, 5); return 0; Which of the implementations of method modify below set all elements of the matrix x to zero? 1. void...
#include <stdio.h> .. int main(int argc, char *argv[]) { int base, power; printf("enter base and power: "); scanf("%d %d", &base, &power); while (base != -100){ double res = pow(base, power); double res2 = my_pow(base, power); printf("pow: %.4f\n", res); printf("my_pow: %.4f\n", res2); .... } return 0; } // this function should be RECURSIVE // should not use any loop here double my_pow(double base, double p) { } lab4pow.c file contains: 2.1 Specification Write an ANSI-C program that reads input from the...
1 #include<stdio.h> 53 int findMax (int, SA 5 int main() 6 { int n; int max; int maxLoc; co n = //ASSIGNMENT HERE 12 13 14 15 16 max = findMax (n, &maxLoc); n = n - max* (int) pow (10, maxLoc); //PRINT STATEMENT HERE 17 18 return(0); 19 ) 20 21 int findMax (int n, int *maxLoc) 22 { 23 int max = 0; int loc = 0; 24 25 26 while(n > 0) 27 28 if(n% 10 >...
#include <stdio.h> int main(int argc, char *argv[]) { int i; for (i = argc - 1; i > 0; i--) printf("%s ", argv[i]); printf("\n"); return 0; } can you explain this code in c and why use this function
Convert this code from C to C++ include <stdio.h> include <locale.h> void filtre (double x. double yll, double yol, int , int N) int Nn-10000 int main) setlocale (LC ALL,") double x(Nm) , y [ Nm],yo Nml®(0.0); int m; FILE dosyal-fopen("D:/veri/673.txtr FILE dosya2-fopen("D:/veri/data2.txt int i-0 while( feof (dosyal)) fscanf (dosyal, " ",xi sytil) fclose (dosyal) int Nij printf("Pencere Genişligi scanf() 3 filtre(x,y.Yo,m,N) for(int k-0keNkt+)fprintf (dosya2, 10.41 10.411 0.41fn",x[k],y[k].yo[k]) fclose(dosya2) void filtre (double x double y. double yoll, int m, int...
what is the output of the following program? #include<stdio.h> #include<string.h> int main(void){ char word[20]; int i =0 strcpy(word, "ORGANISE"); while(word[i] !='\0'){ if(i%2 ==1) word[i] = 'C'; i++; } printf("%s",word); return 0; }
i need flowchart for the following c code #include <stdio.h> int main() { int n, i, sum = 0; printf("Enter an integer: "); scanf("%d",&n); i = 1; while ( i <=n ) { sum += i; ++i; } printf("Sum = %d",sum); return 0; }
Please help. #include <stdio.h> 3 int countSubstring(char paragraph[], char substring[]) { W NEBO VOU A // --- -------- DO NOT MODIFY THIS SECTION -------- int main() { char exParagraph[] = "I'm hungry. I need to eat some meat. This will be great"; 'char exSubstring[] = "eat"; int times = countSubstring(exParagraph, exSubstring); printf("Number of times we found %s: %d", exSubstring, times); } // ------- 14 15 Complete the function countSubstring to return the number of times a substring occurs in a...