├── Public library Management System.cpp ├── README.md └── Restaurant_Management_System ├── input.txt └── restaurant.cpp /Public library Management System.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | using namespace std; 6 | 7 | class book { 8 | private: 9 | char *author,*title,*publisher; 10 | float *price; 11 | int *stock; 12 | public: 13 | book() { 14 | author= new char[20]; 15 | title=new char[20]; 16 | publisher=new char[20]; 17 | price= new float; 18 | stock=new int; 19 | } 20 | void feeddata(); 21 | void editdata(); 22 | void showdata(); 23 | int search(char[],char[]); 24 | void buybook(); 25 | 26 | }; 27 | 28 | void book::feeddata() { 29 | cin.ignore(); 30 | cout<<"\nEnter Author Name: "; cin.getline(author,20); 31 | cout<<"Enter Title Name: "; cin.getline(title,20); 32 | cout<<"Enter Publisher Name: "; cin.getline(publisher,20); 33 | cout<<"Enter Price: "; cin>>*price; 34 | cout<<"Enter Stock Position: "; cin>>*stock; 35 | 36 | } 37 | 38 | void book::editdata() { 39 | 40 | cout<<"\nEnter Author Name: "; cin.getline(author,20); 41 | cout<<"Enter Title Name: "; cin.getline(title,20); 42 | cout<<"Enter Publisher Name: "; cin.getline(publisher,20); 43 | cout<<"Enter Price: "; cin>>*price; 44 | cout<<"Enter Stock Position: "; cin>>*stock; 45 | 46 | } 47 | 48 | void book::showdata() { 49 | cout<<"\nAuthor Name: "<>count; 68 | if(count<=*stock) { 69 | *stock=*stock-count; 70 | cout<<"\nBooks Bought Sucessfully"; 71 | cout<<"\nAmount: Rs. "<<(*price)*count; 72 | } 73 | else 74 | cout<<"\nRequired Copies not in Stock"; 75 | } 76 | 77 | int main() { 78 | book *B[20]; 79 | int i=0,r,t,choice; 80 | char titlebuy[20],authorbuy[20]; 81 | while(1) { 82 | cout<<"\n\n\t\tMENU" 83 | <<"\n1. Entry of New Book" 84 | <<"\n2. Buy Book" 85 | <<"\n3. Search For Book" 86 | <<"\n4. Edit Details Of Book" 87 | <<"\n5. Exit" 88 | <<"\n\nEnter your Choice: "; 89 | cin>>choice; 90 | 91 | switch(choice) { 92 | case 1: B[i] = new book; 93 | B[i]->feeddata(); 94 | i++; break; 95 | 96 | case 2: cin.ignore(); 97 | cout<<"\nEnter Title Of Book: "; cin.getline(titlebuy,20); 98 | cout<<"Enter Author Of Book: "; cin.getline(authorbuy,20); 99 | for(t=0;tsearch(titlebuy,authorbuy)) { 101 | B[t]->buybook(); 102 | break; 103 | } 104 | } 105 | if(t==1) 106 | cout<<"\nThis Book is Not in Stock"; 107 | 108 | break; 109 | case 3: cin.ignore(); 110 | cout<<"\nEnter Title Of Book: "; cin.getline(titlebuy,20); 111 | cout<<"Enter Author Of Book: "; cin.getline(authorbuy,20); 112 | 113 | for(t=0;tsearch(titlebuy,authorbuy)) { 115 | cout<<"\nBook Found Successfully"; 116 | B[t]->showdata(); 117 | break; 118 | } 119 | } 120 | if(t==i) 121 | cout<<"\nThis Book is Not in Stock"; 122 | break; 123 | 124 | case 4: cin.ignore(); 125 | cout<<"\nEnter Title Of Book: "; cin.getline(titlebuy,20); 126 | cout<<"Enter Author Of Book: "; cin.getline(authorbuy,20); 127 | 128 | for(t=0;tsearch(titlebuy,authorbuy)) { 130 | cout<<"\nBook Found Successfully"; 131 | B[t]->editdata(); 132 | break; 133 | } 134 | } 135 | if(t==i) 136 | cout<<"\nThis Book is Not in Stock"; 137 | break; 138 | 139 | case 5: exit(0); 140 | default: cout<<"\nInvalid Choice Entered"; 141 | 142 | } 143 | } 144 | 145 | 146 | 147 | 148 | return 0; 149 | } 150 | 151 | 152 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |

