Posts

Showing posts with the label Chapter 5

HSC Grading System Algorithm, Flowchart and C Program

Image
  Flow-Chart C Program #include <stdio.h> #include <conio.h> void main() {     int x;     printf("Please Enter Your Marks Obtained:");     scanf("%d",&x);     if(x<=100 && x>=80)     {         printf("You Got A+");     }     else if(x<=79 && x>=70)     {         printf("You Got A");     }     else if(x<=69 && x>=60)     {         printf("You Got A-");     }     else if(x<=59 && x>=50)     {         printf("You Got B");     }     else if(x<=49 && x>=40)     {         printf("You Got C");     }     else if(x<=39 && x>=33)     {         printf("You Got D");     }...

একটি সাল Leap Year কি না দেখার Algorithm, Flowchart and C Program.

Image
Algorithm 1. Start 2. Input হিসাবে X এর মান নেই। 3. X%100 == 0  করি। যদি Yes হয়  4 নং এ যাই আর No হলে  5 নং এ যাই। 4. X%400 == 0 করি। যদি Yes হয় Output হিসাবে Leap Year দেখাই  আর No হলে Output হিসাবে Not Leap Year দেখাই। এবং 6নং যাই।  5. X%4 == 0 করি। যদি Yes হয় Output হিসাবে Leap Year দেখাই  আর No হলে Output হিসাবে Not Leap Year দেখাই। এবং 6নং যাই।  6. Stop Flowchart C Program #include <stdio.h> #include <conio.h> void main() {     int x;     printf("Please Enter A Year:");     scanf("%d",&x);     if(x%100==0)     {         if(x%400==0)         {             printf("This Year is Leap Year");         }         else         {             printf("This Year is not Leap Year");         }     }   ...

জন্ম তারিখ থেকে বয়স বের করা Algorithm , Flowchart and C Program

Image
Algorithm 1. Start. 2. Input হিসাবে  Y1,Y2, Y=0, M1,M2,M=0,D1,D2,D=0 নাই। 3. D2<D1 করি। যদি Yes হয়  D2+30 করি এবং এর মান D2 রাখি, M1+1 করি এবং এর মান M1 রাখি, (D2-D1)+1 করি এবং  এর মান  D রাখি। আর No হলে   (D2-D1)+1 করি এবং  এর মান  D রাখি। 4. M2<M1  করি। যদি Yes হয়  M2+12  করি এবং এর মান  M2  রাখি,  Y1+1  করি এবং এর মান  Y1  রাখি,  M2-M1  এর মান  M  রাখি। আর No হলে  M2-M1  করি এবং   এর মান  M  রাখি। 5 Y2-Y1  করি এবং এর মান  Y  রাখি। 6. Output হিসাবে Y, M, D মান দেখাই। 7. Stop. Flowchart C Program #include <stdio.h> #include <conio.h> void main()  {     int y1,y2,y=0;     int m1,m2,m=0;     int d1,d2,d=0;     printf("Please Enter Your date of Birth:\n");     printf("Day(DD): ");     scanf("%d",&d1);     printf("\nMonth(MM): ");     sca...