Thursday, March 13, 2025

The history of Hinduism

 The history of Hinduism is a rich and diverse one, spanning thousands of years. Here's a brief overview:


Ancient Period (1500 BCE - 500 CE)

1. *Vedic Period (1500 BCE - 500 BCE)*: Hinduism originated in the Indian subcontinent during the Vedic period. The Vedas, ancient Hindu scriptures, were composed during this time.

2. *Upanishadic Period (800 BCE - 400 BCE)*: The Upanishads, philosophical texts, were written during this period. They explored the nature of ultimate reality and the self.

3. *Epic Period (400 BCE - 400 CE)*: The great epics, the Ramayana and the Mahabharata, were composed during this period.


Classical Period (500 CE - 1500 CE)

1. *Puranic Period (300 CE - 1000 CE)*: The Puranas, ancient texts that contain stories and legends, were written during this period.

2. *Bhakti Movement (500 CE - 1500 CE)*: The Bhakti movement, which emphasized devotion and personal experience, emerged during this period.

3. *Shaivism and Vaishnavism (500 CE - 1500 CE)*: Shaivism (worship of Shiva) and Vaishnavism (worship of Vishnu) emerged as distinct traditions during this period.


Medieval Period (1500 CE - 1800 CE)

1. *Islamic Influence (1000 CE - 1500 CE)*: Islam arrived in India during this period, influencing Hinduism and leading to the development of new traditions.

2. *Bhakti Movement Revival (1500 CE - 1800 CE)*: The Bhakti movement experienced a revival during this period, with poets like Kabir and Tukaram.


Modern Period (1800 CE - present)

1. *Hindu Renaissance (1800 CE - 1900 CE)*: Hinduism experienced a renaissance during this period, with the emergence of reformers like Rammohan Roy and Vivekananda.

2. *Indian Independence (1947 CE)*: India gained independence from British rule, leading to a renewed focus on Hinduism and Indian culture.

3. *Contemporary Hinduism (1947 CE - present)*: Hinduism continues to evolve, with ongoing debates about tradition, modernity, and identity.


This is just a brief overview, and there's much more to explore in the rich history of Hinduism.




The Vedic period (1500 BCE - 500 BCE) was a transformative era in ancient Indian history, marking the emergence of Hinduism and the composition of the Vedas.


Key Features of the Vedic Period:

1. *Geography*: The Vedic period was centered in the Indo-Gangetic Plain, specifically in the regions of modern-day Punjab, Haryana, Uttar Pradesh, and Bihar.

2. *Society*: Vedic society was organized into tribes, with a hierarchical structure. The four varnas (social classes) emerged during this period: Brahmins, Kshatriyas, Vaishyas, and Shudras.

3. *Economy*: The Vedic economy was primarily pastoral and agricultural, with trade and commerce also playing a significant role.

4. *Religion*: The Vedic period saw the emergence of Hinduism, with the composition of the Vedas, which are the oldest Hindu scriptures.

5. *Culture*: Vedic culture was characterized by a strong emphasis on ritual, sacrifice, and the worship of nature deities.


The Vedas:

The Vedas are the oldest Hindu scriptures, composed during the Vedic period. There are four main Vedas:


1. *Rigveda*: The oldest Veda, containing hymns and prayers.

2. *Yajurveda*: Contains rituals and sacrifices.

3. *Samaveda*: A collection of melodies and chants.

4. *Atharvaveda*: Contains spells and incantations.


Important Vedic Deities:

1. *Indra*: The king of the gods, associated with thunder and lightning.

2. *Agni*: The fire god, associated with sacrifice and ritual.

3. *Varuna*: The god of the sky and ocean.

4. *Vishnu*: The preserver god, who would later become a central deity in Hinduism.


Legacy of the Vedic Period:

The Vedic period laid the foundation for Hinduism, Indian culture, and the Sanskrit language. Its influence can still be seen in modern Hinduism, with many Vedic rituals and practices continuing to be observed today

Districts names in Maharashtra

 Here is the updated list of 36 districts of Maharashtra, India:


1. Ahilyanagar 

2. Akola

