Computer Science Of Engineering

Simple and practical computer science tutorials, programming guides, and engineering concepts for students and beginners.

Breaking

Showing posts with label DATA STRUCTURES. Show all posts
Showing posts with label DATA STRUCTURES. Show all posts

Wednesday, December 24, 2025

Tuesday, December 23, 2025

Quick Sort - Python

December 23, 2025
 def quick_sort_simple(arr):     if len(arr) <= 1:         return arr  # Base case: a list with 0 or 1 element is already sorted     else...

Python - Develop an inheritance hierarchy based upon a Polygon class that has abstract methods area( ) and perimeter( ). Implement classes Triangle, Quadrilateral, Pentagon, that extend this base class, with the obvious meanings for the area( ) and perimeter( ) methods. Write a simple program that allows users to create polygons of the various types and input their geometric dimensions, and the program then outputs their area and perimeter.

December 23, 2025
 Develop an inheritance hierarchy based upon a Polygon class that has abstract methods area( ) and perimeter( ). Implement classes Triangle,...

Write a Python program for class, Flower, that has three instance variables of type str, int, and float that respectively represent the name of the flower, its number of petals, and its price. Your class must include a constructor method that initializes each variable to an appropriate value, and your class should include methods for setting the value of each type, and retrieving the value of each type.

December 23, 2025
 Write a Python program for class, Flower, that has three instance variables of type str, int, and float that respectively represent the nam...

Monday, June 16, 2025

Saturday, May 3, 2025