title
Project In C++ | Supermarket Billing System Project In C++ | C++ Projects For Beginners |Simplilearn
description
🔥 IITM Pravartak Professional Certificate Program In Full Stack Development - MERN (India Only): https://www.simplilearn.com/full-stack-developer-course-and-certification-iitm-pravartak?utm_campaign=SCE-FullstackIITM&utm_medium=DescriptionFF&utm_source=youtube
🔥Post Graduate Program In Full Stack Web Development: https://www.simplilearn.com/pgp-full-stack-web-development-certification-training-course?utm_campaign=ProjectinCPPSupermarketBilling-xFwwN4lGG0o&utm_medium=DescriptionFF&utm_source=youtube
🔥Caltech Coding Bootcamp (US Only): https://www.simplilearn.com/coding-bootcamp?utm_campaign=ProjectinCPPSupermarketBilling-xFwwN4lGG0o&utm_medium=DescriptionFF&utm_source=youtube
In this tutorial, we will learn to create a Project in C++, and that would be a supermarket billing project in C++. In this project, there are various functions that we will be creating for this project, like add function to add the goods and products in the market and delete function to delete some products, etc. Also, we will create a buyer side where the buyer can buy the products or food items of his choice in a very detailed manner.
✅Subscribe to our Channel to learn more about the top Technologies: https://bit.ly/2VT4WtH
⏩ Check out the C++ Programming training videos: https://www.youtube.com/playlist?list=PLEiEAq2VkUUKqiV3x0XzAuMtlvyYxHuin
#CPlusPlusProjects #C++ProjectsForBeginners #SupermarketBillingSystemProjectInC++ #C++ProgrammingTutorial #C++ProgrammingLanguage #LearnC++Programming #CplusPlusProgrammingTutorial #CPlusPlusTutorialForBeginners #LearnCPlusPlus #Simplilearn
🔥 Explore our FREE courses with completion certificates: https://www.simplilearn.com/skillup-free-online-courses?utm_campaign=ProjectinCPPSupermarketBilling&utm_medium=Description&utm_source=youtube
✅What is C++ Programming?
C++ is an enhanced and extended version of C programming language, developed by Bjarne Stroustrup in 1979 as part of his Ph.D. project. Bjarne developed what he called ‘C with Classes’ (later renamed C++) because he felt limited by the existing programming languages that were not ideal for large scale projects. He used C to build what he wanted because C was already a general-purpose language that was efficient and fast in its operations.
➡️ About Post Graduate Program In Full Stack Web Development
This program will give you the foundation for building full-stack web apps using the Java programming language. You'll begin with the basics of JavaScript, and then venture into some of the more advanced concepts like Angular, Spring Boot, Hibernate, JSPs, and MVC. Now is the perfect time to get started on your career as a full-stack web developer!
✅ Key Features
- Caltech CTME Post Graduate Certificate
- Enrolment in Simplilearn’s JobAssist
- Receive up to 25 CEUs from Caltech CTME
- Simplilearn's JobAssist helps you get noticed by top hiring companies
- Attend Masterclasses from Caltech CTME instructors
- Live virtual classes led by industry experts, hands-on projects and integrated labs
- Online Convocation by Caltech CTME Program Director
- 20 lesson-end and 5 phase-end projects
- Capstone Project in 4 domains
- Caltech CTME Circle Membership
- Build your own portfolio on GitHub
✅ Skills Covered
- Agile
- JAVA
- Hibernate and JPA
- Spring Core 50
- DevOps
- HTML5 and CSS3
- AWS
- JavaScript ES6
- Servlets
- SOAP and REST
- JSP
👉Learn More at: https://www.simplilearn.com/pgp-full-stack-web-development-certification-training-course?utm_campaign=ProjectinCPPSupermarketBilling-xFwwN4lGG0o&utm_medium=Description&utm_source=youtube
🔥🔥 Interested in Attending Live Classes? Call Us: IN - 18002127688 / US - +18445327688
detail
{'title': 'Project In C++ | Supermarket Billing System Project In C++ | C++ Projects For Beginners |Simplilearn', 'heatmap': [{'end': 898.761, 'start': 846.005, 'weight': 1}], 'summary': 'Tutorial series on c++ develops a supermarket billing system, covering functions like add and delete for goods, user roles, file handling, product order system, and a simulated purchase resulting in a total amount of 272.', 'chapters': [{'end': 91.626, 'segs': [{'end': 91.626, 'src': 'embed', 'start': 8.086, 'weight': 0, 'content': [{'end': 10.908, 'text': 'hey guys, welcome to another tutorial by simply learn.', 'start': 8.086, 'duration': 2.822}, {'end': 13.591, 'text': 'I hope you all are doing well.', 'start': 10.908, 'duration': 2.683}, {'end': 20.056, 'text': 'so in this session we will learn how to create a supermarket billing project in C++.', 'start': 13.591, 'duration': 6.465}, {'end': 26.861, 'text': 'we will create this project in small parts, as there are various functions that we will be creating for this project,', 'start': 20.056, 'duration': 6.805}, {'end': 35.128, 'text': 'like the add function to add the goods and products in the market and delete function to delete some products, etc.', 'start': 26.861, 'duration': 8.267}, {'end': 42.976, 'text': 'also, we will create a buyer site where the buyer can buy the products or food items of his choice.', 'start': 35.128, 'duration': 7.848}, {'end': 52.263, 'text': "so now let's go ahead, but before that make sure to subscribe to our channel and press the bell icon to never miss an update from simply learn.", 'start': 42.976, 'duration': 9.287}, {'end': 57.327, 'text': 'now we will move to our code editor, that is devc++.', 'start': 52.263, 'duration': 5.064}, {'end': 63.972, 'text': "so now let's create a new file and we'll start with adding the header files.", 'start': 57.327, 'duration': 6.645}, {'end': 66.154, 'text': "first of all, we'll add hash, include iostream.", 'start': 63.972, 'duration': 2.182}, {'end': 74.413, 'text': "then we'll include the fstream file.", 'start': 69.989, 'duration': 4.424}, {'end': 79.557, 'text': 'right hash include fstream, because here we have to do the file handling operations as well.', 'start': 74.413, 'duration': 5.144}, {'end': 85.722, 'text': "so we'll add the fstream file.", 'start': 79.557, 'duration': 6.165}, {'end': 91.626, 'text': "now we'll write the namespace standard.", 'start': 85.722, 'duration': 5.904}], 'summary': 'Learn to create a supermarket billing project in c++ with functions to add and delete products, buyer site, using devc++.', 'duration': 83.54, 'max_score': 8.086, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/xFwwN4lGG0o/pics/xFwwN4lGG0o8086.jpg'}], 'start': 8.086, 'title': 'Creating a supermarket billing project in c++', 'summary': 'Focuses on developing a supermarket billing project in c++ using functions like add and delete for goods, and a buyer site within devc++. it emphasizes the significance of subscribing to the channel for updates.', 'chapters': [{'end': 91.626, 'start': 8.086, 'title': 'Supermarket billing in c++', 'summary': 'Focuses on creating a supermarket billing project in c++, covering the creation of various functions such as add and delete for goods, as well as a buyer site, within a code editor like devc++, and emphasizes the importance of subscribing to the channel for updates.', 'duration': 83.54, 'highlights': ['The chapter covers the creation of a supermarket billing project in C++, involving the development of functions like add and delete for goods and a buyer site.', 'The tutorial emphasizes the use of a code editor like devc++ for the project implementation.', 'The importance of subscribing to the channel for updates is highlighted at the beginning of the tutorial.']}], 'duration': 83.54, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/xFwwN4lGG0o/pics/xFwwN4lGG0o8086.jpg', 'highlights': ['The chapter covers the creation of a supermarket billing project in C++ with functions like add and delete for goods and a buyer site.', 'The tutorial emphasizes the use of a code editor like devc++ for the project implementation.', 'The importance of subscribing to the channel for updates is highlighted at the beginning of the tutorial.']}, {'end': 721.37, 'segs': [{'end': 135.517, 'src': 'embed', 'start': 91.626, 'weight': 0, 'content': [{'end': 96.37, 'text': "now let's save this one and name it billing1.cpp.", 'start': 91.626, 'duration': 4.744}, {'end': 102.078, 'text': 'All right.', 'start': 101.758, 'duration': 0.32}, {'end': 103.839, 'text': 'So we have named this file.', 'start': 102.458, 'duration': 1.381}, {'end': 109.5, 'text': "Now, first of all, we'll create a class and we will declare some variables and functions.", 'start': 104.899, 'duration': 4.601}, {'end': 118.643, 'text': "So let's create a class and name the class as shopping inside the class shopping.", 'start': 110.521, 'duration': 8.122}, {'end': 124.945, 'text': 'First of all, inside the private school, we will create or declare some variables.', 'start': 118.683, 'duration': 6.262}, {'end': 135.517, 'text': 'P code, then float type, price.', 'start': 126.854, 'duration': 8.663}], 'summary': 'Creating a class named shopping with variables pcode and price in billing1.cpp.', 'duration': 43.891, 'max_score': 91.626, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/xFwwN4lGG0o/pics/xFwwN4lGG0o91626.jpg'}, {'end': 223.029, 'src': 'embed', 'start': 191.676, 'weight': 2, 'content': [{'end': 202.74, 'text': "all. right now let's create add function, then the edit function.", 'start': 191.676, 'duration': 11.064}, {'end': 206.041, 'text': 'these definitions of these functions we will create later.', 'start': 202.74, 'duration': 3.301}, {'end': 209.102, 'text': 'first of all, here we are declaring these functions.', 'start': 206.041, 'duration': 3.061}, {'end': 211.623, 'text': 'after that we have to remove some products.', 'start': 209.102, 'duration': 2.521}, {'end': 223.029, 'text': 'for that we will create remove function and then the list function to display the list and at last recept function.', 'start': 211.623, 'duration': 11.406}], 'summary': 'Creating add, edit, remove, list, and receipt functions for product management.', 'duration': 31.353, 'max_score': 191.676, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/xFwwN4lGG0o/pics/xFwwN4lGG0o191676.jpg'}, {'end': 291.227, 'src': 'embed', 'start': 252.458, 'weight': 3, 'content': [{'end': 271.646, 'text': "So now inside this function, first of all, we will create a variable that is choice and some more variables like let's say email and password.", 'start': 252.458, 'duration': 19.188}, {'end': 279.18, 'text': 'because here we will need email as well as password for the login purpose.', 'start': 273.757, 'duration': 5.423}, {'end': 287.925, 'text': 'so now we have to create this menu and for that we have to first of all display supermarket main menu and after that we will display that administrator,', 'start': 279.18, 'duration': 8.745}, {'end': 288.926, 'text': 'buyer, etc.', 'start': 287.925, 'duration': 1.001}, {'end': 291.227, 'text': 'and all that.', 'start': 288.926, 'duration': 2.301}], 'summary': 'Creating a function to handle login with email and password and display menus.', 'duration': 38.769, 'max_score': 252.458, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/xFwwN4lGG0o/pics/xFwwN4lGG0o252458.jpg'}, {'end': 721.37, 'src': 'embed', 'start': 679.974, 'weight': 4, 'content': [{'end': 685.277, 'text': 'now we will set an email and password that only admin knows and no other person can enter that.', 'start': 679.974, 'duration': 5.303}, {'end': 689.6, 'text': "And let's say for that we have to use if else statements.", 'start': 686.258, 'duration': 3.342}, {'end': 705.05, 'text': "So if email equals now let's set the email first of all, Robbie at the rate email.com.", 'start': 690.38, 'duration': 14.67}, {'end': 711.665, 'text': 'You can write the email and password as of your choice.', 'start': 708.783, 'duration': 2.882}, {'end': 721.37, 'text': "And I'll set the password now as Robbie at the rate 1 2 3.", 'start': 714.327, 'duration': 7.043}], 'summary': 'Setting an admin-only email and password using if-else statements.', 'duration': 41.396, 'max_score': 679.974, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/xFwwN4lGG0o/pics/xFwwN4lGG0o679974.jpg'}], 'start': 91.626, 'title': 'Creating a shopping class and a login menu in c++', 'summary': 'Discusses creating a shopping class in c++ with functions such as add, edit, remove, list, and receipt, and the creation of a supermarket login menu with user input and login credentials for administrators.', 'chapters': [{'end': 249.205, 'start': 91.626, 'title': 'Creating a shopping class in c++', 'summary': 'Discusses creating a shopping class in c++ which includes declaring variables and functions, such as p code, price, discount, name, menu, administrator, buyer, add, edit, remove, list, and receipt functions.', 'duration': 157.579, 'highlights': ['The chapter covers creating a shopping class in C++, with a focus on declaring variables and functions, such as P code, price, discount, name, menu, administrator, buyer, add, edit, remove, list, and receipt functions.', "The class 'shopping' includes the declaration of variables like P code, price, discount of float type, and name of string type.", "The chapter emphasizes the declaration of functions within the 'shopping' class, including menu, administrator, buyer, add, edit, remove, list, and receipt functions."]}, {'end': 721.37, 'start': 252.458, 'title': 'Supermarket login menu creation', 'summary': 'Covers the creation of a supermarket login menu, including the display of options for administrators, buyers, and exiting the menu, as well as the implementation of login credentials for administrators, using variables and user input.', 'duration': 468.912, 'highlights': ['The function involves creating a login menu, including options for administrators, buyers, and an exit choice.', 'The process includes displaying the menu with formatting, taking user input for selection, and implementing switch case statements for different choices.', 'For administrators, the chapter covers the implementation of login credentials using if else statements, including setting specific email and password values.']}], 'duration': 629.744, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/xFwwN4lGG0o/pics/xFwwN4lGG0o91626.jpg', 'highlights': ['The chapter covers creating a shopping class in C++ with a focus on declaring variables and functions such as P code, price, discount, name, menu, administrator, buyer, add, edit, remove, list, and receipt functions.', "The class 'shopping' includes the declaration of variables like P code, price, discount of float type, and name of string type.", "The chapter emphasizes the declaration of functions within the 'shopping' class, including menu, administrator, buyer, add, edit, remove, list, and receipt functions.", 'The function involves creating a login menu, including options for administrators, buyers, and an exit choice.', 'For administrators, the chapter covers the implementation of login credentials using if else statements, including setting specific email and password values.', 'The process includes displaying the menu with formatting, taking user input for selection, and implementing switch case statements for different choices.']}, {'end': 1700.691, 'segs': [{'end': 923.252, 'src': 'heatmap', 'start': 846.005, 'weight': 1, 'content': [{'end': 849.267, 'text': "Now, after this, we'll use a go to statement.", 'start': 846.005, 'duration': 3.262}, {'end': 855.101, 'text': 'After the switch statement, So go to is a jump statement.', 'start': 850.688, 'duration': 4.413}, {'end': 862.786, 'text': 'So it will help us in jumping to the main menu again after the completion of the switch case.', 'start': 855.762, 'duration': 7.024}, {'end': 866.549, 'text': 'And this M is a label.', 'start': 864.528, 'duration': 2.021}, {'end': 870.772, 'text': 'We have to put this label at the starting of this menu.', 'start': 866.889, 'duration': 3.883}, {'end': 874.154, 'text': "So let's do that.", 'start': 873.013, 'duration': 1.141}, {'end': 880.778, 'text': 'Right And now coming back to the next function.', 'start': 875.715, 'duration': 5.063}, {'end': 883, 'text': 'So this function is done.', 'start': 881.699, 'duration': 1.301}, {'end': 887.832, 'text': "So we'll close this function.", 'start': 886.371, 'duration': 1.461}, {'end': 896.679, 'text': 'Alright, so now we will create an administrator function in which there will be different options inside the administrator menu.', 'start': 888.793, 'duration': 7.886}, {'end': 898.761, 'text': "So now let's start with that.", 'start': 897.26, 'duration': 1.501}, {'end': 909.63, 'text': 'So we will write void shopping that is the class name, scope resolution operator, administrator.', 'start': 899.542, 'duration': 10.088}, {'end': 917.208, 'text': 'So our function name is administrator.', 'start': 915.106, 'duration': 2.102}, {'end': 923.252, 'text': 'So inside this function, first of all, we will declare a variable choice.', 'start': 917.228, 'duration': 6.024}], 'summary': 'Introducing go to statement after switch case for jumping to main menu, then creating an administrator function with options.', 'duration': 34.459, 'max_score': 846.005, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/xFwwN4lGG0o/pics/xFwwN4lGG0o846005.jpg'}, {'end': 1273.719, 'src': 'embed', 'start': 1231.689, 'weight': 0, 'content': [{'end': 1243.12, 'text': 'So, after the switch case statement again as we have done in the previous function, we will mark M with a go to statement, which is a jump statement,', 'start': 1231.689, 'duration': 11.431}, {'end': 1244.221, 'text': 'and label it over here.', 'start': 1243.12, 'duration': 1.101}, {'end': 1249.847, 'text': 'All right.', 'start': 1249.486, 'duration': 0.361}, {'end': 1251.308, 'text': 'So administrator function is done.', 'start': 1249.927, 'duration': 1.381}, {'end': 1258.109, 'text': "after this function now we will create another function, let's say buyer function.", 'start': 1252.446, 'duration': 5.663}, {'end': 1273.719, 'text': 'so for that void shopping scope resolution operator, buyer all right.', 'start': 1258.109, 'duration': 15.61}], 'summary': 'Creating buyer function using void shopping scope resolution operator.', 'duration': 42.03, 'max_score': 1231.689, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/xFwwN4lGG0o/pics/xFwwN4lGG0o1231689.jpg'}, {'end': 1580.946, 'src': 'embed', 'start': 1539.66, 'weight': 2, 'content': [{'end': 1548.225, 'text': 'now we have to create a menu, kind of a structure, in which we will ask the user to enter the product code of product, the name of the product, price,', 'start': 1539.66, 'duration': 8.565}, {'end': 1550.025, 'text': 'discount, etc.', 'start': 1548.225, 'duration': 1.8}, {'end': 1552.387, 'text': "so let's do that.", 'start': 1550.025, 'duration': 2.362}, {'end': 1573.501, 'text': "so let's write add new product.", 'start': 1552.387, 'duration': 21.114}, {'end': 1577.144, 'text': 'all right, after that we will write the product code of product.', 'start': 1573.501, 'duration': 3.643}, {'end': 1580.946, 'text': "we'll ask the user to enter the product code of the product.", 'start': 1577.144, 'duration': 3.802}], 'summary': 'Create a menu to add new products with product code, name, price, and discount.', 'duration': 41.286, 'max_score': 1539.66, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/xFwwN4lGG0o/pics/xFwwN4lGG0o1539660.jpg'}], 'start': 721.371, 'title': 'Implementation of user roles and functions', 'summary': 'Covers the implementation of switch case for user roles and functions, including creating administrator and buyer functions with different options, and creating an add function for product management involving file handling operations and user input.', 'chapters': [{'end': 887.832, 'start': 721.371, 'title': 'Switch case and function implementation', 'summary': 'Covers the implementation of switch case for user roles and functions, including the use of break, default case, and go to statement for program flow control.', 'duration': 166.461, 'highlights': ['Implementation of switch case for user roles and functions, including administrator, buyer, and exit cases. The transcript outlines the implementation of switch case for different user roles, with specific cases for administrator, buyer, and exit.', 'Use of break to end the case and go to statement for jumping to the main menu after completion of the switch case. The use of break to end a case and go to statement for program flow control is highlighted, demonstrating the handling of transitions between different sections of the program.', 'Inclusion of default case to handle selection of options other than specified cases. The transcript mentions the inclusion of a default case to handle situations where a user selects an option other than the specified cases, ensuring a prompt to select from the given options.']}, {'end': 1447.996, 'start': 888.793, 'title': 'Creating administrator and buyer functions', 'summary': 'Discusses the creation of an administrator function with different options, including adding, modifying, and deleting products, and creating a buyer function with options to buy or go back, utilizing switch case statements for user choices.', 'duration': 559.203, 'highlights': ['The chapter starts by creating an administrator function with options for adding, modifying, and deleting products, and a back to main menu option, using switch case statements for user choices.', 'It then proceeds to create a buyer function with options for buying a product or going back, utilizing switch case statements for user choices.']}, {'end': 1700.691, 'start': 1447.996, 'title': 'Creating add function for product management', 'summary': 'Discusses creating an add function for product management, involving file handling operations, variable declaration, and user input for product details.', 'duration': 252.695, 'highlights': ['The add function involves file handling operations, variable declaration, and user input for product details.', 'The function creates a menu structure to prompt the user to enter the product code, name, price, and discount.', 'The user is asked to enter the product code, name, price, and discount in the specified order.']}], 'duration': 979.32, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/xFwwN4lGG0o/pics/xFwwN4lGG0o721371.jpg', 'highlights': ['Implementation of switch case for user roles and functions, including administrator, buyer, and exit cases.', 'The chapter starts by creating an administrator function with options for adding, modifying, and deleting products, and a back to main menu option.', 'The add function involves file handling operations, variable declaration, and user input for product details.']}, {'end': 2159.86, 'segs': [{'end': 1821.61, 'src': 'embed', 'start': 1771.292, 'weight': 0, 'content': [{'end': 1788.132, 'text': 'then inside this function will write data dot open database.txt.', 'start': 1771.292, 'duration': 16.84}, {'end': 1789.152, 'text': 'we will open this.', 'start': 1788.132, 'duration': 1.02}, {'end': 1795.736, 'text': "basically, we will open this file in writing mode if this file doesn't exist.", 'start': 1789.152, 'duration': 6.584}, {'end': 1799.399, 'text': 'and if this file exists, then in else block we will do that.', 'start': 1795.736, 'duration': 3.663}, {'end': 1810.866, 'text': 'ios out ios app stands for append mode and ios out stands for write mode.', 'start': 1799.399, 'duration': 11.467}, {'end': 1821.61, 'text': "now, in order to write inside the file, we'll give some space and now we'll write p code.", 'start': 1810.866, 'duration': 10.744}], 'summary': 'Opening database.txt in write mode, using append mode for ios app, and writing p code.', 'duration': 50.318, 'max_score': 1771.292, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/xFwwN4lGG0o/pics/xFwwN4lGG0o1771292.jpg'}, {'end': 1991.498, 'src': 'embed', 'start': 1947.903, 'weight': 1, 'content': [{'end': 1950.625, 'text': 'this eof is the end of file function.', 'start': 1947.903, 'duration': 2.722}, {'end': 1955.908, 'text': 'this while loop will make sure to check every content of the file by iterating it.', 'start': 1950.625, 'duration': 5.283}, {'end': 1959.249, 'text': 'so one by one each content of the file is checked.', 'start': 1955.908, 'duration': 3.341}, {'end': 1970.254, 'text': 'if the code matches with the p code, that is, if there is a duplicacy, then the token variable which we have we can see initialize with zero,', 'start': 1959.249, 'duration': 11.005}, {'end': 1972.935, 'text': 'will be incremented.', 'start': 1970.254, 'duration': 2.681}, {'end': 1973.715, 'text': 'it will become one.', 'start': 1972.935, 'duration': 0.78}, {'end': 1991.498, 'text': 'basically after that, for the iteration purpose, we are reading from the file and after that now we will close the file data dot close.', 'start': 1973.715, 'duration': 17.783}], 'summary': 'A while loop iterates through a file to check for duplicacy, incrementing a token variable if a match is found.', 'duration': 43.595, 'max_score': 1947.903, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/xFwwN4lGG0o/pics/xFwwN4lGG0o1947903.jpg'}, {'end': 2079.824, 'src': 'embed', 'start': 2049.676, 'weight': 2, 'content': [{'end': 2054.62, 'text': 'that is, the product code entered by the administrator is unique and not duplicate.', 'start': 2049.676, 'duration': 4.944}, {'end': 2061.344, 'text': 'then we can enter the product, the product, that is, its product code, its product name, its price.', 'start': 2054.62, 'duration': 6.724}, {'end': 2067.188, 'text': 'so for that we can just copy paste this part.', 'start': 2061.344, 'duration': 5.844}, {'end': 2072.619, 'text': "it's the same And you can paste it over here.", 'start': 2067.188, 'duration': 5.431}, {'end': 2076.502, 'text': 'So here we are writing inside the file.', 'start': 2074.86, 'duration': 1.642}, {'end': 2079.824, 'text': 'So this is how we can write inside the file.', 'start': 2077.482, 'duration': 2.342}], 'summary': 'The administrator ensures unique product codes and enters product details like code, name, and price, allowing for easy copying and pasting into a file.', 'duration': 30.148, 'max_score': 2049.676, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/xFwwN4lGG0o/pics/xFwwN4lGG0o2049676.jpg'}], 'start': 1700.691, 'title': 'File handling and product management', 'summary': 'Covers file handling operations for storing product details, including writing and reading modes, while demonstrating reading from a file, handling duplicacy, and administrator product management with an emphasis on uniqueness of product codes and creating an edit function.', 'chapters': [{'end': 1864.893, 'start': 1700.691, 'title': 'File handling for product details', 'summary': 'Covers the process of opening a file to store product details using file handling operations, with an emphasis on writing and reading modes, as well as the conditions for file existence.', 'duration': 164.202, 'highlights': ["The process involves using file handling operations to store product details in a specific file for display, with 'database.txt' as an example file name.", "Different file opening modes such as reading, writing, and appending are explained, with specific reference to 'iOS in' for reading mode, 'iOS out' for writing mode, and 'ios app' for append mode.", "The chapter also covers writing specific product details inside the file, including 'p code', 'p name', 'price', and 'discount', followed by closing the file.", 'The importance of conditional statements for checking the existence of the file, and handling the file opening accordingly, is highlighted to ensure proper file operations.']}, {'end': 2013.157, 'start': 1864.893, 'title': 'Reading from file and handling duplicacy', 'summary': 'Demonstrates reading from a file and handling duplicacy using a while loop and if statements, where the token variable is incremented when a duplicate code is encountered, and the file is iterated to check for duplicacy.', 'duration': 148.264, 'highlights': ['The while loop iterates through the file to check for duplicacy, using the end of file function to ensure that each content of the file is checked, ensuring thorough examination.', 'The token variable is incremented when a duplicate code is encountered, providing a quantifiable measure of duplicacy within the file.', 'Explanation of initializing the index of the file and the purpose of using a while loop for file iteration, essential for understanding the subsequent code implementation.']}, {'end': 2159.86, 'start': 2013.157, 'title': 'Administrator product management', 'summary': 'Discusses the process of adding and editing products in a market system, emphasizing the uniqueness of product codes and the creation of an edit function.', 'duration': 146.703, 'highlights': ['The administrator must ensure that the product code entered is unique to avoid duplicates and navigate back to the menu if necessary.', 'The process of adding products involves capturing the product code, product name, and price and writing the information to a file in append mode.', 'The creation of an edit function is described as a means to modify existing products in the market system.']}], 'duration': 459.169, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/xFwwN4lGG0o/pics/xFwwN4lGG0o1700691.jpg', 'highlights': ["Different file opening modes such as reading, writing, and appending are explained, with specific reference to 'iOS in' for reading mode, 'iOS out' for writing mode, and 'ios app' for append mode.", 'The while loop iterates through the file to check for duplicacy, using the end of file function to ensure that each content of the file is checked, ensuring thorough examination.', 'The administrator must ensure that the product code entered is unique to avoid duplicates and navigate back to the menu if necessary.']}, {'end': 2693.965, 'segs': [{'end': 2238.831, 'src': 'embed', 'start': 2163.779, 'weight': 2, 'content': [{'end': 2165.259, 'text': 'edit the name of the function.', 'start': 2163.779, 'duration': 1.48}, {'end': 2174.481, 'text': 'So inside this function, we will create two objects of fstream class, that is data one and data two.', 'start': 2166.3, 'duration': 8.181}, {'end': 2177.602, 'text': 'That is data and data one.', 'start': 2176.481, 'duration': 1.121}, {'end': 2182.602, 'text': 'Alright, so these two are the objects of fstream class.', 'start': 2179.182, 'duration': 3.42}, {'end': 2191.204, 'text': 'Now, we will declare some variables.', 'start': 2188.623, 'duration': 2.581}, {'end': 2217.787, 'text': 'string and all.', 'start': 2213.946, 'duration': 3.841}, {'end': 2238.831, 'text': "right now we'll write a message displaying modify the record, will write slash in.", 'start': 2217.787, 'duration': 21.044}], 'summary': 'Function name edited, 2 fstream objects created, variables declared, message displayed to modify record.', 'duration': 75.052, 'max_score': 2163.779, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/xFwwN4lGG0o/pics/xFwwN4lGG0o2163779.jpg'}, {'end': 2372.759, 'src': 'embed', 'start': 2316.795, 'weight': 3, 'content': [{'end': 2324.301, 'text': 'the other file, this file would be database1 and we will open this file with the help of this object that is data1.', 'start': 2316.795, 'duration': 7.506}, {'end': 2332.887, 'text': 'so we will write data1.open.', 'start': 2324.301, 'duration': 8.586}, {'end': 2354.832, 'text': 'the name of the file would be database 1.txt, and we will open this file in append mode and writing mode.', 'start': 2332.887, 'duration': 21.945}, {'end': 2372.759, 'text': 'so here what we are doing is we will save our edited data in this file and we will rename it to the original name, that is database dot txt.', 'start': 2362.014, 'duration': 10.745}], 'summary': 'Using data1 object to open database1.txt in append and write modes for saving edited data.', 'duration': 55.964, 'max_score': 2316.795, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/xFwwN4lGG0o/pics/xFwwN4lGG0o2316795.jpg'}, {'end': 2465.852, 'src': 'embed', 'start': 2414.784, 'weight': 0, 'content': [{'end': 2417.065, 'text': 'it will check each and every content of the file.', 'start': 2414.784, 'duration': 2.281}, {'end': 2428.267, 'text': 'right now, using if statement, we will check if P key equals to P code.', 'start': 2420.12, 'duration': 8.147}, {'end': 2436.314, 'text': 'P key is the code that is entered by the administrator which he wants to edit.', 'start': 2428.267, 'duration': 8.047}, {'end': 2460.207, 'text': 'so if that matches, then inside the file write slash n, slash t, slash g, then product of new code, product, new code.', 'start': 2436.314, 'duration': 23.893}, {'end': 2465.852, 'text': 'here we are asking the administrator to enter the new code for the product.', 'start': 2460.207, 'duration': 5.645}], 'summary': 'File content checked for p key match, then new code entered.', 'duration': 51.068, 'max_score': 2414.784, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/xFwwN4lGG0o/pics/xFwwN4lGG0o2414784.jpg'}, {'end': 2623.779, 'src': 'embed', 'start': 2574.907, 'weight': 1, 'content': [{'end': 2596.733, 'text': 'alright, now we will write message saying that record edited, record edited all right.', 'start': 2574.907, 'duration': 21.826}, {'end': 2602.197, 'text': 'after that will increment the token, that is token plus plus.', 'start': 2596.733, 'duration': 5.464}, {'end': 2605.099, 'text': 'now this was the if block.', 'start': 2602.197, 'duration': 2.902}, {'end': 2613.232, 'text': 'now in else block green data one, that is,', 'start': 2605.099, 'duration': 8.133}, {'end': 2623.779, 'text': "if the product key or the product code entered by the administrator doesn't matches with any of the product code within the file,", 'start': 2613.232, 'duration': 10.547}], 'summary': "Message 'record edited' written, token incremented, and product code validation performed.", 'duration': 48.872, 'max_score': 2574.907, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/xFwwN4lGG0o/pics/xFwwN4lGG0o2574907.jpg'}], 'start': 2163.779, 'title': 'File content editing and modification', 'summary': 'Covers editing file content and modifying records, utilizing fstream class objects, updating product details, and displaying confirmation messages, with a focus on product code, name, and price. it also includes incrementing tokens upon successful editing.', 'chapters': [{'end': 2414.784, 'start': 2163.779, 'title': 'Modify record in file', 'summary': 'Explains how to modify a record in a file by creating objects of the fstream class, opening and checking the file, saving the edited data, and renaming the file.', 'duration': 251.005, 'highlights': ['We create two objects of the fstream class, data and data1, to perform file operations.', 'Upon opening the file, we check if it exists; if not, we display a message, and if it does, we open another file, database1.txt, in append and writing mode.', 'The edited data is saved in database1.txt and then renamed as database.txt to retain the original file name.']}, {'end': 2693.965, 'start': 2414.784, 'title': 'File content editing process', 'summary': "Explains the process of editing file content, where the administrator can update product details, including the product code, name, and price, with the system displaying a 'record edited' message and incrementing the token upon successful editing.", 'duration': 279.181, 'highlights': ['The system checks if the entered product key matches the product code, and if they match, it prompts the administrator to enter the new code, name, and price for the product.', "Upon successful editing, the system displays a message stating 'record edited' and increments the token by one.", 'In the case where the product key entered by the administrator does not match any product code within the file, the system retains the old variables for product code, price, and discount.']}], 'duration': 530.186, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/xFwwN4lGG0o/pics/xFwwN4lGG0o2163779.jpg', 'highlights': ['The system checks if the entered product key matches the product code, and if they match, it prompts the administrator to enter the new code, name, and price for the product.', "Upon successful editing, the system displays a message stating 'record edited' and increments the token by one.", 'We create two objects of the fstream class, data and data1, to perform file operations.', 'The edited data is saved in database1.txt and then renamed as database.txt to retain the original file name.']}, {'end': 3276.453, 'segs': [{'end': 2821.119, 'src': 'embed', 'start': 2693.965, 'weight': 0, 'content': [{'end': 2701.892, 'text': 'after this we will close both the objects, that is data.close.', 'start': 2693.965, 'duration': 7.927}, {'end': 2711.774, 'text': 'we are closing both the files and data1 not lose.', 'start': 2701.892, 'duration': 9.882}, {'end': 2725.365, 'text': 'now, as I already discussed that, we have to rename that database one back to the original name, that is database.', 'start': 2717.423, 'duration': 7.942}, {'end': 2732.247, 'text': 'so we will use two functions in C++, that is remove function and rename function.', 'start': 2725.365, 'duration': 6.882}, {'end': 2738.708, 'text': 'with the help of remove function, we will remove the list, that is the database.txt file.', 'start': 2732.247, 'duration': 6.461}, {'end': 2748.914, 'text': 'we will remove the database.txt file and then, with the help of rename function, we will rename database1.txt to database.txt.', 'start': 2738.708, 'duration': 10.206}, {'end': 2752.975, 'text': "so let's do that remove.", 'start': 2748.914, 'duration': 4.061}, {'end': 2753.696, 'text': 'inside, remove.', 'start': 2752.975, 'duration': 0.721}, {'end': 2758.378, 'text': 'we will write the name of the file.', 'start': 2753.696, 'duration': 4.682}, {'end': 2764.32, 'text': 'it will basically remove all the list inside the file.', 'start': 2758.378, 'duration': 5.942}, {'end': 2769.222, 'text': 'alright. now, rename function inside the rename function.', 'start': 2764.32, 'duration': 4.902}, {'end': 2791.141, 'text': 'first of all we have to write the old name, that is database1.txt, then the new name, that is database.txt.', 'start': 2769.222, 'duration': 21.919}, {'end': 2799.025, 'text': 'so now, using this function, this name will be changed to database.txt.', 'start': 2791.141, 'duration': 7.884}, {'end': 2821.119, 'text': 'alright, now, if token value is not incremented or we can say is zero, then it will display a message saying that record not found.', 'start': 2799.025, 'duration': 22.094}], 'summary': 'Closing files, renaming database, removing and renaming files in c++.', 'duration': 127.154, 'max_score': 2693.965, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/xFwwN4lGG0o/pics/xFwwN4lGG0o2693965.jpg'}, {'end': 3126.354, 'src': 'embed', 'start': 3051.549, 'weight': 3, 'content': [{'end': 3058.659, 'text': "now, inside the while loop again we'll do the same as that we have previously done.", 'start': 3051.549, 'duration': 7.11}, {'end': 3066.745, 'text': 'data.eof end of file.', 'start': 3058.659, 'duration': 8.086}, {'end': 3068.406, 'text': 'now use.', 'start': 3066.745, 'duration': 1.661}, {'end': 3100.787, 'text': "if pcode equals to pkey, then we'll simply display the message saying that product deleted successfully.", 'start': 3068.406, 'duration': 32.381}, {'end': 3103.31, 'text': 'all right, and now we will increment the token.', 'start': 3100.787, 'duration': 2.523}, {'end': 3126.354, 'text': 'now in the else block, we will write data1 space, then pcode, then pname, then price, then discount.', 'start': 3108.683, 'duration': 17.671}], 'summary': "Inside while loop, if pcode equals pkey, display 'product deleted successfully', then increment token. in else block, write data1 space, pcode, pname, price, discount.", 'duration': 74.805, 'max_score': 3051.549, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/xFwwN4lGG0o/pics/xFwwN4lGG0o3051549.jpg'}], 'start': 2693.965, 'title': 'Managing files in c++', 'summary': 'Covers renaming and removing files in c++, using remove and rename functions to manipulate database files, handle record not found scenarios, and efficiently manage the shopping database.', 'chapters': [{'end': 2821.119, 'start': 2693.965, 'title': 'Renaming and removing files in c++', 'summary': 'Explains the process of renaming and removing files in c++, involving the use of remove and rename functions to manipulate database files and handle record not found scenarios.', 'duration': 127.154, 'highlights': ['The process involves closing both data and data1 files to avoid data loss.', 'Using the remove function, the database.txt file is removed to prepare for renaming.', 'The rename function is then used to change the name of database1.txt to database.txt, effectively renaming the file.', 'In case the token value is not incremented or is zero, a message will be displayed indicating that the record was not found.']}, {'end': 3276.453, 'start': 2821.119, 'title': 'Creating remove function', 'summary': 'Introduces the process of creating a remove function in c++, explaining the steps involved, including opening files, iterating through data, and applying conditional statements to delete or display products, aiming to efficiently manage the shopping database.', 'duration': 455.334, 'highlights': ['The remove function is being created after completing the edit function, with a focus on opening files, iterating through data, and applying conditional statements to delete or display products.', "The process involves initializing objects, such as 'data' and 'data1', and utilizing 'pkey' and 'token' as integer variables.", "Conditional statements are used to check for the existence of the file, displaying appropriate messages based on the result, such as 'file doesn't exist' if the file is not found.", 'The function includes a while loop to iterate through the data file, comparing product codes and performing actions based on the comparison results, such as deleting a product or displaying product details in the data1 file.', 'The process concludes with closing the files, removing the database file, and displaying a message if the record is not found.']}], 'duration': 582.488, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/xFwwN4lGG0o/pics/xFwwN4lGG0o2693965.jpg', 'highlights': ['Using the remove function, the database.txt file is removed to prepare for renaming.', 'The rename function is then used to change the name of database1.txt to database.txt, effectively renaming the file.', 'The process involves closing both data and data1 files to avoid data loss.', "The process involves initializing objects, such as 'data' and 'data1', and utilizing 'pkey' and 'token' as integer variables.", 'The function includes a while loop to iterate through the data file, comparing product codes and performing actions based on the comparison results, such as deleting a product or displaying product details in the data1 file.']}, {'end': 3712.552, 'segs': [{'end': 3349.421, 'src': 'embed', 'start': 3276.453, 'weight': 0, 'content': [{'end': 3282.974, 'text': 'so as we have created three major functions now we will create another function named list.', 'start': 3276.453, 'duration': 6.521}, {'end': 3286.755, 'text': 'it will help us in showing the list to the customer or the buyer.', 'start': 3282.974, 'duration': 3.781}, {'end': 3292.896, 'text': 'we will write shopping.', 'start': 3286.755, 'duration': 6.141}, {'end': 3297.537, 'text': 'now we will write list inside.', 'start': 3292.896, 'duration': 4.641}, {'end': 3320.275, 'text': 'this function will write the data, the object of the fstream class, then data.open will open the database file txt in the reading mode.', 'start': 3297.537, 'duration': 22.738}, {'end': 3349.421, 'text': 'alright, after that we will format it a bit.', 'start': 3328.396, 'duration': 21.025}], 'summary': 'Created functions for shopping, list, and open database file.', 'duration': 72.968, 'max_score': 3276.453, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/xFwwN4lGG0o/pics/xFwwN4lGG0o3276453.jpg'}, {'end': 3555.286, 'src': 'embed', 'start': 3516.969, 'weight': 2, 'content': [{'end': 3523.952, 'text': "Then we'll declare some arrays because we have to store multiple product keys and multiple quantities of those products.", 'start': 3516.969, 'duration': 6.983}, {'end': 3530.154, 'text': "So that is why here we have to use arrays and then we'll declare some variables.", 'start': 3524.712, 'duration': 5.442}, {'end': 3532.095, 'text': "So let's start.", 'start': 3531.435, 'duration': 0.66}, {'end': 3537.397, 'text': 'First of all, fstream class, the object of this class is data.', 'start': 3533.135, 'duration': 4.262}, {'end': 3547.921, 'text': 'now. after this, we will create array.', 'start': 3540.655, 'duration': 7.266}, {'end': 3551.163, 'text': 'array c means array of codes.', 'start': 3547.921, 'duration': 3.242}, {'end': 3555.286, 'text': 'so I will declare it in that way now.', 'start': 3551.163, 'duration': 4.123}], 'summary': 'Using arrays to store product keys and quantities, and declaring variables for file handling and arrays.', 'duration': 38.317, 'max_score': 3516.969, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/xFwwN4lGG0o/pics/xFwwN4lGG0o3516969.jpg'}, {'end': 3712.552, 'src': 'embed', 'start': 3679.671, 'weight': 1, 'content': [{'end': 3681.152, 'text': "if it doesn't exist.", 'start': 3679.671, 'duration': 1.481}, {'end': 3694.896, 'text': "if not data, that is, if this file doesn't exist or this database doesn't exist, then we will print the message saying that empty database,", 'start': 3681.152, 'duration': 13.744}, {'end': 3712.552, 'text': "empty with a p now, as this now in else block, we'll write if that file exists, then first of all we'll close the file that we already opened.", 'start': 3694.896, 'duration': 17.656}], 'summary': 'Handling non-existent data and closing files in python.', 'duration': 32.881, 'max_score': 3679.671, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/xFwwN4lGG0o/pics/xFwwN4lGG0o3679671.jpg'}], 'start': 3276.453, 'title': 'Creating functions and file operations', 'summary': "Covers creating a 'list' function for displaying product data, implementing a receipt function in c++, and the process of file checking and opening, including key steps and file names involved.", 'chapters': [{'end': 3483.47, 'start': 3276.453, 'title': 'Creating list function for displaying data', 'summary': "Details the process of creating a 'list' function to display product data to customers, including opening the database file, formatting the data, and implementing a while loop for reading and displaying product details.", 'duration': 207.017, 'highlights': ["The 'list' function is created to display product data to customers or buyers, involving opening the database file and formatting the data.", 'The function involves writing the product number, name, price, etc., formatting it in a specific way, and then reading and displaying the data using a while loop.']}, {'end': 3618.327, 'start': 3483.47, 'title': 'Creating receipt function in c++', 'summary': 'Discusses creating a receipt function in c++ for customer operations, including initializing fstream class object, declaring arrays for product keys and quantities, and displaying a receipt message.', 'duration': 134.857, 'highlights': ['Initializing fstream class object and declaring arrays for product keys and quantities The chapter discusses initializing the fstream class object and declaring arrays for product keys and quantities to store multiple product keys and quantities of those products.', 'Displaying a receipt message The chapter mentions displaying a message indicating receipt to inform the user about the generated receipt.']}, {'end': 3712.552, 'start': 3626.846, 'title': 'File checking and opening process', 'summary': 'Covers the process of checking the existence of a database file and opening it, including conditions for file existence and actions to be taken, with a focus on data dot open and database dot txt.', 'duration': 85.706, 'highlights': ['Opening the database dot txt file and checking its existence is done using data dot open and if conditions.', 'The process includes checking if the file or database exists and taking specific actions based on the result, such as printing a message for an empty database and closing the file if it exists.']}], 'duration': 436.099, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/xFwwN4lGG0o/pics/xFwwN4lGG0o3276453.jpg', 'highlights': ["The 'list' function is created to display product data to customers or buyers, involving opening the database file and formatting the data.", 'The process includes checking if the file or database exists and taking specific actions based on the result, such as printing a message for an empty database and closing the file if it exists.', 'Initializing fstream class object and declaring arrays for product keys and quantities The chapter discusses initializing the fstream class object and declaring arrays for product keys and quantities to store multiple product keys and quantities of those products.']}, {'end': 4594.117, 'segs': [{'end': 3815.553, 'src': 'embed', 'start': 3716.694, 'weight': 0, 'content': [{'end': 3723.876, 'text': 'Now in else block, we will call this list function that we have created, because if the file is created,', 'start': 3716.694, 'duration': 7.182}, {'end': 3730.238, 'text': 'then we have to call the list function and will show the user or the customer that these are the products available in the supermarket.', 'start': 3723.876, 'duration': 6.362}, {'end': 3733.653, 'text': 'And for that, we are calling this list function.', 'start': 3731.471, 'duration': 2.182}, {'end': 3739.898, 'text': 'Now design the structure and ask the user to place the order.', 'start': 3734.634, 'duration': 5.264}, {'end': 3741.62, 'text': "So let's do that.", 'start': 3740.919, 'duration': 0.701}, {'end': 3765.368, 'text': 'Please place the order.', 'start': 3764.127, 'duration': 1.241}, {'end': 3776.017, 'text': 'No gain will copy this part.', 'start': 3774.396, 'duration': 1.621}, {'end': 3786.146, 'text': 'All right.', 'start': 3785.766, 'duration': 0.38}, {'end': 3790.17, 'text': "So now we'll use do while loop.", 'start': 3786.407, 'duration': 3.763}, {'end': 3801.7, 'text': 'The purpose of using this do while group is that we have to run a specific part of the code every time and the other part of the code we have to run based on the choice.', 'start': 3791.431, 'duration': 10.269}, {'end': 3808.226, 'text': "So now let's start with that inside the do block.", 'start': 3802.982, 'duration': 5.244}, {'end': 3815.553, 'text': 'First of all, we will ask the user to enter the product code and enter the product quantity.', 'start': 3808.887, 'duration': 6.666}], 'summary': 'Creating code to list products, asking for user orders, using do while loop.', 'duration': 98.859, 'max_score': 3716.694, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/xFwwN4lGG0o/pics/xFwwN4lGG0o3716694.jpg'}, {'end': 4202.198, 'src': 'embed', 'start': 4117.495, 'weight': 2, 'content': [{'end': 4124.279, 'text': 'then. now we will write product quantity product name.', 'start': 4117.495, 'duration': 6.784}, {'end': 4132.783, 'text': 'sorry, Now product quantity.', 'start': 4124.279, 'duration': 8.504}, {'end': 4142.413, 'text': 'Then the price.', 'start': 4141.433, 'duration': 0.98}, {'end': 4169.691, 'text': "Now we'll use the for loop to iterate through the file.", 'start': 4167.29, 'duration': 2.401}, {'end': 4175.513, 'text': "So we'll write for int i equals zero i less than ci plus plus.", 'start': 4170.331, 'duration': 5.182}, {'end': 4193.18, 'text': "So now inside this for loop, first of all, because we have to do the iteration, we'll open the file data dot open.", 'start': 4186.037, 'duration': 7.143}, {'end': 4202.198, 'text': 'database, double quotes, database dot txt.', 'start': 4197.176, 'duration': 5.022}], 'summary': 'Code iterates through product data in a file.', 'duration': 84.703, 'max_score': 4117.495, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/xFwwN4lGG0o/pics/xFwwN4lGG0o4117495.jpg'}, {'end': 4356.299, 'src': 'embed', 'start': 4255.529, 'weight': 3, 'content': [{'end': 4257.73, 'text': 'is equal to the code present in the file.', 'start': 4255.529, 'duration': 2.201}, {'end': 4264.372, 'text': 'And if so, then we will do the calculations and add those file in the customer basket.', 'start': 4258.27, 'duration': 6.102}, {'end': 4265.993, 'text': "So let's do that.", 'start': 4265.233, 'duration': 0.76}, {'end': 4269.994, 'text': 'P code equals array of C of I.', 'start': 4266.433, 'duration': 3.561}, {'end': 4283.539, 'text': "Here we are checking if so, then We'll do the amount amount equals to price of the product into the quantity of the product.", 'start': 4269.994, 'duration': 13.545}, {'end': 4291.321, 'text': 'All right.', 'start': 4291.06, 'duration': 0.261}, {'end': 4293.821, 'text': "After that, we'll have to do the discount part.", 'start': 4291.381, 'duration': 2.44}, {'end': 4301.623, 'text': 'So in this part, we know that the discount is calculated by multiplying amount with discount divided by 100.', 'start': 4294.721, 'duration': 6.902}, {'end': 4304.724, 'text': 'And then we have to subtract it from the amount.', 'start': 4301.623, 'duration': 3.101}, {'end': 4316.969, 'text': "So let's do that amount minus amount into discount divided by 100.", 'start': 4305.7, 'duration': 11.269}, {'end': 4319.251, 'text': 'All right.', 'start': 4316.969, 'duration': 2.282}, {'end': 4325.836, 'text': "Now, after that, as we are done now, we'll have to add discount to the total variable.", 'start': 4320.011, 'duration': 5.825}, {'end': 4335.169, 'text': 'because in this part, the total amount after getting discount is stored in this this variable.', 'start': 4327.045, 'duration': 8.124}, {'end': 4337.79, 'text': "Now we'll add this variable to the total variable.", 'start': 4335.449, 'duration': 2.341}, {'end': 4339.171, 'text': 'All right.', 'start': 4338.851, 'duration': 0.32}, {'end': 4342.793, 'text': 'So as this is done now, we will print this part.', 'start': 4339.691, 'duration': 3.102}, {'end': 4345.574, 'text': 'So in this part, we are just printing.', 'start': 4343.853, 'duration': 1.721}, {'end': 4356.299, 'text': "So we'll do the slash in and then P code, then P name, then array of Q of I.", 'start': 4345.834, 'duration': 10.465}], 'summary': 'Calculates product prices, discounts, and adds to basket.', 'duration': 100.77, 'max_score': 4255.529, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/xFwwN4lGG0o/pics/xFwwN4lGG0o4255529.jpg'}], 'start': 3716.694, 'title': 'Designing and calculating product order system', 'summary': "Covers designing a product order system with features such as creating a list function, using do-while loop for user interaction, and iterating through product data. it also discusses calculating the total amount with discounts for items in a customer's basket using a programming code, including applying discounts and printing the results.", 'chapters': [{'end': 4255.529, 'start': 3716.694, 'title': 'Designing product order system', 'summary': 'Discusses designing a product order system, including creating a list function, using do-while loop for user interaction, and iterating through product data to display receipt and manage product orders.', 'duration': 538.835, 'highlights': ['Creating a list function to display available products in the supermarket and prompting the user to place an order.', 'Using do-while loop for user interaction, prompting the user to enter product code and quantity, and checking for duplicate product codes.', 'Iterating through the product data using a for loop to display the receipt, including product number, quantity, name, price, and discount.']}, {'end': 4594.117, 'start': 4255.529, 'title': 'Calculating and printing total amount', 'summary': "Discusses the process of calculating the total amount with discounts for items in a customer's basket using a programming code, including iterating through a file, applying discounts, and printing the formatted results.", 'duration': 338.588, 'highlights': ["The chapter explains the process of calculating the total amount with discounts for items in a customer's basket using a programming code, including iterating through a file, applying discounts, and printing the formatted results.", 'The calculation involves multiplying the price of the product by the quantity to obtain the amount, then applying a discount by multiplying the amount with the discount percentage divided by 100 and subtracting it from the amount.', 'The total amount after discount is stored in a variable and added to the total variable, following which the formatted details including product code, name, quantity, price, amount, and discount are printed with appropriate formatting.']}], 'duration': 877.423, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/xFwwN4lGG0o/pics/xFwwN4lGG0o3716694.jpg', 'highlights': ['Creating a list function to display available products in the supermarket and prompting the user to place an order.', 'Using do-while loop for user interaction, prompting the user to enter product code and quantity, and checking for duplicate product codes.', 'Iterating through the product data using a for loop to display the receipt, including product number, quantity, name, price, and discount.', "The chapter explains the process of calculating the total amount with discounts for items in a customer's basket using a programming code, including iterating through a file, applying discounts, and printing the formatted results.", 'The calculation involves multiplying the price of the product by the quantity to obtain the amount, then applying a discount by multiplying the amount with the discount percentage divided by 100 and subtracting it from the amount.', 'The total amount after discount is stored in a variable and added to the total variable, following which the formatted details including product code, name, quantity, price, amount, and discount are printed with appropriate formatting.']}, {'end': 4985.002, 'segs': [{'end': 4655.941, 'src': 'embed', 'start': 4600.161, 'weight': 0, 'content': [{'end': 4607.386, 'text': "So we can see supermarket main menu versus administrator, then second, if you're a buyer, three to exit.", 'start': 4600.161, 'duration': 7.225}, {'end': 4610.569, 'text': 'So first, we log in as an administrator.', 'start': 4608.227, 'duration': 2.342}, {'end': 4613.831, 'text': 'So as you can see, please log in.', 'start': 4612.57, 'duration': 1.261}, {'end': 4617.861, 'text': "So now we'll enter the admins email.", 'start': 4615.157, 'duration': 2.704}, {'end': 4624.97, 'text': "So we'll write Robbie at the rate email dot com.", 'start': 4618.582, 'duration': 6.388}, {'end': 4630.378, 'text': 'Now the password Robbie at the rate one, two, three.', 'start': 4627.033, 'duration': 3.345}, {'end': 4635.648, 'text': 'Now, this is the administrator menu, as you can see, first is the ad product.', 'start': 4631.966, 'duration': 3.682}, {'end': 4642.352, 'text': 'If we want to add the product second to modify the product, three to delete the product and four to back to main menu.', 'start': 4635.728, 'duration': 6.624}, {'end': 4647.636, 'text': "So now I'll click on like I want to add the product.", 'start': 4643.073, 'duration': 4.563}, {'end': 4652.639, 'text': "So I'll write one press one and enter a new product.", 'start': 4647.736, 'duration': 4.903}, {'end': 4655.941, 'text': 'So now I have to add product code of the product.', 'start': 4653.039, 'duration': 2.902}], 'summary': 'Administrator logs in, adds product with code in supermarket system.', 'duration': 55.78, 'max_score': 4600.161, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/xFwwN4lGG0o/pics/xFwwN4lGG0o4600161.jpg'}, {'end': 4963.367, 'src': 'embed', 'start': 4910.205, 'weight': 2, 'content': [{'end': 4914.108, 'text': 'So for that, first of all, why for butter? I will click on three.', 'start': 4910.205, 'duration': 3.903}, {'end': 4916.25, 'text': 'Product code of butter is three.', 'start': 4914.909, 'duration': 1.341}, {'end': 4917.631, 'text': 'Now quantity would be two.', 'start': 4916.33, 'duration': 1.301}, {'end': 4923.736, 'text': "No, I don't want to buy any other product, so I'll click on N.", 'start': 4920.213, 'duration': 3.523}, {'end': 4933.298, 'text': 'So as you can see, product numbers, product name, their quantity, price, amount, and amount with discount.', 'start': 4925.632, 'duration': 7.666}, {'end': 4938.382, 'text': 'And the total is there, that is 272.', 'start': 4934.799, 'duration': 3.583}, {'end': 4943.466, 'text': 'And if we wish to buy another product, so we can click on 1, else we can click on 2 to go back.', 'start': 4938.382, 'duration': 5.084}, {'end': 4947.35, 'text': 'So this is our receipt, our total amount is there.', 'start': 4945.128, 'duration': 2.222}, {'end': 4951.764, 'text': 'So this is a complete project on supermarket billing in C++.', 'start': 4948.243, 'duration': 3.521}, {'end': 4959.946, 'text': 'You can try it, although the code is bit long, approx 400 to 450 lines of code, but it is worth trying.', 'start': 4952.244, 'duration': 7.702}, {'end': 4963.367, 'text': 'All right, guys, with that, we have come to the end of this session.', 'start': 4960.946, 'duration': 2.421}], 'summary': 'A c++ project for supermarket billing with a total amount of 272 and approximately 400-450 lines of code.', 'duration': 53.162, 'max_score': 4910.205, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/xFwwN4lGG0o/pics/xFwwN4lGG0o4910205.jpg'}], 'start': 4600.161, 'title': 'Supermarket admin menu and billing project', 'summary': 'Provides a walkthrough of the supermarket administrator menu, covering login steps and product addition. it also demonstrates a c++ project for supermarket billing, with features such as product management and a simulated purchase resulting in a total amount of 272.', 'chapters': [{'end': 4655.941, 'start': 4600.161, 'title': 'Supermarket admin menu walkthrough', 'summary': 'Provides a walkthrough of the supermarket administrator menu, including steps for logging in and adding a new product, with the administrator entering email and password for login and adding a new product code.', 'duration': 55.78, 'highlights': ["The administrator logs in with the email 'Robbie@email.com' and password 'Robbie@123'.", 'The administrator can perform actions such as adding a product, modifying a product, and deleting a product within the administrator menu.', 'A new product code needs to be entered when adding a new product.']}, {'end': 4985.002, 'start': 4656.841, 'title': 'Supermarket billing project', 'summary': 'Covers a demonstration of a supermarket billing project in c++, with features including adding, modifying, and deleting products, as well as simulating a customer purchase process resulting in a total amount of 272.', 'duration': 328.161, 'highlights': ['The chapter covers a demonstration of a supermarket billing project in C++. Demonstrates a supermarket billing project in C++.', 'Features include adding, modifying, and deleting products. Shows the process of adding, modifying, and deleting products in the system.', 'Simulates a customer purchase process resulting in a total amount of 272. Simulates a customer purchase process with a total amount of 272.']}], 'duration': 384.841, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/xFwwN4lGG0o/pics/xFwwN4lGG0o4600161.jpg', 'highlights': ["The administrator logs in with the email 'Robbie@email.com' and password 'Robbie@123'.", 'A new product code needs to be entered when adding a new product.', 'The chapter covers a demonstration of a supermarket billing project in C++.', 'Features include adding, modifying, and deleting products.', 'Simulates a customer purchase process resulting in a total amount of 272.']}], 'highlights': ['The chapter covers a demonstration of a supermarket billing project in C++.', 'Simulates a customer purchase process resulting in a total amount of 272.', 'The chapter covers creating a shopping class in C++ with a focus on declaring variables and functions such as P code, price, discount, name, menu, administrator, buyer, add, edit, remove, list, and receipt functions.', 'The chapter covers the creation of a supermarket billing project in C++ with functions like add and delete for goods and a buyer site.', 'The chapter starts by creating an administrator function with options for adding, modifying, and deleting products, and a back to main menu option.', 'The system checks if the entered product key matches the product code, and if they match, it prompts the administrator to enter the new code, name, and price for the product.', "The chapter explains the process of calculating the total amount with discounts for items in a customer's basket using a programming code, including iterating through a file, applying discounts, and printing the formatted results.", "The process involves initializing objects, such as 'data' and 'data1', and utilizing 'pkey' and 'token' as integer variables.", 'The function involves a while loop to iterate through the data file, comparing product codes and performing actions based on the comparison results, such as deleting a product or displaying product details in the data1 file.', "The chapter emphasizes the declaration of functions within the 'shopping' class, including menu, administrator, buyer, add, edit, remove, list, and receipt functions."]}