3. Amravati

4. Sambhaji Nagar 

5. Beed

6. Bhandara

7. Buldhana

8. Chandrapur

9. Dhule

10. Gadchiroli

11. Gondia

12. Hingoli

13. Jalgaon

14. Jalna

15. Kolhapur

16. Latur

17. Mumbai City

18. Mumbai Suburban

19. Nagpur

20. Nanded

21. Nandurbar

22. Nashik

23. Dharashiv 

24. Palghar

25. Parbhani

26. Pune

27. Raigad

28. Ratnagiri

29. Sangli

30. Satara

31. Sindhudurg

32. Solapur

33. Thane

34. Wardha

35. Washim

36. Yavatmal


Districts names of Punjab

 Here are the 23 districts of Punjab, India:


1. Amritsar

2. Barnala

3. Bathinda

4. Faridkot

5. Fatehgarh Sahib

6. Fazilka

7. Firozpur

8. Gurdaspur

9. Hoshiarpur

10. Jalandhar

11. Kapurthala

12. Ludhiana

13. Malerkotla

14. Mansa

15. Moga

16. Muktsar

17. Nawanshahr

18. Pathankot

19. Patiala

20. Rupnagar

21. Sangrur

22. Shahid Bhagat Singh Nagar

23. Tarn Taran


Note: These districts are further divided into sub-divisions, tehsils, and blocks for administrative purposes.



Here is the list of districts in Punjab, India, along with their sub-divisions, tehsils, and blocks:


1. Amritsar

    - Sub-divisions: Amritsar-I, Amritsar-II, Ajnala, Baba Bakala

    - Tehsils: Amritsar-I, Amritsar-II, Ajnala, Baba Bakala, Harsha Chhina

    - Blocks: Amritsar-I, Amritsar-II, Ajnala, Baba Bakala, Harsha Chhina, Jandiala Guru, Majitha, Rayya, Tarsika


2. Barnala

    - Sub-divisions: Barnala, Dhanaula, Tapa

    - Tehsils: Barnala, Dhanaula, Tapa

    - Blocks: Barnala, Dhanaula, Tapa, Bhadaur, Mehal Kalan, Sehna


3. Bathinda

    - Sub-divisions: Bathinda, Rampura Phul, Maur, Talwandi Sabo

    - Tehsils: Bathinda, Rampura Phul, Maur, Talwandi Sabo, Bhagta Bhai Ka

    - Blocks: Bathinda, Rampura Phul, Maur, Talwandi Sabo, Bhagta Bhai Ka, Sangat, Nathana, Goniana


4. Faridkot

    - Sub-divisions: Faridkot, Kotkapura, Jaitu

    - Tehsils: Faridkot, Kotkapura, Jaitu

    - Blocks: Faridkot, Kotkapura, Jaitu, Dhilwan, Panjgrain Kalan


5. Fatehgarh Sahib

    - Sub-divisions: Fatehgarh Sahib, Bassi Pathana, Amloh

    - Tehsils: Fatehgarh Sahib, Bassi Pathana, Amloh

    - Blocks: Fatehgarh Sahib, Bassi Pathana, Amloh, Khamanon, Sirhind


6. Fazilka

    - Sub-divisions: Fazilka, Abohar, Jalalabad

    - Tehsils: Fazilka, Abohar, Jalalabad

    - Blocks: Fazilka, Abohar, Jalalabad, Arniwala Sheikh Subhan, Theh Kalandar


7. Firozpur

    - Sub-divisions: Firozpur, Firozpur Cantt., Zira, Guru Har Sahai

    - Tehsils: Firozpur, Firozpur Cantt., Zira, Guru Har Sahai

    - Blocks: Firozpur, Firozpur Cantt., Zira, Guru Har Sahai, Makhu, Ghall Khurd


8. Gurdaspur

    - Sub-divisions: Gurdaspur, Batala, Dera Baba Nanak

    - Tehsils: Gurdaspur, Batala, Dera Baba Nanak

    - Blocks: Gurdaspur, Batala, Dera Baba Nanak, Kalanaur, Dhariwal, Qadian


