Skip to main content

Bank Management System Project in C++ || c++ mini projects

Building a Bank Management System in C++: A Step-by-Step Guide Introduction In this article, we will delve into the world of programming by creating a comprehensive Bank Management System using the C++ programming language. This project will cover all aspects of a fully functional banking system, from account management to transaction handling and data storage. By following this step-by-step guide, you will learn how to create an efficient and user-friendly menu-driven program. So, let's embark on this exciting journey of developing a robust bank management system in C++! Table of Contents Setting Up the Project Environment Understanding the Bank Management System's Design Implementing Basic Account Management Functions Creating and Deleting Accounts Balance Enquiry Transaction Handling Deposits and Withdrawals Utilizing Data Structures for Efficient Data Management Introduction to Data Structures Storing Account Data Building a User-Friendly Menu-Driven Program User Input and ...

C++ Graphic Use Draw Car with Traffic light - Codestudio07

 C++ Graphic Use Draw Car with Traffic light.


This blog creates a car using c ++. And that move is also done. In this, as we see the traffic signal in real life. Just like that, it also has the same system. Car will stop on red color, The car will start running on green color. All this is done using c ++ Graphic.


The code of this entire program is written below. And you can also download it by clicking it on the download. I have also made videos on this, you can also watch it.





I also have a YouTube channel. In which I become a very intresting project using c ++ graphic, so click on the channel link below and follow the channel. 


Download code 


YouTube channel



#include<iostream.h>

#include<conio.h>

#include<graphics.h>

#include<dos.h>


void program_start();

void stop_car();

void cout_down();

void last_step();


void main()

{


int gd=DETECT,gm;

initgraph(&gd,&gm,"c:\\tc\\bgi");


//starting

program_start();


       //stop car

       stop_car();


       //cout down

      cout_down();


     //last step

     last_step();


getch();

closegraph();


}




void program_start()


{


for(int i=0;i<=250;i++)


{


//car body


ellipse(110+i,335,400,135,150,90);


line(1+i,271,1+i,300);


line(1+i,300,37+i,300);


circle(53+i,300,17);


line(69+i,300,154+i,300);


circle(173+i,300,17);


line(193+i,300,260+i,300);


line(1+i,275,230+i,275);


ellipse(240+i,289,322,486,24,14.9);


line(55+i,249,55+i,275);


line(140+i,249,140+i,275);


      //traffic system


if(i>=210)


{


  setfillstyle(SOLID_FILL,RED);


  circle(547,152,8); //red light


  floodfill(547,152,15);


}


//traffic


line(548,200,548,320);


rectangle(535,139,560,200);


circle(548,124,15); //count


circle(547,152,8); //red light


circle(547,172,8); //yellow  light


circle(547,192,8); //green light


//road


line(0,318,getmaxx(),318);


       delay(20);


cleardevice();


}


}


void stop_car()


{


//stop car body


ellipse(360,335,400,135,150,90);


line(250,271,250,300);


line(250,300,288,300);


circle(303,300,17);


line(319,300,404,300);


circle(423,300,17);


line(443,300,510,300);


line(250,275,480,275);


ellipse(490,289,322,486,24,14.9);


line(305,249,305,275);


line(390,249,390,275);




//traffic light


line(548,200,548,320);


rectangle(535,139,560,200);


circle(548,124,15); //count


setfillstyle(SOLID_FILL,RED);


circle(547,152,8); //red light


floodfill(547,152,15);


circle(547,172,8); //yellow  light


circle(547,192,8); //green light


//road


line(0,318,getmaxx(),318);


}



void cout_down()


