Skip to main content

Posts

Write a Program to perform the basic operations like insert, delete, display and search in a list. List contains String object items where these operations are to be performed.

 Operations on String List Write a Program to perform the basic operations like insert, delete, display and search in a list. List contains String object items where these operations are to be performed. Sample Input and Output:  1. Insert  2. Search  3. Delete  4. Display  5. Exit  Enter your choice: 1  Enter the item to be inserted:  Bottle  Inserted successfully  1. Insert  2. Search  3. Delete  4. Display  5. Exit  Enter your choice: 1  Enter the item to be inserted: Water  Inserted successfully  1. Insert  2. Search  3. Delete  4. Display  5. Exit  Enter your choice: 1  Enter the item to be inserted: Cap  Inserted successfully  1. Insert  2. Search  3. Delete  4. Display  5. Exit  Enter your choice: 1  Enter the item to be inserted: Monitor  Inserted successfully  1. Insert  2. Search  3. Delete...

Benefits and Drawback of Being Alone!

 BENEFITS and DRAWBACK of BEING ALONE! Its been almost a month for me to live on my own. I am here writing my thoughts and things I have seen these couple of weeks not everything but I'll try to keep it subtle. I have some friends here and at least I think that. There are some pros and cons of everything. BENEFITS OF LIVING ALONE 1. Personal alone time:- Most of us find this hard in our daily life. But it gets easier when you live alone. In this time, you can do anything you like reading a book, exercising, meditation or anything you like. Slowly, you will learn about the things and habits you like and the things you don't like. 2. Getting active, not lazy:-   When we are at home we build a habit not to work and it becomes harder to do daily works even for ourselves. Here you can cook on your own, make the bed and most importantly clean. Because you know that no one is going to do that for you. 3. Managing your expenses:- I belong to a middle-class family and they have set a b...

Utkarsh and Placement tests Codechef solution in Java, C++ || UTKPLC || December long challenge 2021

 Utkarsh and Placement tests Codechef solution in Java, C++ Note: Hope it helps you! Please note that all the intentions are to clear the doubt of how to solve it in java. So, please try to give it a chance at least before using this. If you face any discrepancy please contact us. Thank you! Utkarsh is currently sitting for placements. He has applied to three companies named  A , B,    and  C . You know Utkarsh's order of preference among these  3 3  companies, given to you as characters  first ,  second , and  third  respectively (where  first  is the company he prefers most). You also know that Utkarsh has received offers from exactly two of these three companies, given you as characters  x x  and  y y . Utkarsh will always accept the offer from whichever company is highest on his preference list. Which company will he join? Input Format The first line of input contains a single integer  T T , denotin...