9. Hoshiarpur

    - Sub-divisions: Hoshiarpur, Dasuya, Mukerian

    - Tehsils: Hoshiarpur, Dasuya, Mukerian

    - Blocks: Hoshiarpur, Dasuya, Mukerian, Tanda, Garhshankar, Mahilpur


10. Jalandhar

    - Sub-divisions: Jalandhar-I, Jalandhar-II, Nakodar, Shahkot

    - Tehsils: Jalandhar-I, Jalandhar-II, Nakodar, Shahkot

    - Blocks: Jalandhar-I, Jalandhar-II, Nakodar, Shahkot, Adampur, Bhogpur, Kartarpur


11. Kapurthala

    - Sub-divisions: Kapurthala, Phagwara, Sultanpur Lodhi

    - Tehsils: Kapurthala, Phagwara, Sultanpur Lodhi

    - Blocks: Kapurthala, Phagwara, Sultanpur Lodhi, Bhulath, Samrai


12. Ludhiana

    - Sub-divisions: Ludhiana-I, Ludhiana-II, Khanna, Samrala

    - Tehsils: Ludhiana-I, Ludhiana-II, Khanna, Samrala

    - Blocks: Ludhiana-I, Ludhiana-II, Khanna, Samrala, Jagraon, Raikot, Sidhwan Bet


13. Malerkotla

    - Sub-divisions: Malerkotla, Ahmedgarh

    - 



14. Mansa

    - Sub-divisions: Mansa, Budhlada, Sardulgarh

    - Tehsils: Mansa, Budhlada, Sardulgarh

    - Blocks: Mansa, Budhlada, Sardulgarh, Bhikhi, Bareta


15. Moga

    - Sub-divisions: Moga, Dharamkot, Nihal Singh Wala

    - Tehsils: Moga, Dharamkot, Nihal Singh Wala

    - Blocks: Moga, Dharamkot, Nihal Singh Wala, Bagha Purana, Badhni Kalan


16. Muktsar

    - Sub-divisions: Muktsar, Malout, Gidderbaha

    - Tehsils: Muktsar, Malout, Gidderbaha

    - Blocks: Muktsar, Malout, Gidderbaha, Lambi, Bariwala


17. Nawanshahr

    - Sub-divisions: Nawanshahr, Balachaur, Banga

    - Tehsils: Nawanshahr, Balachaur, Banga

    - Blocks: Nawanshahr, Balachaur, Banga, Aur, Saroya


18. Pathankot

    - Sub-divisions: Pathankot, Dhar Kalan, Gurdaspur

    - Tehsils: Pathankot, Dhar Kalan, Gurdaspur

    - Blocks: Pathankot, Dhar Kalan, Gurdaspur, Narot Jaimal Singh, Bamial


19. Patiala

    - Sub-divisions: Patiala, Nabha, Rajpura

    - Tehsils: Patiala, Nabha, Rajpura

    - Blocks: Patiala, Nabha, Rajpura, Samana, Patran


20. Rupnagar

    - Sub-divisions: Rupnagar, Chamkaur Sahib, Anandpur Sahib

    - Tehsils: Rupnagar, Chamkaur Sahib, Anandpur Sahib

    - Blocks: Rupnagar, Chamkaur Sahib, Anandpur Sahib, Nangal, Morinda


21. Sangrur

    - Sub-divisions: Sangrur, Dhuri, Malerkotla

    - Tehsils: Sangrur, Dhuri, Malerkotla

    - Blocks: Sangrur, Dhuri, Malerkotla, Ahmedgarh, Lehragaga


22. Shahid Bhagat Singh Nagar

    - Sub-divisions: Nawanshahr, Banga, Balachaur

    - Tehsils: Nawanshahr, Banga, Balachaur

    - Blocks: Nawanshahr, Banga, Balachaur, Aur, Saroya


23. Tarn Taran

    - Sub-divisions: Tarn Taran, Patti, Khadur Sahib

    - Tehsils: Tarn Taran, Patti, Khadur Sahib

    - Blocks: Tarn Taran, Patti, Khadur Sahib, Valtoha, Bhikhiwind