{


circle(548,124,15); //count


  for(int g=1; g<=220;g++)


  {


     if(g==20)


     {


       outtextxy(546,122,"1");


//stop car body


ellipse(360,335,400,135,150,90);


line(250,271,250,300);


line(250,300,288,300);


circle(303,300,17);


line(319,300,404,300);


circle(423,300,17);


line(443,300,510,300);


line(250,275,480,275);


ellipse(490,289,322,486,24,14.9);


line(305,249,305,275);


line(390,249,390,275);




//traffic light


line(548,200,548,320);


rectangle(535,139,560,200);


circle(548,124,15); //count


setfillstyle(SOLID_FILL,RED);


circle(547,152,8); //red light


floodfill(547,152,15);


circle(547,172,8); //yellow  light


circle(547,192,8); //green light


//road


line(0,318,getmaxx(),318);


     }


     if(g==50)


     {


cleardevice();


circle(548,124,15);


outtextxy(546,122,"2");




//stop car body


ellipse(360,335,400,135,150,90);


line(250,271,250,300);


line(250,300,288,300);


circle(303,300,17);


line(319,300,404,300);


circle(423,300,17);


line(443,300,510,300);


line(250,275,480,275);


ellipse(490,289,322,486,24,14.9);


line(305,249,305,275);


line(390,249,390,275);




//traffic light


line(548,200,548,320);


rectangle(535,139,560,200);




circle(548,124,15); //count




setfillstyle(SOLID_FILL,RED);


circle(547,152,8); //red light


floodfill(547,152,15);


circle(547,172,8); //yellow  light


circle(547,192,8); //green light




//road


line(0,318,getmaxx(),318);


     }



     if(g==80)


     {


cleardevice();


circle(548,124,15);


outtextxy(546,122,"3");


//stop car body


ellipse(360,335,400,135,150,90);


line(250,271,250,300);


line(250,300,288,300);


circle(303,300,17);


line(319,300,404,300);


circle(423,300,17);


line(443,300,510,300);


line(250,275,480,275);


ellipse(490,289,322,486,24,14.9);


line(305,249,305,275);


line(390,249,390,275);




//traffic light


line(548,200,548,320);


rectangle(535,139,560,200);


circle(548,124,15); //count


setfillstyle(SOLID_FILL,RED);


circle(547,152,8); //red light


floodfill(547,152,15);


circle(547,172,8); //yellow  light


circle(547,192,8); //green light



//road


line(0,318,getmaxx(),318);


     }


     if(g==110)


     {


cleardevice();


circle(548,124,15);


outtextxy(546,122,"4");




//stop car body


ellipse(360,335,400,135,150,90);


line(250,271,250,300);


line(250,300,288,300);


circle(303,300,17);


line(319,300,404,300);


circle(423,300,17);


line(443,300,510,300);


line(250,275,480,275);


ellipse(490,289,322,486,24,14.9);


line(305,249,305,275);


line(390,249,390,275);




//traffic light


line(548,200,548,320);


rectangle(535,139,560,200);


circle(548,124,15); //count


setfillstyle(SOLID_FILL,RED);


circle(547,152,8); //red light


floodfill(547,152,15);


circle(547,172,8); //yellow  light


circle(547,192,8); //green light



//road


line(0,318,getmaxx(),318);


     }




     if(g==140)


     {


cleardevice();


circle(548,124,15);


outtextxy(546,122,"5");




//stop car body


ellipse(360,335,400,135,150,90);


line(250,271,250,300);


line(250,300,288,300);


circle(303,300,17);


line(319,300,404,300);


circle(423,300,17);


line(443,300,510,300);


line(250,275,480,275);


ellipse(490,289,322,486,24,14.9);


line(305,249,305,275);


line(390,249,390,275);




//traffic light


line(548,200,548,320);


rectangle(535,139,560,200);


circle(548,124,15); //count


setfillstyle(SOLID_FILL,RED);


circle(547,152,8); //red light


floodfill(547,152,15);


circle(547,172,8); //yellow  light


circle(547,192,8); //green light


//road


line(0,318,getmaxx(),318);


     }




     if(g==170)


     {


       cleardevice();


       circle(548,124,15);


       outtextxy(546,122,"R");




//stop car body


ellipse(360,335,400,135,150,90);


line(250,271,250,300);


line(250,300,288,300);


circle(303,300,17);


line(319,300,404,300);


circle(423,300,17);


line(443,300,510,300);


line(250,275,480,275);


ellipse(490,289,322,486,24,14.9);


line(305,249,305,275);


line(390,249,390,275);




//traffic light


line(548,200,548,320);


rectangle(535,139,560,200);


circle(548,124,15); //count


circle(547,152,8); //red light


setfillstyle(SOLID_FILL,YELLOW);


circle(547,172,8); //yellow  light


floodfill(547,172,15);


circle(547,192,8); //green light



//road


line(0,318,getmaxx(),318);


     }


     if(g==200)


     {


       cleardevice();


       circle(548,124,15);


       outtextxy(546,122,"R");




//stop car body


ellipse(360,335,400,135,150,90);


line(250,271,250,300);


line(250,300,288,300);


circle(303,300,17);


line(319,300,404,300);


circle(423,300,17);


line(443,300,510,300);


line(250,275,480,275);


ellipse(490,289,322,486,24,14.9);


line(305,249,305,275);


line(390,249,390,275);




//traffic light


line(548,200,548,320);


rectangle(535,139,560,200);


circle(548,124,15); //count


circle(547,152,8); //red light


setfillstyle(SOLID_FILL,YELLOW);


circle(547,172,8); //yellow  light


floodfill(547,172,15);


circle(547,192,8); //green light


//road


line(0,318,getmaxx(),318);


     }


     delay(20);




  }


cleardevice();


outtextxy(540,118,"go");




//stop car body


ellipse(360,335,400,135,150,90);


line(250,271,250,300);


line(250,300,288,300);


circle(303,300,17);


line(319,300,404,300);


circle(423,300,17);


line(443,300,510,300);


line(250,275,480,275);


ellipse(490,289,322,486,24,14.9);


line(305,249,305,275);


line(390,249,390,275);




//traffic light


line(548,200,548,320);


rectangle(535,139,560,200);




circle(548,124,15); //count




circle(547,152,8); //red light


setfillstyle(SOLID_FILL,0);


circle(547,172,8); //yellow  light


floodfill(547,172,15);




setfillstyle(SOLID_FILL,GREEN);


circle(547,192,8); //green light


floodfill(547,192,15);


//road


line(0,318,getmaxx(),318);


}




