Question No. 4 (Write code) For an e-Shop, there is a Customer whose data is stored in a file ‘Customers.txt’, where ID, Name, Phone, Address, Email and AmountBalance. When the customer buys a product...



Question No. 4 (Write code)
For an e-Shop, there is a Customer whose data is stored in a file ‘Customers.txt’, where ID, Name, Phone, Address, Email and AmountBalance. When the customer buys a product and pays from his AmountBalance, the system checks his balance and deducts if enough amount is there. Otherwise the customer receives a message “You don’t have sufficient Balance in your wallet”.



  • Create a data frame named as
    data
    that has same data as ‘Customers.txt’ from Q-1.

  • Create csv to store the data frame from Q-4 a)

  • Print customer’s name from Q-4 a) data frame using label and position

  • Open csv from Q-4 b) and update a new record in it

  • Open csv from Q-4 b) and drop a record from it





Jun 04, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here