ALL-PROGRAMMING-RESOURCES-&-NOTES

2 | ## :octocat: Do Fork And :eight_pointed_black_star: Give Star This Repo 3 |

This is my personal Note And I Through this note's going to help others people as well so if you find anything useful Please let me know, just give me a star if you want And this note is going to update every time, So Stay tuned, thanks!

4 | 5 | 6 | ### Free Bangla Resources ❤ 7 | #### ✅ Courses 8 | 9 | 10 | #### ✅ Books 11 | 12 | #### ✅ API 13 | 14 | 15 | --- 16 | # ✔

Courses

17 | 18 | ### Index 19 | 20 | - [Android](#android) 21 | - [C](#c) 22 | - [C#](#csharp) 23 | - [C++](#cpp) 24 | - [Dart](#dart) 25 | - [Flutter](#flutter) 26 | - [Git](#git) 27 | - [Go](#go) 28 | - [HTML and CSS](#html-and-css) 29 | - [Bootstrap](#bootstrap) 30 | - [IDE and Editors](#ide-and-editors) 31 | - [Java](#java) 32 | - [JavaScript](#javascript) 33 | - [jQuery](#jquery) 34 | - [Node.js](#nodejs) 35 | - [React](#react) 36 | - [Kotlin](#kotlin) 37 | - [MySQL](#mysql) 38 | - [PHP](#php) 39 | - [Programming paradigms](#programming-paradigms) 40 | - [Python](#python) 41 | - [Svelte](#svelte) 42 | - [TypeScript](#typescript) 43 | 44 | ### Android 45 | 46 | - [Android Bangla Tutorials](https://www.youtube.com/playlist?list=PLgH5QX0i9K3p9xzYLFGdfYliIRBLVDRV5) - Anisul Islam 47 | - [Android Firebase Bangla Tutorials](https://www.youtube.com/playlist?list=PLgH5QX0i9K3oDurEmECb5U_BZ1hrLaHx-) - Anisul Islam 48 | - [Android SQLite Database Bangla Tutorials](https://www.youtube.com/playlist?list=PLgH5QX0i9K3oJBRutwsFgUKrKJCjv9K3p) - Anisul Islam 49 | - [Android Tutorials Material Design](https://www.youtube.com/playlist?list=PLgH5QX0i9K3ru-TfN-YsRWKe4EEOLrWjn) - Anisul Islam 50 | - [Java, OOP & Android tutorials for beginners in Bengali](https://www.youtube.com/playlist?list=PLV3rqOvr9vgkmELwlSouvJtROQ6MWRbIH) - Zulkarnine Mahmud 51 | 52 | ### C 53 | 54 | - [C - All you need to know](https://www.youtube.com/playlist?list=PL_XxuZqN0xVASsjyqiNzgjUWHbDkN2Scy) - Stack Learner 55 | - [C Programming Bangla Tutorial Course](https://www.youtube.com/playlist?list=PLgH5QX0i9K3pCMBZcul1fta6UivHDbXvz) - Anisul Islam 56 | - [Pattern Printing in C](https://www.youtube.com/playlist?list=PLgH5QX0i9K3oTxQhx2kejYmQn6qtRULCD) - Anisul Islam 57 | 58 | ### C\# 59 | 60 | - [C# and ASP.NET MVC Full Bangla Tutorial BITM](https://www.youtube.com/playlist?list=PL_g-DE60bXDBpjMPUWGbmCLHnQDIIcw-6) - Learn With Nirash 61 | - [C# bangla tutorial \| Basic to advance in depth bangla course](https://www.youtube.com/playlist?list=PLbC4KRSNcMnqQakB2xlZPoaV6uau4wTIt) - Learn Hunter 62 | - [C# OOP (object oriented programming) BanglaTutorials](https://www.youtube.com/playlist?list=PLqCbg_KAOnCe1RLKP2SVmSHZOCD-fWe3p) - Asp Dot Net Explorer 63 | 64 | ### C++ 65 | 66 | - [C++ Bangla Tutorial Course](https://www.youtube.com/playlist?list=PLgH5QX0i9K3q0ZKeXtF--CZ0PdH1sSbYL) - Anisul Islam 67 | 68 | ### Dart 69 | 70 | - [Dart All You Need To Know](https://www.youtube.com/playlist?list=PL_XxuZqN0xVC2-nXUrvpcQEz3FgCSIQHT) - Stack Learner 71 | 72 | ### Flutter 73 | 74 | - [Flutter Bangla Tutorial](https://www.youtube.com/playlist?list=PLg87mxEuu8-692INeEsxudyVifz7M3efy) - Techno BD XYZ 75 | - [Flutter Tutorial Bangla](https://www.youtube.com/playlist?list=PLZJlOXxGEkuyZQ-vA7B5vpvvtWU3Upo6p) - Soykot Hosen 76 | 77 | ### Git 78 | 79 | - [Crash Course - সহজ বাংলায় Git & GitHub - Bangla ( বাংলা ) Tutorial](https://www.youtube.com/watch?v=oe21Nlq8GS4) - Sumit Saha (Learn with Sumit) 80 | - [Git and Github in One Video (Theory + Practical) \| A 2 Z in Bangla](https://www.youtube.com/watch?v=4KdGgGsIDeA) - SHAJ.T3CH 81 | - [Git Bangla Tutorial Complete](https://www.youtube.com/playlist?list=PL_XxuZqN0xVDDw5eyzuRDXBzgdnW7UpDF) - Stack Learner 82 | 83 | ### Go 84 | 85 | - [Golang কোডিং বুট ক্যাম্প ক্লাস](https://youtube.com/playlist?list=PLZij6bgEHkTXRakAtponkmP2CmlTTKlxl) - MASTER-ACADEMY 86 | 87 | - [Go Bangla Tutorials 2022](https://youtube.com/playlist?list=PLgH5QX0i9K3rtasmmoS_EWXdg0X-eX_x8) - Anisur Islam 88 | 89 | ### HTML and CSS 90 | 91 | - [CSS Complete Course in Bangla 2021](https://www.youtube.com/playlist?list=PLgH5QX0i9K3qjCBXjTmv7Xeh8MDUUVJDO) - Anisul Islam 92 | - [CSS3 and CSS4 Weird Parts Bangla Tutorial](https://www.youtube.com/playlist?list=PL_XxuZqN0xVD3oeT3ckKBmnc7krm-SZl2) - Stack Learner 93 | - [HTML Complete Course in Bangla 2021(Beginner to Advanced)](https://www.youtube.com/playlist?list=PLgH5QX0i9K3oHBr5dsumGwjUxByN5Lnw3) - Anisul Islam 94 | 95 | #### Bootstrap 96 | 97 | - [Bootstrap 4 Bangla Tutorial](https://www.youtube.com/playlist?list=PL_XxuZqN0xVBr2NqbL3q71nk5FX8zB0nK) - Stack Learner 98 | - [Bootstrap 5 and 4 Bangla Tutorials](https://www.youtube.com/playlist?list=PLgH5QX0i9K3oC_wmWEZa2xWxJauIRQ9kG) - Anisul Islam 99 | - [AI To HTML Bangla Bootstrap Tutorial](https://youtube.com/playlist?list=PLNMnAEqLBwmpQpra3AfWhQX7PLytBlAht) - Hablu Programmer 100 | 101 | #### TailwindCSS 102 | 103 | - [Tailwind CSS Bangla Tutorial Series](https://youtube.com/playlist?list=PLHiZ4m8vCp9P23SqlHL0QAqiwS_oCofV2) - Learn With Sumit 104 | 105 | ### SASS 106 | 107 | - [sass complete course bangla (Beginner to Advanced)](https://youtube.com/playlist?list=PLgH5QX0i9K3qOvGYtFb3Z7KVMLrijYdqO) - Anisul Islam 108 | 109 | - [SASS Bangla Tutorial - A complete overview - Crash Course](https://youtu.be/N3vG6Yt-e6k) - Learn With Sumit 110 | 111 | ### IDE and Editors 112 | 113 | - [VSCode Complete Tutorial Series \| VSCode টিউটোরিয়াল সিরিজ](https://www.youtube.com/playlist?list=PL_XxuZqN0xVB_lroSm_xvTqvVBCpR4PQE) - Stack Learner 114 | 115 | ### Java 116 | 117 | - [Java Bangla Tutorials \| CORE Java \| Complete OOP](https://www.youtube.com/playlist?list=PLgH5QX0i9K3oAZUB2QXR-dZac0c9HNyRa) - Anisul Islam 118 | - [Java Swing Bangla Tutorials](https://www.youtube.com/playlist?list=PLgH5QX0i9K3rAHKr6IteF5kdgN6BorH9l) - Anisul Islam 119 | 120 | ### JavaScript 121 | 122 | - [Express JS Crash Course in Bangla](https://www.youtube.com/playlist?list=PL_XxuZqN0xVDm9HkiP4h_76qNBZix6XME) - Stack Learner 123 | - [Functional JavaScript Bangla Tutorial](https://www.youtube.com/playlist?list=PL_XxuZqN0xVDPR9fASxugXgQAWkZLcmt1) - Stack Learner 124 | - [JavaScript All You Need to Know \| JS Bangla Tutorial \| Stack Learner](https://www.youtube.com/playlist?list=PL_XxuZqN0xVAu_dWUVFbscqZdTzE8t6Z1) - Stack Learner 125 | - [JavaScript Bangla Tutorial Course 2021](https://www.youtube.com/playlist?list=PLgH5QX0i9K3qzryglMjcyEktz4q7ySunX) - Anisul Islam 126 | - [JavaScript Behind The Scene Bangla Tutorial](https://www.youtube.com/playlist?list=PL_XxuZqN0xVDPaOrWvTIuhb5GRoJVWiE2) - Stack Learner 127 | - [JavaScript Full Playlist With Order](https://www.youtube.com/playlist?list=PL_XxuZqN0xVAJTV_1ZXwB1XIiFkK0ddZA) - Stack Learner 128 | - [Make Fun of JavaScript Array](https://www.youtube.com/playlist?list=PL_XxuZqN0xVDr08QgQHljCecWtA4jBLnS) - Stack Learner 129 | - [JS Bangla Tutorial Series for Beginners](https://www.youtube.com/playlist?list=PLHiZ4m8vCp9OkrURufHpGUUTBjJhO9Ghy) - Sumit Saha (Learn with Sumit) 130 | - [Modern JavaScript ES6 Bangla Tutorial](https://www.youtube.com/playlist?list=PLHiZ4m8vCp9MFjMRp9EEHWKArbi0wdgXG) - Sumit Saha (Learn with Sumit) 131 | - [Play with DOM - Bangla](https://www.youtube.com/playlist?list=PLHiZ4m8vCp9MJDxMOzhYVuTrO1b5n-Tq_) - Sumit Saha (Learn with Sumit) 132 | - [Think In a JavaScript way in Bangla ](https://youtube.com/playlist?list=PLHiZ4m8vCp9Nflbo9a0pZuLscG_Xc7DKq) - Sumit Saha (Learn with Sumit) 133 | 134 | #### jQuery 135 | 136 | - [jQuery Bangla Series for Beginners](https://www.youtube.com/playlist?list=PLgH5QX0i9K3pSJG9Hwjnykd0hLGEsW4DB) - Anisul Islam 137 | 138 | #### Node.js 139 | 140 | - [Dive Into NodeJS](https://www.youtube.com/playlist?list=PL_XxuZqN0xVDHFj-ecFSU0SU-B0TuJRk9) - Stack Learner 141 | - [Node.js Tutorial Bangla | Express.js Tutorial Bangla Series for Beginners](https://youtube.com/playlist?list=PLHiZ4m8vCp9PHnOIT7gd30PCBoYCpGoQM) - Learn with sumit 142 | - [Raw Node JS Project in Bangla ( বাংলা ) - Uptime Monitoring API](https://youtube.com/playlist?list=PLHiZ4m8vCp9OmVWU2Qf9tZgKdyzoubOpj) - Learn with sumit 143 | - [Node.js Tutorial Bangla | Express.js Tutorial Bangla](https://youtube.com/playlist?list=PLkyGuIcLcmx2qXaZkjCL8-P78i2J5rDOa) - 144 | Rabbil Hasan 145 | 146 | #### React 147 | 148 | - [React - Redux Complete Course](https://www.youtube.com/playlist?list=PL_XxuZqN0xVAvcGzTEAyPSOqgUQA08rNB) - Stack Learner 149 | - [Understand ReactJS Advanced Features](https://www.youtube.com/playlist?list=PL_XxuZqN0xVBaeF3qUyvr2AxoXGwDd5cx) - Stack Learner 150 | - [Understand ReactJS Core Features](https://www.youtube.com/playlist?list=PL_XxuZqN0xVBANld2gDEE6_0G886zavUs) - Stack Learner 151 | - [React JS Tutorial Bangla Series for Beginners](https://www.youtube.com/playlist?list=PLHiZ4m8vCp9M6HVQv7a36cp8LKzyHIePr) - Learn with Sumit 152 | - [Redux | Redux-toolkit Bangla Tutorials](https://youtube.com/playlist?list=PLgH5QX0i9K3pe7Z7ATcyLdUW3grE4Vfld) - 153 | Anisul Islam 154 | 155 | ### Kotlin 156 | 157 | - [Chapter 1 : Kotlin Basic Concepts Bangla](https://www.youtube.com/playlist?list=PL_XxuZqN0xVDpRWRnXPWZcWIvz0JbeQe5) - Stack Learner 158 | 159 | ### MySQL 160 | 161 | - [Bangla MySQL Database Tutorials](https://www.youtube.com/playlist?list=PLTydW-y9HsbQ2ztoaLBJTd4wwjc_oqWx4) - Delowar Jahan Imran, Training with Live Project (YouTube) 162 | - [mysql bangla tutorial \| Mysql Database \| HSC,CSE, Anyone](https://www.youtube.com/playlist?list=PLbC4KRSNcMnqp4x6XstgFCVi6XVu37t99) - Sohidul Islam, Learn Hunter (YouTube) 163 | - [MySql Database Bangla Tutorial Beginner to Advanced](https://www.youtube.com/playlist?list=PLH246IZCIBeA4h1R6fdgK06kj9lMb3joi) - Shoaib Hossain, Soft-All (YouTube) 164 | - [MySQL Database Bangla Tutorials (HSC student / Anyone)](https://www.youtube.com/playlist?list=PLgH5QX0i9K3qLcx9DvVDWmNJ7riPvxzCD) - Anisul Islam (YouTube) 165 | 166 | ### PHP 167 | 168 | - [PHP All You Need To Know](https://www.youtube.com/playlist?list=PL_XxuZqN0xVCFLIrGA1GaxacvPTDQcsMV) - Stack Learner 169 | 170 | ### Programming paradigms 171 | 172 | - [Java and OOO. Learn Object Oriented with Real Example](https://www.youtube.com/playlist?list=PL_XxuZqN0xVDS-5KCnZyPl0LKQ8m49CHM) - Stack Learner 173 | - [Java and OOP Basics](https://www.youtube.com/playlist?list=PL_XxuZqN0xVB5kP3uxERI1rdrdrNifNwJ) - Stack Learner 174 | - [Java and OOP: Java Built in Classes and Features](https://www.youtube.com/playlist?list=PL_XxuZqN0xVBNvGFN6eIre7xjfnb6aVfB) - Stack Learner 175 | - [Object Oriented Programming Main Theory in Bangla](https://www.youtube.com/playlist?list=PL_XxuZqN0xVCqNHQtxzS9LbeNRMG4AJmG) - Stack Learner 176 | 177 | ### Python 178 | 179 | - [Python All You Need To Know](https://www.youtube.com/playlist?list=PL_XxuZqN0xVCH8fRfZ8sUuKEQQYIFMjtJ) - Stack Learner 180 | - [Python Bangla Tutorials for Beginners](https://www.youtube.com/playlist?list=PLgH5QX0i9K3rz5XqMsTk41_j15_6682BN) - Anisul Islam 181 | 182 | ### Svelte 183 | 184 | - [Svelte 3: The Game Changer (Bangla Crash Course)](https://www.youtube.com/playlist?list=PL_XxuZqN0xVDJOOYnZxK-fbKxjxFHfc-H) - Stack Learner 185 | 186 | ### TypeScript 187 | 188 | - [TypeScript Bangla ( বাংলা ) Tutorial Series](https://youtube.com/playlist?list=PLHiZ4m8vCp9PgOOjdyNpc6AoBmKNrp_u3) - Learn with Sumit - LWS - Bangladesh 189 | - [typescript full course in bangla](https://youtube.com/playlist?list=PLgH5QX0i9K3rXq_1OgVmjaEJJ1akJQgPq) - 190 | Anisul Islam 191 | 192 | 193 | --- 194 | 195 | # ✔