Punjabi alphabets, also known as Gurmukhi

 Here are the Punjabi alphabets, also known as Gurmukhi:


Vowels (ਸਵਰ)

1. ਉਹ (Uha) - U

2. ਅ (A) - A

3. ਆ (Aa) - Aa

4. ਇ (I) - I

5. ਈ (Ii) - Ii

6. ਉ (U) - U

7. ਊ (Uu) - Uu

8. ਏ (E) - E

9. ਐ (Ai) - Ai

10. ਓ (O) - O

11. ਔ (Au) - Au


Consonants (ਵਿਅੰਜਨ)

1. ਕ (K) - K

2. ਖ (Kh) - Kh

3. ਗ (G) - G

4. ਘ (Gh) - Gh

5. ਙ (Ng) - Ng

6. ਚ (Ch) - Ch

7. ਛ (Chh) - Chh

8. ਜ (J) - J

9. ਝ (Jh) - Jh

10. ਞ (N) - N

11. ਟ (T) - T

12. ਠ (Th) - Th

13. ਡ (D) - D

14. ਢ (Dh) - Dh

15. ਣ (N) - N

16. ਤ (T) - T

17. ਥ (Th) - Th

18. ਦ (D) - D

19. ਧ (Dh) - Dh

20. ਨ (N) - N

21. ਪ (P) - P

22. ਫ (Ph) - Ph

23. ਬ (B) - B

24. ਭ (Bh) - Bh

25. ਮ (M) - M

26. ਯ (Y) - Y

27. ਰ (R) - R

28. ਲ (L) - L

29. ਵ (V) - V

30. ੜ (R) - R ( retroflex R)

31. ਸ (S) - S

32. ਹ (H) - H

33. ਼ (ੜ) - (special nasal sound)

34. ਾ (Aa) - (vowel modifier)

35. ਿ (I) - (vowel modifier)

36. ੀ (Ii) - (vowel modifier)

37. ੁ (U) - (vowel modifier)

38. ੂ (Uu) - (vowel modifier)

39. ੇ (E) - (vowel modifier)

40. ੈ (Ai) - (vowel modifier)

41. ੋ (O) - (vowel modifier)

42. ੌ (Au) - (vowel modifier)

43. ੳ (special sound)

44. ੴ (special sound)


Note: The Gurmukhi script is used to write the Punjabi language.

Sample science question paper for grade 10

 Here's a sample science question paper for grade 10:


*Section A: Multiple Choice Questions*


1. What is the process by which plants convert sunlight into energy?

a) Respiration

b) Photosynthesis

c) Decomposition

d) Fermentation


2. Which of the following is a characteristic of a living organism?

a) Ability to conduct electricity

b) Ability to respond to stimuli

c) Ability to dissolve in water

d) Ability to rust


3. What is the largest planet in our solar system?

a) Earth

b) Saturn

c) Jupiter

d) Uranus


4. Which of the following types of rocks is formed from the cooling and solidification of magma?

a) Sedimentary

b) Igneous

c) Metamorphic

d) Foliated


5. What is the process by which water moves through a plant, from the roots to the leaves?

a) Respiration

b) Transpiration

c) Photosynthesis

d) Evaporation


*Section B: Short Answer Questions*


1. Describe the structure of a cell. (5 marks)

2. Explain the concept of natural selection. (5 marks)

3. What are the main differences between a producer and a consumer in an ecosystem? (5 marks)


*Section C: Long Answer Questions*


1. Describe the process of photosynthesis, including the reactants, products, and energy transformations involved. (10 marks)

2. Explain the concept of plate tectonics, including the different types of plate boundaries and the processes that occur at each. (10 marks)


*Section D: Practical Questions*


1. Describe an experiment to demonstrate the process of osmosis. (10 marks)

2. Draw a diagram of the human eye, labeling the different parts and describing their functions. (10 marks)


Note: The marks allocated to each question are indicative and may vary depending on the specific examination or assessment.





*******************************************************




Here are the answers to the sample science question paper:


*Section A: Multiple Choice Questions*


