Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

a) You have sub-netted your class C network 192.168.1.0/?? with a subnet mask of 255.255.255.240. Please list the following: number of networks, number of hosts per network, the full range of the first three networks, and the usable address range from those first three networks. Additionally, identify the broadcast addresses for each network.


Design an Employee class for reading and displaying employee information, the getInfo() and displayInfo() methods will be used respectively. Where getInfo() will be a private method. Used the Concept of Encapsulation to hide the data members, Employee Consist four data members. 



  Write a program using class ‘Math’ pass three values as arguments to the constructor of the class and initialize these values to data members x,y and z of the class. The class should have following member functions.

·        maximum       : return maximum number 

·        minimum        : return minimum number

·        sum                : return the sum of three numbers



  Write a program using class ‘Rectangle’ to compute the area and perimeter of rectangle. The Class rectangle should have the following members:

·        Two data members’ length and width.

·        One member function ‘setData’ to assign values to data members ‘length’ & ‘width’. It should also verify that length and width between 0.0 and 25.0 

·        One member function ‘area’ to compute and print the area of rectangle.

Area =length * width

·        One member function ‘perimeter’ to compute and print the perimeter of rectangle.

Perimeter =2*(length * width)



Write a program using class ‘FindEnergy’ to compute the Potential Energy and kinetic Energy of an object. The class FindEnergy should have following members.

• Four data members mass, height, velocity and gravity (9.8m/s2) take gravity as Constant.

• One member function ‘setInputData’ to assign values to data members.

• One member function ‘potentialEnergy’ to compute. And return the Potential Energy.

HINT: P.E=mgh

• One member function ‘kineticEnergy’ to compute. And return the Kinetic Energy.

HINT: K.E=1/2 mv2


Videocon gives a hike in the salaries for its employees based on the number of TVs sold by the employees in the financial year. Vishnu wants to know his new salary. Following are the requirements to solve the problem

a) If the No’s of TV’s sold is less than 5000, then the hike is 5%

b) If the No’s of TV’s sold is greater than or equal to Rs 5000 and less than 6500 then the hike is 7%

c) If the No’s of TV’s sold is greater than or equal to Rs 6500 then the hike is 9%

d) Capture Vishnu’s present salary and the no of TV’s sold by Vishnu

e) Display Vishnu’s new salary


Create a class Date whose object can store a day, month and year. Include the necessary

constructors to initialize the objects and function to display the date in ‘dd/mm/yyyy’ format.

Define a non-member function findAge(Date dob, Date today) which should return the calculated

age from the input dates ‘dob’ and ‘today’. Set this function as friend to Date class. Write a main

function to read the today’s date and date of birth of a person from the user and display the age

of that person by calling the proper function.


Create a class called Transmitter. It has three unsigned int private data members: pay_load,

parity and data_packet; It has one function called parity_bit(). It calculates parity bit by XORing


all pay_load bits and assign the value to parity. By using function get pay_load(), pay_load is got.

data_packet is calculated by multiplying parity_bit with 32768 and add the product with (pay_load

– 32768). Create another class called Receiver. It has unsigned int private data members Rx_Pkt

, Rx_Data and E_Flag. Rx_Data is got from Rx_Data as given below. First E_Flag is calculated

from Rx_Pkt by XORing all bits. If E_Flag is zero, then Rx_Data = Rx_Pkt – 32768, Else a

message should warn about corrupted packet. Derive a class called Tranceiver from the above two

classes and check the functionalities. Use any other functions if needed.


Create a class called InputData. It has two private data members data_a and data_b. Set the

values of these two data members by using two public functions get_a() and get_b(). Derive a class

called Arith_Unit from InputData. It contains the functions add(),sub(), mul(),div() to perform

arithmetic operations on data_a and data_b. Derive a class Logic_Unit from InputData. It

contains the functions and(), or() and xor() to perform logical operations on data_a and data_b.

Finally derive a class called ALUnit from Arith_Unit and Logic_Unit classes. It has to perform

arithmetic and logical operations according to the given codes. Choose code 0 to code 6 to perform

the said seven operations. Write sample program to test the ALU class.


Mr. Ram has a plan of travel to the USA. He wants to keep track of the baggage weight. He will carry a backpack of 7 kg for sure. If he decides to carry one extra baggage, the weight increases by 23 kg. If he decides to carry two extra baggage, the weight increases by 46 kg. Software needs to be developed to decide how much baggage is carried by Ram with the following requirements. a. The number of baggage to be carried has to be captured. b. Check for the number of baggage. c. Compute the total weight.

d. Display the final weight carried by Ram


LATEST TUTORIALS
APPROVED BY CLIENTS