Question: I want to convert these codes into Flowcharts. = EvaDai / Assignment #2 C + 0 Files 50336 - Buying Carpets 1 #include 2 3
I want to convert these codes into Flowcharts.
= EvaDai / Assignment #2 C + 0 Files 50336 - Buying Carpets 1 #include 2 3 int main() { 4 int n, a, b, i, sum=0; 5 scanf("%d", &n); 6 for(i=1;i 2 #define SIZE 100 3 4 int main(){ 5 char name [SIZE] [25]; 6 int g1,92, n, i; 7 double AVG [SIZE]; 8 scanf("%d",&n); 9 for(i=0;i 2 3 int main() { 4 int k,n, i, inside, out, f=0; 5 scanf("%d %d",&k, &n); 6 for(i=1;i 2 3 int main() { 4 int age, i, p, sum=0; 5 for (i=1; i=0 && age=4 && age9) { 14 p=8; 15 sum+=p; 16 } 17 } 18 printf("%d", sum); 19 return 0; 20 } Code Console Commands > T. Il Vodafone AL @ 6% 4 13:05 repl.it AA = EvaDai / Assignment #2 C Files 50430 - ATM 1 #include 2 3 int main() { 4 int X; 5 float Y, t; 6 scanf("%d %f", &X, &Y); 7 if (Y>X && X%5==0){ 8 t=Y-X-0.50; 9 printf("%.2f", t); 10 }else{ 11 printf("%.2f", Y); 12 } 13 return 0; 14 } D Code Console Commands 2 3 int main() { 4 int n, i,c,p; 5 double sum=0; 6 scanf("%d",&n); 7 for(i=1;i0){ 13 p=100+(((c-120)/10)*5)+5 ; 14 }else if(c%10==0){ 15 p=100+(((c-120)/10)*5); 16 } } sum+= p; 19 } 20 printf("%.Olf", sum); 21 return 0; 11 17 18 Code Console Commands P > 10 Vodafone AL @ 6% 4 13:06 repl.it AA = EvaDai / Assignment #2 C Files 50452 - Multiplication Table 1 #include 2 #include 3 4 int main() { 5 int n; 6 scanf("%d", &n); 7 printf("%d ", n*1); 8 printf("%d ", n*2); 9 printf("%d ", n*3); 10 printf("%d ",n*4); printf("%d ", n*5); 12 printf("%d ", n*6); 13 printf("%d ", n*7); 14 printf("%d ", n*8); 15 printf("%d ", n*9); 16 printf("%d ", n*10); 17 return 0; 18 } 11 Code Console Commands 2 3 int main() { 4 int x, y; 5 scanf("%d %d", &x, &y); 6 if (x>0 && y>0) { 7 printf("Quadrant 1"); 8 } else if (x==0 && y!=0) { 9 printf("Over Y axis"); 10 } else if (x==0 && y==0) { 11 printf("Center"); 12 } else if(x!=0 && y==0) { 13 printf("Over X axis"); 14 } else if(x>0 && y 0) { 17 printf("Quadrant 2"); 18 } else { 19 printf("Quadrant 3"); 20 } 21 return 0; 22 } Code Console Commands P > 10 Vodafone AL @ 6% 4 13:06 repl.it AA = EvaDai / Assignment #2 C 50481 - Car Parking Files 1 #include 2 3 int main() { 4 int t,c,i, sum=0; 5 for(i=1; i=1 && t=1 && t4 && t 10 Vodafone AL @ 6% 4 13:07 repl.it AA = EvaDai / Assignment #2 C Files 50548 - Albanian Airlines 1 #include 2 3 int main() { 4 int i,n,p,a; 5 double sum, total=0.0; 6 scanf("%d %d",&n, &p); 7 for(i=1;i=0 && a=3 && a T. 10 Vodafone AL @ 6% 4 13:07 repl.it AA = EvaDai / Assignment #2 C 50568 - BMI Calculator Files 1 #include 2 #include 3 4 int main() { 5 double h, BMI; 6 int w; 7 scanf("%lf %d", &h, Sw); 8 BMI=w/(h*h); 9 if(BMI=18.5 && BMI 25 && BMI=30) { printf("%lf Obese", BMI); } return 0; 15 16 17 18 } Code Console Commands > 10 Vodafone AL @ 6% 4 13:07 repl.it AA = EvaDai / Assignment #2 C 50589 - The Number of Eggs Sold Files 1 #include 2 3 int main() { 4 int i, n,k,m, t, s=0; 5 scanf("%d %d %d",&n, &k, &m); 6 for(i=1;ik){ 9 S+t-k; 10 } 11 } 12 printf("%d",s); 13 return 0; 14 } D Code Console Commands 2 3 int main() { 4 int a,b,c,d; 5 int k, l, m, n; 6 int f, g, h, j; 7 scanf("%d %d %d %d %d %d %d %d", &a, &b, &c, &d, &k, &l, &m, &n); 8 fra-k; 9 g=b-l; 10 h=c-m; 11 j=d-n; 12 printf("%d", f+9+h+j); 13 return 0; 14 } Code Console Commands 2 3 int main() { 4 int min; 5 int i=0; 6 scanf("%d %d", &m, &n); 7 double sum1=m, sum2=n; 8 while (sum1 2 3 int main() { 4 int at, bt,ct, ad, bd, cd, ta, td; 5 double d1, d2, d3, tn; 6 scanf("%d %d %d %d %d %d", &at ,&bt,&ct,&ad, &bd,&cd); 7 d1=(double) (ad*100)/at; 8 d2=(double) (bd*100)/bt; 9 d3=( double) (cd*100)/ct; 10 if(d1>=d2 && d1>=d3) { 11 printf(" %.21f ", d1); 12 } else if (d2>=d1 && d2>=d3) { printf(" %21f ", d2); } else if (d3>=d1 && d3>=d2) { 15 printf(" %.21f", d3); 16 } 17 ta=at+bt+ct; 18 td=ad+bd+cd; 19 tn=(double)td/ta*100; 20 printf(" %.21f", tn); 21 return 0; D 13 14 Code Console Commands P > 10 Vodafone AL @ 7% 13:07 repl.it AA = EvaDai / Assignment #2 C 51030 - Number of Right Triangles Files 1 #include 2 3 int main() { 4 int a, b, c, i, k=0; 5 for(i=1; i 2 3 int main() { 4 int r, b,n, a, c; 5 double ac, at, ar; 6 scanf("%d %d %d %d %d", &r, &b &h, &a, &c); 7 ac = 3.141592653589793238*r*r; 8 at = (b*h)/2.0; 9 ar = a*c; 10 if (ac>at && ac>ar) { printf("%.21f", ac); 12 } else if (at>=ac && at>=ar) { 13 printf("%.21f", at); 14 } else if (ar>=at && ar>=ac) { 15 printf(" %.21f", ar); 16 } 17 return 0; 18 } 11 Code Console Commands T. 10 Vodafone AL @ 7% 13:08 repl.it AA = EvaDai / Assignment #2 C Files ex 22 DEC to OCT 1 #include 2 #define MAX_SIZE 100 3 4 int main() { 5 int num, rem, i=0,j; 6 printf(" Enter a decimal number: "); 7 scanf("%d", &num); 8 int A[MAX_SIZE]; 9 do { 10 rem=num%8; num = num/8; 12 A[i]=rem; 13 i++; 14 } while(num!=0); 15 printf(" Result in octal number: "); 16 for(j=i-1; j>=0; j--) { printf("%d",A[j]); 18 } 19 return 0; 20 } 11 17 Code Console Commands P > 10 Vodafone AL @ 7% 13:08 repl.it AA = EvaDai / Assignment #2 C LONCO ex 23 figure (asteriks) Files 1 #include 2 3 int main() { 4 int i, space, rows, k=0; 5 printf("Enter the number of Rows: "); 6 scanf("%d",&rows); 7 for(i=1;i 1 10 Vodafone AL @ 7% 13:08 repl.it AA = EvaDai / Assignment #2 C Files ex 24 figure (numbers) 1 #include 2 3 int main() { 4 int i, j,n; 5 scanf("%d",&n); 6 for(i=n; i>=1;i--) { 7 for(j=1; j 2 3 int main() { 4 int n,k; 5 int fa1=1, fa2=1, fa3=1; 6 double C; 7 scanf("%d %d",&n, &k); 8 for(int i=1;i 2 3 int main() { 4 unsigned long i, n1=0, n2=1, nextNum; 5 for (i=1; i cinclude 3.A Ya cel - BRIC PRE- Buget La fi If changes called with a code 1 VOCE 40 W 7 60666 AA 9 10 11 12 Theo 11 14 int mind int 1.1-e.rows.nu .count-6.spacecount: printf("Enter the number of rows you want :"); scanf("%d", &rows) for(-1; Icrows +1) for(spaceCount 1; Spacecounter spacecount) printf(" "); count Juhlle(1-2*1-1){ 1(count crows-136 printf("%s", 13): scount) } else H: printf("%d",(1:1-2"num)): ) ++ ) num. count.e; 1.0, printf(" "); 1 returne were DORY 17 18 19 20 21 22 21 24 25 20 100 28 Type here to search o *** 100 2 4 de 2021-00-11 New Tab Repla Ag2 Chwork for Software Engine x 31) Kege Moy - Poplux C replit, Digimet 251031820-X.Controm 200x200 ET Helal ka KRIR OT K.HR KIRIN K. KE H... To KIR 11. HIRE Ja :: Type here to search o 37 2 40 1314 2021-02-11 B1) Kmge Moy - Pophort x New Tab Repla Aman 2 Chework for Software Engee x C replit, Delignment 262028KOLeap yea ET III Exal Assignment #2 CD Run Upgrade + Contoh Shall Files D50797 Nr of Ming c D50035 - Breaking the Bu clang-7 pthread-in mo main main.c unt/bin/./11b/g/x86_64-legnu/0/../..../ 64-11-ma/arti. In function atart (.text+w20): undefined reference to a clang-7: 1inker comand failed with exLe code 1 (une to see moontlon) >D e D50099 How Many Years D51027. Download Parc D51010 Number of light x 28 Leup your 1 include 2 int main() int y: S scanf("%d",&y); D if(y) && (YX1001-e)) ( 7 printf("%d is a leap year", y): } else if(y%100-) ( printf("%d is a leap year", y); 10 } else { 11 printf("%d is not a leap year", y); 12 > 13 return 0; 14 D52031. Compartim D51034 Aros o Shapes D51060 Transport D** 22 DEC 10 OCT Den De 24 fire urbe) DX 25 numbes 2) x 26 function D 21 Faces R 25 Layer D2 EXAMPLE Type here to search o + 2 40 1315 2021-00-11 5 ex 29 EXAMPLE 1 #include 2 3 int main() { 4 int angi, ang2, ang3; printf("Input two angles of triangle separated by comma: "); 6 scanf("%d %d", &angi, &ang2); ang3=180-(angi+ang2); printf("Third angle of the triangle:%d ", ang3); 9 return ; 10 } 7 00