1. What is the process by which plants convert sunlight into energy?

Answer: b) Photosynthesis


2. Which of the following is a characteristic of a living organism?

Answer: b) Ability to respond to stimuli


3. What is the largest planet in our solar system?

Answer: c) Jupiter


4. Which of the following types of rocks is formed from the cooling and solidification of magma?

Answer: b) Igneous


5. What is the process by which water moves through a plant, from the roots to the leaves?

Answer: b) Transpiration


*Section B: Short Answer Questions*


1. Describe the structure of a cell.

Answer: A cell is the basic structural and functional unit of living organisms. It consists of a cell membrane, cytoplasm, and genetic material (DNA or RNA). The cell membrane is a semi-permeable membrane that surrounds the cell and regulates the movement of materials in and out. The cytoplasm is the jelly-like substance inside the cell membrane where many metabolic processes take place. The genetic material contains the instructions for the cell's growth, development, and function.


2. Explain the concept of natural selection.

Answer: Natural selection is the process by which populations of living organisms adapt and evolve over time in response to environmental pressures. It is based on the idea that individuals with certain traits or characteristics that are better suited to their environment are more likely to survive and reproduce, passing those traits on to their offspring.


3. What are the main differences between a producer and a consumer in an ecosystem?

Answer: Producers (such as plants and algae) are organisms that produce their own food through photosynthesis or other processes. Consumers (such as animals and fungi) are organisms that obtain their food by consuming other organisms or organic matter. Producers form the base of the food web, while consumers rely on producers for their energy and nutrients.


*Section C: Long Answer Questions*


1. Describe the process of photosynthesis, including the reactants, products, and energy transformations involved.

Answer: Photosynthesis is the process by which plants, algae, and some bacteria convert light energy from the sun into chemical energy in the form of glucose. The reactants are carbon dioxide, water, and light energy. The products are glucose and oxygen. The energy transformations involved are the conversion of light energy into chemical energy, and the conversion of carbon dioxide and water into glucose and oxygen.


2. Explain the concept of plate tectonics, including the different types of plate boundaries and the processes that occur at each.

Answer: Plate tectonics is the theory that the Earth's lithosphere is broken up into large plates that move relative to each other. There are three main types of plate boundaries: divergent, convergent, and transform. At divergent boundaries, plates move apart and new crust is formed through volcanic activity. At convergent boundaries, plates collide and the Earth's crust is compressed, resulting in mountain building or volcanic activity. At transform boundaries, plates slide past each other horizontally, resulting in earthquakes.


*Section D: Practical Questions*


1. Describe an experiment to demonstrate the process of osmosis.

Answer: One way to demonstrate osmosis is to place a raisin in a glass of water and observe what happens over time. The raisin will absorb water through its skin and swell up, demonstrating the process of osmosis. This experiment can be modified by using different concentrations of sugar or salt solutions to observe the effects of osmosis on the raisin.


2. Draw a diagram of the human eye, labeling the different parts and describing their functions.

Answer: A diagram of the human eye should include the following parts: cornea, iris, pupil, lens, retina, macula, optic nerve, and vitreous humor. The cornea is the transparent outer layer of the eye. The iris is the colored part of the eye that controls the amount of light entering the eye. The pupil is the opening in the center of the iris that allows light to enter the eye. The lens is a clear, flexible structure behind the iris that changes shape to focus light on the retina. The retina is the innermost layer of the eye that contains specialized light-sensitive cells called photoreceptors. The macula is a small, specialized area at the center of the retina responsible for central vision. The optic nerve is the nerve that carries visual information from the eye to the brain. The vitreous humor is the clear, gel-like substance that fills the space between the lens and the retina.

Java program for a hospital management system

 Here's a simple Java program for a hospital management system:


