DIFFUSIVITY EQUATION (PROGRAM AND FLOWCHART) STEEL GRADING (PROGRAM AND FLOWCHART) ZAKAT CALCULATION (PROGRAM AND FLOWCHART)
#include<stdio.h> #include<conio.h> #include<math.h> void main() { clrscr(); float ma,mb,T,P,S,t,D; printf("Enter the Molecular mass of the gas(A) to be diffused:",ma); scanf("%f",&ma); printf("\nEnter the Molecular mass of the other gas(B):",mb); scanf("%f",&mb); printf("\nEnter the Temperature:",T); scanf("%f",&T); printf("\nEnter the Pressure:",P); scanf("%f",&P); S=sqrt((1/ma)+(1/mb)); t=pow(T,(3/2)); D=((10^-4)*(1.084-0.249*S)*t*S)/P; printf("\n\nThe Diffusivity of gas A in gas B is found to be:%0.3f",D); getch(); }
#include<stdio.h> #include<conio.h> #include<math.h> void main() { float C,G,S,T,Z,g; printf("Enter the amount of Cash:",C); scanf("%f",&C); printf("\nEnter the amount of Gold:",G); scanf("%f",&G); printf("\nEnter the amount of Silver:",S); scanf("%f",&S); T=(C+G+S); Z=(T*2.5); g=65000; if(T<7.5*g) { printf("\n\nYour are INELEGIBLE to pay Zakat"); goto end; } else { printf("\n\nThe amount of Zakat is:%0.3f",Z); } end: getch(); }
FLOWCHART
INPUT (Amount of gold, silver & cash)