How it is easy to implement and add interchangeable components using interface? Explain with example
Create a class Point, which defines a point on the coordinate plane. Implement a count of the number of created instances of type Point
The Pet class should also have the following methods:
2. Write a test class to test your Pet class. Make sure you have three different types of pets. (three Pet objects)
How it is easy to implement and add interchangeable components using interface? Explain with example
In a coal-fired power plant, operating on Carnot Cycle, it is possible to set any value for the
temperature of boiler in which heat is added to water at high temperature (T) and any value for
the temperature of condenser in which heat is rejected from steam at low temperature (TO), from
the following temperature list
T - [500 320 1000 775 385 670 845 1245 410 300 627 514)ⓇK
Being an operator of power plant you have to select T and Te from the above temperature list so
that power plant operates at its highest efficiency
Write a generalized MATLAB program to select two temperature values Th, and Te for above
condition, without using min and max built-in function
Print the maximum efficiency of cycle and the temperatures at which it occurs.
The type of computing based on pay per used model is known as?
Select one:
a. Utility computing
b. Super computing
c. Mini computing
d. Mini computing
Implement a C++ program to define function named as ext, to extract the digits that located at even and odd position of five digit number and show the result.
Runtime Input :
00156
Output :
016
05
Which of the following offer applications that are cost-effective and does not require any maintenance on the end-user side?
Select one:
a. PaaS
b. SaaS
c. IaaS
d. HaaS
When discussing on-premise, which of these is a wrong statement?
Select one:
a. An on-Premise IT resource does not need a network
b. An on-premise IT resource can access and interact with a cloud-based IT resource.
c. An on-premise IT resource can be moved to a cloud, thereby changing it to a cloud-based IT resource.
d. Redundant deployments of an IT resource can exist in both on-premise and cloud-based environments.
Write a program in python that prompts the user to input the x-y coordinate of a point in a Cartesian plane. The program should then output a message indicating whether the point is the origin, is located on the x- (or y-) axis, or appears in a particular quadrant.
Samples of expected output:
Enter x and y coordinates: 0 0
(0, 0) is the origin
Enter x and y coordinates: 4 0
(4, 0) is on the x-axis
Enter x and y coordinates: 0 -3
(0, -3) is on the y-axis
Enter x and y coordinates: -2 3
(-2, 3) is in the second quadrant
Enter x and y coordinates: 1 -4
(-2, 3) is in the fourth quadrant