Create a class named 'Rectangle' with two data members- length and
breadth and a function to calculate the area which is 'length*breadth'. The
class has three constructors which are :
1 - having no parameter - values of both length and breadth are assigned
zero.
2 - having two numbers as parameters - the two numbers are assigned as
length and breadth respectively.
3 - having one number as parameter - both length and breadth are
assigned that number.
Now, create objects of the 'Rectangle' class having none, one and two
parameters and print their areas.
Calculate z^6=64
Error control and Flow control is critical in effective frame transfer in a data link layer. Discuss the types of errors in detail and suggest suitable solutions for the same
Oxidizing agent is oxidized by reducing agnet ?true or false
Representatives
The principal of a school wants to speak with some of the students to as the overall development including studies. Mont of the teachers were selecting the toppers of their classes but Mr. Sam thought of an idea to select the bunch of students who did not have much difference in their marks so that he gains the reputation of a teacher who teaches well to the whole class and not just to a bunch of brilliant students.You are required to help Mr Sam in selecting K students that can speak with the principal from his class. You need to return an integer array representing the marks of the selected students sorted in ascending order.
Output Specification:
Return an integer array containing the marks of K selected students sorted in ascending order
Example 1:
input1: 10
input2: {950,477, 55, 602,881,302,859,438,551,382}
input3: 1
Output: {950}
A sender needs to send the two data items 110001 and 100110, find the checksum at sender and receiver to check if there is any error or not?
An organization is granted a block of addresses with the beginning address 70.10.27.0/28. The organization needs to have 3 subblocks of addresses to use in its three subnets: Use VLSM. Design the network and plot it completely with respective subnets, IP range, Network IDs .
A pumps lifts water from a lake to a large tank 20 m above the lake. How much work against gravity does the pump do as it transfers 5.0m^3 of water to the tank? One cubic meter of water has a mass of 1000 kg.
A 0.25-hp motor is used to lift a load at the rate of 5.0 cm/s. How great a load can it lift at this constant speed ?
A 200-kg car is pushed slowly up an incline. How much work does the pushing force do in moving the cart up to a platform 1.5m above the starting point if friction is negligible?