Define W = x y : xy ≥ 0 . Decide if V is a vector space or notand prove your claim. (Hint: V is the union of the first and third quadrants in the xyplane)
Define W =
x
y
: xy ≥ 0
. Decide if V is a vector space or notand prove
your claim. (Hint: V is the union of the first and third quadrants in the xyplane)
Create two classes named Mammals and MarineAnimals. Create another class named BlueWhale
which inherits both the above classes. Now, create a function in each of these classes which prints
"I am mammal", "I am a marine animal" and "I belong to both the categories: Mammals as well as
Marine Animals" respectively. Now, create an object for each of the above class and try calling
function of Mammals by the object of Mammal
function of BlueWhale by the object of BlueWhale
function of each of its parent by the object of BlueWhale
function of MarineAnimal by the object of MarineAnimal
Create a class named Shape with a function that prints "This is a shape". Create another class named Polygon inheriting the Shape class with the same function that prints "Polygon is a shape". Create two other classes named Rectangle and Triangle having the same function which prints "Rectangle is a polygon" and "Triangle is a polygon" respectively. Again, make another class named Square having the same function which prints "Square is a rectangle".
Now, try calling the function by the object of each of these classes.
. Define V =
x
y
: x, y ≥ 0
. Decide if V is a vector space or not and prove
your claim. (Hint: V is the first quadrant in the xy-plane).
We want to calculate the total marks of each student of a class in Physics, Chemistry and Mathematics and the average marks of the class. The number of students in the class are entered by the user. Create a class named Marks with data members for roll number, name and marks. Create three other classes inheriting the Marks class, namely Physics, Chemistry and Mathematics, which are used to define marks in individual subject of each student. Roll number of each student will be generated automatically.
A population consists of the five measurements 2, 6, 8, 0, and 1.
1. What is the mean and the standard deviation of the population?
Write a Python program to convert temperatures to and from celsius, fahrenheit.
[ Formula : c/5 = f-32/9 [ where c = temperature in celsius and f = temperature in fahrenheit ]
Expected Output :
60°C is 140 in Fahrenheit
45°F is 7 in Celsius
Write a Python program to convert temperatures to and from celsius,
Let G be the group of integers under the operation of addition,
and let H = {3k | k ∈ Z}. Is H a subgroup of G