```

import java.util.ArrayList;

import java.util.Scanner;


class Patient {

    private String name;

    private int age;

    private String disease;

    private String doctor;


    public Patient(String name, int age, String disease, String doctor) {

        this.name = name;

        this.age = age;

        this.disease = disease;

        this.doctor = doctor;

    }


    public String getName() {

        return name;

    }


    public int getAge() {

        return age;

    }


    public String getDisease() {

        return disease;

    }


    public String getDoctor() {

        return doctor;

    }

}


class Doctor {

    private String name;

    private String specialization;


    public Doctor(String name, String specialization) {

        this.name = name;

        this.specialization = specialization;

    }


    public String getName() {

        return name;

    }


    public String getSpecialization() {

        return specialization;

    }

}


public class HospitalManagement {

    private ArrayList<Patient> patients;

    private ArrayList<Doctor> doctors;

    private Scanner scanner;


    public HospitalManagement() {

        patients = new ArrayList<>();

        doctors = new ArrayList<>();

        scanner = new Scanner(System.in);

    }


    public void addPatient() {

        System.out.print("Enter patient name: ");

        String name = scanner.nextLine();

        System.out.print("Enter patient age: ");

        int age = scanner.nextInt();

        scanner.nextLine(); // Consume newline left-over

        System.out.print("Enter patient disease: ");

        String disease = scanner.nextLine();

        System.out.print("Enter doctor's name: ");

        String doctorName = scanner.nextLine();

        patients.add(new Patient(name, age, disease, doctorName));

    }


    public void addDoctor() {

        System.out.print("Enter doctor's name: ");

        String name = scanner.nextLine();

        System.out.print("Enter doctor's specialization: ");

        String specialization = scanner.nextLine();

        doctors.add(new Doctor(name, specialization));

    }


    public void displayPatients() {

        System.out.println("\nPatient List:");

        for (Patient patient : patients) {

            System.out.println("Name: " + patient.getName());

            System.out.println("Age: " + patient.getAge());

            System.out.println("Disease: " + patient.getDisease());

            System.out.println("Doctor: " + patient.getDoctor());

            System.out.println();

        }

    }


    public void displayDoctors() {

        System.out.println("\nDoctor List:");

        for (Doctor doctor : doctors) {

            System.out.println("Name: " + doctor.getName());

            System.out.println("Specialization: " + doctor.getSpecialization());

            System.out.println();

        }

    }


    public void run() {

        while (true) {

            System.out.println("\nHospital Management System");

            System.out.println("1. Add Patient");

            System.out.println("2. Add Doctor");

            System.out.println("3. Display Patients");

            System.out.println("4. Display Doctors");

            System.out.println("5. Exit");

            System.out.print("Enter your choice: ");

            int choice = scanner.nextInt();

            scanner.nextLine(); // Consume newline left-over

            switch (choice) {

                case 1:

                    addPatient();

                    break;

                case 2:

                    addDoctor();

                    break;

                case 3:

                    displayPatients();

                    break;

                case 4:

                    displayDoctors();

                    break;

                case 5:

                    System.exit(0);

                    break;

                default:

                    System.out.println("Invalid choice. Please try again.");

            }

        }

    }


    public static void main(String[] args) {

        HospitalManagement management = new HospitalManagement();

        management.run();

    }

}

```


*Example Output:*

```

Hospital Management System

1. Add Patient

2. Add Doctor

3. Display Patients

4. Display Doctors

5. Exit

Enter your choice: 1


Enter patient name: John Doe

Enter patient age: 30

Enter patient disease: Flu

Enter doctor's name: Dr. Smith


Hospital Management System

1. Add Patient

2. Add Doctor

3. Display Patients

4. Display Doctors

5. Exit

Enter your choice: 3


Patient List:

Name: John Doe

Age: 30

Disease: Flu

Doctor: Dr. Smith

```


This program defines three classes: `Patient`, `Doctor`, and `HospitalManagement`. The `Patient` class has private member variables for patient details and public methods for accessing those details. The `Doctor` class has private member variables for doctor details and public methods for accessing those details. The `HospitalManagement` class has private member variables for patient and doctor lists, as well as public methods for adding patients and doctors,

C++ program for a medical shop

 Here's a simple C++ program for a medical shop:



#include <iostream>

#include <string>

using namespace std;


class Medicine {

private:

    string name;

    double price;

    int quantity;


public:

