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...
#include <stdio.h> #include <stdlib.h> #include <math.h> int count,i, tracker = 0; int main() { scanf("%d\n", &count); int numbers[count]; //GEtting the numbers and satisfy BS conditions for (i = 0; i < count; i++) { if (scanf("%d", &numbers[i]) != EOF) { tracker++; } if (numbers[i] < 0 || numbers[i] > 99) { printf("%d is not in the [0, 99] range.\n",numbers[i]); exit(i); } } if( tracker != count) { printf("%d numbers are required, but only %d were provided.\n", count, tracker); exit(1); }...
//C programing help #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #define SIZE 5 int main() { double gradesWithBonus[SIZE]; int i; for (i = 0; i < SIZE; i++) { printf("Please enter your grade: "); //getting grade scanf("%lf", &gradesWithBonus[i]); printf("\n"); } for (i = 0; i < SIZE; i++) { //adding 5 to entered grade double bonous; bonous = gradesWithBonus[i] + 5.0; printf("Grade entered at array element...
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...
#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
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 >...
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; }