Minor Project

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

1.

Compute the simple interest using the formula interest = p * n * r / 100


where p is principal, n is tenure of loan, and r is rate of interest. Accept
p, n, r from users and then perform the interest calculation.

2. Accept 5 string values from user and store them as part of tuple. Print
the elements of tuple with their indices.

3. Create a Data Frame by passing a NumPy array, with a Date Time index
and labelled columns.
4. Create a one-dimensional array filled with random numbers. Write a
function that prints out the maximum and minimum values from the
array.
5. Write a function that accepts a one-dimensional array as input and
another number. The function should return the array containing all
the elements which are greater than the number given as input to the
function. Explore the functions in built-in module calendar.

6. Write a program that asks user to enter the 5 product names and
prices. Store all of these in a dictionary with keys are product names
and prices are values. Then allow the user to input the product name
and print the corresponding price of the product.

You might also like