Interview preparation

Python Program to accept numbers from the user and Find the maximum and minimum element

Python Program to accept numbers and Find the maximum and minimum element of the numbers entered by the user Problem Definition: Write a Python Program to accept numbers from the user until the user enters done. Find the maximum and minimum element of the numbers entered by the user. Use class and methods concepts. Program …

Python Program to accept numbers from the user and Find the maximum and minimum element Read More »

Python Program using classes and objects to deposit and withdraw money in a Bank Account

Python Program using classes and objects to deposit and withdraw money in a Bank Account Problem Definition: Write a Python program using classes and objects to deposit and withdraw money in a Bank Account. This is just a demonstration program. Source code of Python Program using classes and objects to deposit and withdraw money in …

Python Program using classes and objects to deposit and withdraw money in a Bank Account Read More »

Python program that stores the student name, roll number, and marks in three subjects

Python program that stores the student name, roll number, and marks in three subjects Problem Definition: Write a Python program that has a class named Student that stores the student name, roll number, and marks in three subjects. Display the student information (Roll No, Name and Total Marks scored) Source code for Python program that …

Python program that stores the student name, roll number, and marks in three subjects Read More »

Python program to find the area and perimeter of a rectangle

Python program to find the area and perimeter of a rectangle Problem Definition: Write a python program that has class named Rectangle with attributes length and beadth and two methods area and perimeter they return area and perimeter respectively. Program source code for Python program to find the area and perimeter of a rectangle class …

Python program to find the area and perimeter of a rectangle Read More »

Python program to keep track of the number of employees in an organization

Python program to keep track of the number of employees in an organization Problem Description: Write a python program to keep track of the number of employees in an organization and also store and display their name, designation, and salary details. Program Description: As said in the problem definition, first create a class named Employee. …

Python program to keep track of the number of employees in an organization Read More »

Python program to store and display the student name and marks of a student

Python program to store and display the student name and marks of a student Problem Definition: Write a python program to store and display the student name and marks of a student. Use the list to store the marks of a student in three subjects. Program Description: As said in the problem definition, first create …

Python program to store and display the student name and marks of a student Read More »

Series Pattern Program for (1^1)/1 + (2^2)/2 + (3^3)/3 + (4^4)/4 + … + (n^n)/n

Series Pattern Program for (1^1)/1 + (2^2)/2 + (3^3)/3 + (4^4)/4 + … + (n^n)/n in Python, C, C++ and Java This article discusses, how to write a prorgram to solve Series Pattern Program for (1^1)/1 + (2^2)/2 + (3^3)/3 + (4^4)/4 + … + (n^n)/n series in python, C, C++ and Java. Problem Definition …

Series Pattern Program for (1^1)/1 + (2^2)/2 + (3^3)/3 + (4^4)/4 + … + (n^n)/n Read More »

Series Pattern Program for (1*1) + (2*2) + (3*3) + (4*4) + (5*5) + … + (n*n)

Series Pattern Program for (1*1) + (2*2) + (3*3) + (4*4) + (5*5) + … + (n*n) in Python, C, C++ and Java This article discusses, how to write a prorgram to solve Series Pattern Program for (1*1) + (2*2) + (3*3) + (4*4) + (5*5) + … + (n*n) series in python, C, C++ …

Series Pattern Program for (1*1) + (2*2) + (3*3) + (4*4) + (5*5) + … + (n*n) Read More »