To add a new shop keeper, your program should ask some credentials from the user to register a shop keeper. Credentials you must ask includes: S-id (Shop keeper id) should be in proper format as string to use in future modules [All the info should be taken in same order] ⮚ First Name ⮚ Last Name ⮚ S-id (should be auto generated by the system in increasing order) [format should be Shopkeeper e.g., 0001 for first shopkeeper and 1001 for one thousand and one shopkeeper number] ⮚ Username ⮚ Email ⮚ Password ⮚ Registration Date ⮚ Gender ⮚ Blood Group ⮚ Contact No ⮚ Address After this, you must record all the above-mentioned data save data within a file named as “shopkeeper.txt” present in the same directory. \ Edit Shopkeeper details Your program should be capable of editing the shopkeeper's basic details. The details that administrator can edit includes: ⮚ First Name ⮚ Last Name ⮚ Address ⮚ Contact No ⮚ Username ⮚ Email ⮚ Password The system should display a shopkeepers list and then admin enter/select shopkeeper’s id number to edit and then update the above fields for that specific shopkeeper. Once the user updates the shopkeeper’s record, your program should update this information against the id you have selected in file “shopkeeper.txt”. Delete Shopkeeper The system should display a shopkeepers list and then admin enter/select shopkeeper’s id number to delete that specific shopkeeper. Once the user updates the shopkeeper’s record, your program should update this information against the id you have selected in file “shopkeeper.txt”.
Using c++ oop solve below
Make function and call them into main function.
- Add new Shop Keeper
To add a new shop keeper, your program should ask some credentials from the user to register a shop keeper. Credentials you must ask includes:
S-id (Shop keeper id) should be in proper format as string to use in future modules [All the info should be taken in same order]
⮚ First Name
⮚ Last Name
⮚ S-id (should be auto generated by the system in increasing order) [format should be Shopkeeper e.g., 0001 for first shopkeeper and 1001 for one thousand and one shopkeeper number]
⮚ Username
⮚ Password
⮚ Registration Date
⮚ Gender
⮚ Blood Group
⮚ Contact No
⮚ Address
After this, you must record all the above-mentioned data save data within a file named as
“shopkeeper.txt” present in the same directory.
\
- Edit Shopkeeper details
Your program should be capable of editing the shopkeeper's basic details. The details that administrator can edit includes:
⮚ First Name
⮚ Last Name
⮚ Address
⮚ Contact No
⮚ Username
⮚ Password
The system should display a shopkeepers list and then admin enter/select shopkeeper’s id number to edit and then update the above fields for that specific shopkeeper. Once the user updates the shopkeeper’s record, your program should update this information against the id you have selected in file “shopkeeper.txt”.
- Delete Shopkeeper
The system should display a shopkeepers list and then admin enter/select shopkeeper’s id number to delete that specific shopkeeper. Once the user updates the shopkeeper’s record, your program should update this information against the id you have selected in file “shopkeeper.txt”.
Step by step
Solved in 5 steps with 6 images