Books

196 | ### Index 197 | 198 | - [Algorithms](#algorithms) 199 | 200 | - [C](#c) 201 | 202 | - [Go](#go) 203 | 204 | - [Java](#java) 205 | 206 | - [JavaScript](#javascript) 207 | 208 | - [Machine Learning](#machine-learning) 209 | 210 | - [Misc](#misc) 211 | 212 | - [Python](#python) 213 | 214 | ### Algorithms 215 | 216 | - [Dynamic Programming Book «ডাইনামিক প্রোগ্রামিং বই»](https://dp-bn.github.io) - Tasmeem Reza, Mamnoon Siam (PDF, [LaTeX](https://github.com/Bruteforceman/dynamic-progamming-book)) 217 | 218 | ### C 219 | 220 | - [Computer Programming «কম্পিউটার প্রোগ্রামিং ১ম খণ্ড»](https://cpbook.subeen.com) - Tamim Shahriar Subeen (HTML) 221 | 222 | ### Go 223 | 224 | - [বাংলায় গোল্যাং (golang) টিউটোরিয়াল](https://golang.howtocode.dev) - Shafquat Mahbub (howtocode.dev) 225 | 226 | ### Java 227 | 228 | - [বাংলায় জাভা প্রোগ্রামিং শেখার কোর্স](http://java.howtocode.dev) - Bazlur Rahman, et al. (howtocode.dev) 229 | 230 | ### JavaScript 231 | 232 | - [হাতেকলমে জাভাস্ক্রিপ্ট: সম্পূর্ণ বাংলায় হাতেকলমে জাভাস্ক্রিপ্ট শিখুন](https://zonayed.js.org) - Zonayed Ahmed (HTML) 233 | 234 | ### Machine Learning 235 | 236 | - [শূন্য থেকে পাইথন মেশিন লার্নিং: হাতেকলমে সাইকিট-লার্ন](https://raqueeb.gitbook.io/scikit-learn/) - Rakibul Hassan (HTML, [Jupyter Notebook](https://github.com/raqueeb/ml-python)) (gitbook) 237 | 238 | - [হাতেকলমে মেশিন লার্নিং: পরিচিতি, প্রজেক্ট টাইটানিক, আর এবং পাইথনসহ](https://rakibul-hassan.gitbook.io/mlbook-titanic/) - Rakibul Hassan (HTML, [scripts](https://github.com/raqueeb/mltraining)) (gitbook) 239 | 240 | ### Misc 241 | 242 | - [ডেভসংকেত: বাংলা চিটশিটের ভান্ডার](https://devsonket.com) - Devsonket Team 243 | 244 | ### Python 245 | 246 | - [পাইথন প্রোগ্রামিং বই](http://pybook.subeen.com) - Tamim Shahriar Subeen 247 | 248 | - [বাংলায় পাইথন](https://python.howtocode.dev) - Nuhil Mehdy 249 | 250 | - [সহজ ভাষায় পাইথন ৩](https://python.maateen.me) - Maksudur Rahman Maateen 251 | 252 | 253 | 254 | # ✔