void last_step()


{


for(int g=0;g<=400;g++)


{


//stop car body


ellipse(360+g,335,400,135,150,90);


line(250+g,271,250+g,300);


line(250+g,300,288+g,300);


circle(303+g,300,17);


line(319+g,300,404+g,300);


circle(423+g,300,17);


line(443+g,300,510+g,300);


line(250+g,275,480+g,275);


ellipse(490+g,289,322,486,24,14.9);


line(305+g,249,305+g,275);


line(390+g,249,390+g,275);




//traffic light


line(548,200,548,320);


rectangle(535,139,560,200);


circle(548,124,15); //count


circle(547,152,8); //red light


setfillstyle(SOLID_FILL,0);


circle(547,172,8); //yellow  light


floodfill(547,172,15);




setfillstyle(SOLID_FILL,GREEN);


circle(547,192,8); //green light


floodfill(547,192,15);


//road


line(0,318,getmaxx(),318);


delay(20);


cleardevice();


       }


}


Comments

Popular posts from this blog

Draw Taj Mahal using C++ Graphic | Taj Mahal - code studio

Draw Taj Mahal using C++ Graphic This blog Draw Taj Mahal using c ++. The code of this entire program is written below. And you can also download it by clicking it on the download. I have also made videos on this, you can also watch it. I also have a YouTube channel. In which I become a very intresting project using c ++ graphic, so click on the channel link below and follow the channel.  Download code  YouTube channell link #include<iostream.h> #include<conio.h> #include<dos.h> #include<stdlib.h> #include<graphics.h> int main() {  int gd=DETECT,gm;  initgraph(&gd,&gm,"c:\\tc\\bgi");  rectangle(1,450,620,470);        line(10,450,12,380);  line(40,450,38,380);  line(9,380,41,380);  line(9,375,41,375);  ellipse(10,377,90,270,3,3);  ellipse(41,378,270,90,3,3);  line(12,375,14,320);  line(38,375,36,320);        // ellipse(25,331,0,360,12,2.5);  line(...

Bank Management System Project in C++ || c++ mini projects

Building a Bank Management System in C++: A Step-by-Step Guide Introduction In this article, we will delve into the world of programming by creating a comprehensive Bank Management System using the C++ programming language. This project will cover all aspects of a fully functional banking system, from account management to transaction handling and data storage. By following this step-by-step guide, you will learn how to create an efficient and user-friendly menu-driven program. So, let's embark on this exciting journey of developing a robust bank management system in C++! Table of Contents Setting Up the Project Environment Understanding the Bank Management System's Design Implementing Basic Account Management Functions Creating and Deleting Accounts Balance Enquiry Transaction Handling Deposits and Withdrawals Utilizing Data Structures for Efficient Data Management Introduction to Data Structures Storing Account Data Building a User-Friendly Menu-Driven Program User Input and ...

C++ Graphic Using Draw cute Bird 🐦

 C++ Graphic Using Draw cute Bird 🐦 . This blog Draw cute Bird using c ++. And that flying is also done. . The code of this entire program is written below. And you can also download it by clicking it on the download. I have also made videos on this, you can also watch it. I also have a YouTube channel. In which I become a very intresting project using c ++ graphic, so click on the channel link below and follow the channel.  Download code  YouTube channel