    void inputDetails() {

        cout << "Enter medicine name: ";

        cin.ignore();

        getline(cin, name);

        cout << "Enter medicine price: ";

        cin >> price;

        cout << "Enter medicine quantity: ";

        cin >> quantity;

    }


    void displayDetails() {

        cout << "\nMedicine Details\n";

        cout << "Name: " << name << endl;

        cout << "Price: $" << price << endl;

        cout << "Quantity: " << quantity << endl;

    }


    double calculateTotalPrice(int qty) {

        return price * qty;

    }


    void updateQuantity(int qty) {

        quantity -= qty;

    }

};


class MedicalShop {

private:

    string shopName;

    string address;

    Medicine medicines[10];

    int numberOfMedicines;


public:

    void inputShopDetails() {

        cout << "Enter shop name: ";

        cin.ignore();

        getline(cin, shopName);

        cout << "Enter shop address: ";

        getline(cin, address);

    }


    void addMedicine() {

        medicines[numberOfMedicines].inputDetails();

        numberOfMedicines++;

    }


    void displayMedicineDetails() {

        for (int i = 0; i < numberOfMedicines; i++) {

            medicines[i].displayDetails();

        }

    }


    void sellMedicine() {

        string medicineName;

        int quantity;

        cout << "Enter medicine name: ";

        cin.ignore();

        getline(cin, medicineName);

        cout << "Enter quantity to sell: ";

        cin >> quantity;

        for (int i = 0; i < numberOfMedicines; i++) {

            if (medicines[i].name == medicineName) {

                if (medicines[i].quantity >= quantity) {

                    double totalPrice = medicines[i].calculateTotalPrice(quantity);

                    medicines[i].updateQuantity(quantity);

                    cout << "Total price: $" << totalPrice << endl;

                } else {

                    cout << "Insufficient quantity." << endl;

                }

                return;

            }

        }

        cout << "Medicine not found." << endl;

    }


    void displayShopDetails() {

        cout << "\nShop Details\n";

        cout << "Name: " << shopName << endl;

        cout << "Address: " << address << endl;

    }

};


int main() {

    MedicalShop shop;

    int choice;

    shop.numberOfMedicines = 0;

    shop.inputShopDetails();

    while (true) {

        cout << "\nMedical Shop Management System\n";

        cout << "1. Add medicine\n";

        cout << "2. Display medicine details\n";

        cout << "3. Sell medicine\n";

        cout << "4. Display shop details\n";

        cout << "5. Exit\n";

        cout << "Enter your choice: ";

        cin >> choice;

        switch (choice) {

            case 1:

                shop.addMedicine();

                break;

            case 2:

                shop.displayMedicineDetails();

                break;

            case 3:

                shop.sellMedicine();

                break;

            case 4:

                shop.displayShopDetails();

                break;

            case 5:

                return 0;

            default:

                cout << "Invalid choice. Please try again.\n";

        }

    }

    return 0;

}


*Example Output:*


Enter shop name: Medical Shop

Enter shop address: 123 Main St


Medical Shop Management System

1. Add medicine

2. Display medicine details

3. Sell medicine

4. Display shop details

5. Exit

Enter your choice: 1


Enter medicine name: Paracetamol

Enter medicine price: 10

Enter medicine quantity: 100


Medical Shop Management System

1. Add medicine

2. Display medicine details

3. Sell medicine

4. Display shop details

5. Exit

Enter your choice: 3


Enter medicine name: Paracetamol

Enter quantity to sell: 5


Total price: $50


Medical Shop Management System

1. Add medicine

2. Display medicine details

3. Sell medicine

4. Display shop details

5. Exit

Enter your choice: 4


Shop Details

Name: Medical Shop

Address: 123 Main St



This program defines two classes: `Medicine` and `MedicalShop`. The `Medicine` class has private member variables for medicine details and public methods for inputting details, displaying details, calculating the total price, and updating the quantity. The `MedicalShop` class has private member variables for shop details and medicine data, as well as public methods for inputting shop

Program to develop for cost saving in hotel industry

 To develop a program for cost-saving in a hotel, you can consider the following features: Key Features 1. *Room Management*: Optimize room ...