Python

Calculate year-wise total number of runs of Sachin

Calculate year-wise total number of runs of Sachin OneDayInternational.csv is a csv file containing about 200 records on Sachin’s ODIs from 1990 to 1998. Read this CSV file using DictReader() and calculate year-wise total number of runs of Sachin. Display the same in the following format:  1990 2391991 417 ……. Code :-

Filter countries Sachin has played against

Filter countries Sachin has played against OneDayInternational.csv is a csv file containing nearly 200 records on Sachin’s ODIs from 1990 to 1998.  Read this CSV file using DictReader() and filter the countries he has played against, order them alphabetically and display ! Here is the sample of first 2 records from OneDayInternational.csv Country    Player …

Read CSV file

Read CSV file Sachin R Tendulkar made his ODI debut in 1989. OneDayInternational.csv is a CSV file containing about 200 records on Sachin’s ODIs from 1990 to 1998.  Read this CSV file using DictReader() and display the contents in the first 10 rows. Here is the sample of first 2 records from OneDayInternational.csv Country Player…

Store Student Data

Store Student Data Wood Crust International School conducts a talent search test for the middle schools students.  The management wants to store students’ names and their scores in the test in a file for their future references.  You are asked to write a Python program to read names and scores of the participants and to…

Faculties and Students

Faculties and Students Details of the Faculty & students to be maintained by a college for easy access. Develop a program to store the information.Create a base class named Person with instance member’s(name,age,dept) and a constructor to initialize the data member’sCreate a base class named Student with instance member(sid) and a constructor to initialize the data memberCreate a base…

Classic Curve Members

Classic Curve Members Classic Curves is a one of the famous garment stores. They provide membership to their customers. So they want to create an application to store the customer details as well as the details of their Gold and Diamond members. Classic Curves provides a discount or cashback for every payment made by the…

Maintain Project Information

Maintain Project Information A Company need to maintain the details of their projects for easy access. Develop a program to store the information. Create a base class named Project with instance member’s(project_id,project_name) and a constructor to initialize the data member’sCreate a dervied class Module with instance member(module_name) and a constructor to initialize the data member, which inherits the Project…

Student Information

Student Information Implement the concept of single inheritance using python.  Create a base class named Person with instance member’s (name and age) and a constructor to initialize the data member’s Create a derived class named Student with instance member’s (regno and percentage) and a constructor to initialize the data member’s , which inherits the Person class, and holds all the properties of…

Savings Bank Account

Savings Bank Account Details of the customer’s savings account and saving account need to be maintained by a private bank for easy access. Develop a program to store the information. Create a base class named Account with instance member’s(accountNumber,holderName,balance) and a constructor to initialize the data member’s Create a dervied class SavingAccount with instance member(availableBalance), which inherits the Account…

Vehicle Premium

Vehicle Premium Create a class called ‘Vehicle’ with 3 private instance variables: ‘cost’, ‘type’ and ‘premium’ where cost is the cost of the vehicle, type is the type of the vehicle and ‘premium’ is the premium amount to be calculated for the vehicle.   Vehicle type values can be 1, 2 or 3 where:  1 – for…