LAB 2 - VyshnaviPerla/PYTHON GitHub Wiki

LAB ASSIGNMENT – 2

AUTHOR : LAKSHMI VYSHNAVI PERLA

OBJECTIVE : Usage of classes, dictionaries and inheritance concepts in the following programs.

FEATURES:

  • Dictionary of books in UMKC store
  • Operations on contact list in any mobile
  • create a management system
  • create a random vector with a size of 15.

CONFIGURATION :

  • Version: Python 3.6.4
  • Software: PYCHARM Software

INPUT/OUTPUT SCREENSHOTS:

1.Consider a shop UMKC with dictionary of all book items with their prices. Write a program to find the books from the dictionary in the range given by user.

  • Different types of books are given with cost values
  • User gives a range of cost for the books
  • List of books within that range are displayed
  1. With any given number n,
  • In any mobile , there is contact list. Create a list of contacts and then prompt the user to do the
  • following:
  • Display contact by name
  • Display contact by number
  • Edit contact by name
  • Exit
  1. Hotel Reservation System (classes for Room,Occupants,Employee etc.)

  2. Using Numpy create random vector of size 15 having only Integers in the range 0 -20. Write a program to find the most frequent item/value in the vector list.

IMPLEMENTATION WITH CODE SNIPPET:

TASK 1:

TASK 2:

TASK 3:

TASK 4:

DEPLOYMENT:

TASK 1:

TASK 2:

TASK 3:

TASK 4:

LIMITATIONS: FLOAT VALUES ARE NOT TAKEN IN TRIPLET WITH SUM OF ZERO PROGRAM.

REFERENCES: STACK OVERFLOW,GEEKFORGEEKS.