API

255 | 256 | 257 | 🔴 API List 258 | 259 | 👉 [List of free api](https://github.com/public-apis/public-apis) 260 | 261 | 👉 [292+ Free API ]( https://publicapis.dev/) 262 | 263 | 👉 [Movie API:](https://www.themoviedb.org/) 264 | 265 | 266 | 267 | 🔵 Basic API's 268 | 269 | 👉 [Basic Api 1](https://apipheny.io/free-api/) 270 | 271 | 👉 [Basic Api 1](https://mixedanalytics.com/blog/list-actually-free-open-no-auth-needed-apis/) 272 | -------------------------------------------------------------------------------- /Restaurant_Management_System/input.txt: -------------------------------------------------------------------------------- 1 | 12 2 | 170 3 | Chicken Soup 1:2 4 | 260 5 | 171 6 | Chicken Corn Soup 1:2 7 | 200 8 | 172 9 | Thai Special Soup 1:2 10 | 300 11 | 260 12 | Chicken Fried Rice 1:2 13 | 250 14 | 261 15 | Egg Fried Rice 1:2 16 | 230 17 | 262 18 | Prawn Fried Rice 1:2 19 | 300 20 | 310 21 | Beef Mutton Kabab 1:1 22 | 150 23 | 311 24 | Chicken Grill 1:4 25 | 340 26 | 450 27 | Chicken Curry 1:3 28 | 550 29 | 451 30 | Beef Special Curry 1:3 31 | 760 32 | 452 33 | Chicken Sizzling 1:3 34 | 710 35 | 453 36 | Beef Sizzling 1:3 37 | 970 38 | 39 | 21 40 | 2 41 | 170 42 | 1 43 | 450 44 | 10 -------------------------------------------------------------------------------- /Restaurant_Management_System/restaurant.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | using namespace std; 3 | 4 | class Item 5 | { 6 | public: 7 | int code; 8 | int price; 9 | int quantity; 10 | string name; 11 | Item(int code, int price, int quantity, string name) 12 | { 13 | this->code = code; 14 | this->price = price; 15 | this->name = name; 16 | this->quantity = 10; 17 | } 18 | }; 19 | class Restaurant 20 | { 21 | public: 22 | Item **items; 23 | int total_items; 24 | int total_tax; 25 | int ordered_number_of_items; 26 | Restaurant(int total_items) 27 | { 28 | this->items = new Item *[total_items]; 29 | this->total_items = 0; 30 | this->total_tax = 0; 31 | } 32 | void add(Item *item) 33 | { 34 | this->items[this->total_items++] = item; 35 | } 36 | Item *get(int code) 37 | { 38 | for (int i = 0; i < total_items; i++) 39 | { 40 | if (items[i]->code == code) 41 | { 42 | return items[i]; 43 | } 44 | } 45 | return NULL; 46 | } 47 | void print_title(string title, int tab, int tab2, int space) 48 | { 49 | cout << "\n"; 50 | for (int i = 0; i < tab; i++) 51 | cout << "\t"; 52 | cout << title << endl; 53 | for (int i = 0; i < tab2; i++) 54 | cout << "\t"; 55 | for (int i = 0; i < space; i++) 56 | cout << " "; 57 | cout << "__________________\n\n"; 58 | } 59 | void print_items(Item **all_items, int n, int is_all_items) 60 | { 61 | 62 | if (is_all_items) 63 | { 64 | cout << "Item Code\t" 65 | << "Item Name\t\t" 66 | << "Item Price\t\t" 67 | << "Item Quantity\t" 68 | << "Total Price\n"; 69 | for (int i = 0; i < n; i++) 70 | { 71 | cout << all_items[i]->code << "\t\t" 72 | << all_items[i]->name << "\t\t" 73 | << all_items[i]->price << "\t\t" 74 | << all_items[i]->quantity << "\t\t" 75 | << all_items[i]->quantity * all_items[i]->price << endl; 76 | } 77 | } 78 | else 79 | { 80 | cout << "Item Code\t\t\t\t" 81 | << "Item Name\t\t\t\t\t" 82 | << "Item Price\n"; 83 | for (int i = 0; i < n; i++) 84 | { 85 | cout << all_items[i]->code << "\t\t\t\t\t" << all_items[i]->name << "\t\t\t\t" << all_items[i]->price << endl; 86 | } 87 | } 88 | } 89 | void load_items(int total) 90 | { 91 | int price, code; 92 | string name; 93 | for (int i = 0; i < total; i++) 94 | { 95 | cin >> code; 96 | getline(cin, name); 97 | getline(cin, name); 98 | cin >> price; 99 | this->add(new Item(code, price, 10, name)); 100 | } 101 | } 102 | void order_items() 103 | { 104 | cout << endl 105 | << endl; 106 | int tax = 5; 107 | int table, code, quantity = 0; 108 | int total_price = 0; 109 | Item *item; 110 | Item **ordered_items; 111 | cout << "Enter Table No : "; 112 | cin >> table; 113 | cout << "Enter Number of Items : "; 114 | cin >> this->ordered_number_of_items; 115 | ordered_items = new Item *[this->ordered_number_of_items]; 116 | for (int i = 0; i < this->ordered_number_of_items; i++) 117 | { 118 | cout << "Enter Item " << i + 1 << " Code : "; 119 | cin >> code; 120 | item = this->get(code); 121 | while (!item) 122 | { 123 | cout << "Item Not Found! Enter the code again : "; 124 | cin >> code; 125 | item = this->get(code); 126 | } 127 | 128 | cout << "Enter Item" << i + 1 << " Quantity : "; 129 | cin >> quantity; 130 | 131 | item->quantity = quantity; 132 | ordered_items[i] = item; 133 | total_price += (item->price * quantity); 134 | } 135 | cout << endl; 136 | this->print_title("BILL SUMMARY", 6, 5, 5); 137 | cout << "\nTable No. : " << table << endl; 138 | this->print_items(ordered_items, ordered_number_of_items, 1); 139 | cout << "TAX"; 140 | for (int i = 0; i < 10; i++) 141 | cout << "\t"; 142 | this->total_tax += (double(total_price) / 100) * tax; 143 | cout << this->total_tax << " Taka"; 144 | cout << "\n"; 145 | 146 | for (int i = 0; i < 92; i++) 147 | cout << "_"; 148 | cout << "\n"; 149 | cout << "NET TOTAL"; 150 | for (int i = 0; i < 9; i++) 151 | cout << "\t"; 152 | cout << this->total_tax + total_price << " Taka"; 153 | } 154 | }; 155 | int main() 156 | { 157 | int total_items; 158 | cin >> total_items; 159 | Restaurant phitron = Restaurant(total_items); 160 | phitron.load_items(total_items); 161 | 162 | while (1) 163 | { 164 | phitron.print_title("MAKE BILL", 6, 5, 3); 165 | phitron.print_items(phitron.items, total_items, 0); 166 | phitron.order_items(); 167 | cout << endl; 168 | } 169 | 170 | return 0; 171 | } --------------------------------------------------------------------------------