An educational institution wishes to maintain a database of its employees. The database is divided into a number of classes whose hierarchical relationships are shown in the below figure. The figure also shows the minimum information required for each class. Specify all the classes and define methods to create a database and retrieve individual information as and when required
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.
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.
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,
Write a java program to print all natural numbers from 1 to n - using while loop
Write a function called fizz_buzz that takes a number.
If the number is divisible by 3, it should return “Fizz”.
If it is divisible by 5, it should return “Buzz”.
If it is divisible by both 3 and 5, it should return “FizzBuzz”.
Otherwise, it should return the same number.
Write C++ program by using while loop to display the following output
+---------+
| * |
| /*\ |
| //*\\ |
| ///*\\\ |
| \\\*/// |
| \\// |
| \*/ |
| * |
+---------+
| \\\*/// |
| \\// |
| \*/ |
| * |
| * |
| * |
| /*\ |
| //*\\ |
| ///*\\\ |
+---------+
Capital and Country
The goal of this coding exam is to quickly get you off the ground with HTML select element
Reference image:(final output)
https://assets.ccbp.in/frontend/content/dynamic-webapps/capital-and-country-op.gif
Test cases:
1.page should consist only one HTML span element with a non-empty text content
2.page should consist only one HTML paragraph element
3.page should consist of selected as HTML attribute for the HTML option element
4.JS code implementation should use addEventListenter with event as change
5.when the value of the HTML select element is changed ,then the text content in the HTML paragraph element should be the selected country name
6.page should consist only one main heading element
7.page should consist of HTML select element
8.page should consist of four HTML option elements with attribute as value.
pass the above all test cases....
5 case is not executed please help me