Part-1: Admin In the admin part, the admin can add, delete medicines serially wherever he wants! (Medicine Name, Price)! All the added medicines will be stored in ‘Medicine.txt File’ there will be an admin id password! If the input password is wrong it will throw an exception! Part-2: Customer In the Customer Part, There will be 3 portions 1st one is for Sign Up, 2nd one is for Login and the last one is continuing as a guest! In Sign up part, the Customer needs to sign up for Shop Membership. After successful signup customers' data(name, age etc.) will be stored in a different file named ‘Customer Info.txt’! Then log in, in this portion customer needs to log in to his account to buy medicine! The customer will input the serial number and the quantity of the medicine which he wants to buy, After successful input that medicine will be added to the cart, and customer can add or remove more medicines to the cart! After the selection is completed it will go to the billing page and show a Complete bill of the customer (if possible keep a way that is customers will have some percentage of discount if he crosses his threshold which is only for members not for guests). In Guest, portion customers can buy medicines without login. Part 3 : Credit In this part, there will be 3 names (for instance: X, Y, Z) and greetings for the customers.
** Java
Please Use Basic Java not GUI
•Pharmacy Management System•
Your job is to think of a scenario of a Pharmacy! Where various types of medicines are sold! In this pharmacy, there will be 3 parts!
Part-1: Admin
In the admin part, the admin can add, delete medicines serially wherever he wants! (Medicine Name, Price)! All the added medicines will be stored in ‘Medicine.txt File’ there will be an admin id password! If the input password is wrong it will throw an exception!
Part-2: Customer
In the Customer Part, There will be 3 portions 1st one is for Sign Up, 2nd one is for Login and the last one is continuing as a guest! In Sign up part, the Customer needs to sign up for Shop Membership. After successful signup customers' data(name, age etc.) will be stored in a different file named ‘Customer Info.txt’! Then log in, in this portion customer needs to log in to his account to buy medicine! The customer will input the serial number and the quantity of the medicine which he wants to buy, After successful input that medicine will be added to the cart, and customer can add or remove more medicines to the cart! After the selection is completed it will go to the billing page and show a Complete bill of the customer (if possible keep a way that is customers will have some percentage of discount if he crosses his threshold which is only for members not for guests). In Guest, portion customers can buy medicines without login.
Part 3 : Credit
In this part, there will be 3 names (for instance: X, Y, Z) and greetings for the customers.
(Please add the name of the pharmacy, a welcoming message, and use necessary exception handlings wherever the program needs.)
Please add more and more comments.. Please make the code as basic as you can don't use pro-level methods. Use file.. Thanks!
Step by step
Solved in 2 steps with 3 images