Posts

Showing posts from August, 2023

Bmi calculator with java by Indranil Bhattacharjee.

Bmi calculator in java with Brithish rule &  Metrix rule in java. and say overweight,Obese,under weight etc.   import java . util . Scanner ; class BMICal {     public static void main ( String [] args ) {         float bmi , kg , m , lb , inch ;         char choice , ch ;         Scanner sc = new Scanner ( System . in );         System . out . print ( "weight in kg Y/N ?" );         choice = sc . next (). charAt ( 0 );         switch ( choice ) {             case 'Y' :                 System . out . print ( "Enter weight in kg:-" );                 kg = sc . nextFloat ();                 System . out . print ( "Enter height in inch y/n:-" );           ...

Queue with Array in c by Indranil Bhattacharjee

Image
        Welcome Study Global write a program Queue data structure in c programming by Indranil Bhattacharjee. #include <stdio.h> #include <stdlib.h> #define N 5 int front = - 1 ; int rear = - 1 ; int array [ N ]; void enqueue ( int v ) {     if ( rear == N - 1 )     {         printf ( "Queue is overflow" );     }     else if ( front == - 1 && rear == - 1 )     {         front = rear = 0 ;         array [ rear ] = v ;     }     else     {         rear ++ ;         array [ rear ] = v ;     } } void dequeue () {     if ( front == - 1 && rear == - 1 )     {         printf ( "Queue underflow" );     }     else if ( front == rear )     {...

Doubly Linklist Implemention program in c by Indranil Bhattacharjee.

Image
Welcome Study Global   #include <stdio.h> #include <stdlib.h> struct node {     int data ;     struct node * next ;     struct node * prev ;     }; struct node * next , * ptr , * temp , * newnode ;     struct node * head = NULL ; struct node * creatDoublylinklist (){     int ch ;     while ( 1 )     {       newnode = ( struct node * ) malloc ( sizeof ( struct node ));       printf ( "Enter the value:" );       scanf ( " %d " , & newnode -> data );       newnode -> next = NULL ;       newnode -> prev = NULL ;     if ( head == NULL ){         head = temp = newnode ;     }     else {         temp -> next = newnode ;         newnode -> prev = temp ;         temp = newnode ;   ...

Gender_game make with java produced by Indranil Bhattacharjee.

Image
Welcome My Study Global write a program in java select gender. If gender 'm'for male then he is called mr. he's name or if gender 'f' for female then program asked she's married or unmarried .If she's married then called mrs.she's title or she's unmarried then called she,s full name. import java . util . Scanner ; class Gender {     public static void main ( String args []) {         Scanner sc = new Scanner ( System . in );         System . out . print ( "What is your gender (M or F): " );         char g = sc . next (). charAt ( 0 );         sc . nextLine ();         switch ( g ) {             case 'M' :                 System . out . print ( "First name: " );                 String h = sc . nextLine ();             ...