ipl-logo

Pt1420 Unit 6 Assignment

424 Words2 Pages
1. Computer a program to write a function power() to raise a number m to a power n. The function power() will take a float value for m and n will be an integer value. a default value of 2 to be used to make the function for calculating the squares in case this argument is omitted. The main function has to be written that takes the value for both m and n as input from the user for testing this function.
The same function should be working when m takes the value for integer as well.

2. Create a file which contains the list of shopping details of the customer who has ordered. The list will include the code number, price etc of each item. Perform operations like adding new item to the file, deleting item from the file and printing the total

More about Pt1420 Unit 6 Assignment

Open Document