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

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.
Create a class Rational whose object can store a rational number. (For ex: 3⁄4). Include the
necessary constructors to initialize the objects and function to display the rational number in x/y
format. Define the following non-member functions.
addRational(Rational r1, Rational r2) : which should return a summation of the two input rational numbers r1 and r2.
mulRational(Rational r1, Rational r2) : which should return the product of the r1 and r2.
Set these two functions as friend to the Rational class
Main function to read two rational numbers and display the sum and product of the input by
calling the proper functions.

. Write a program having a Class Mile with data member dis_mile. Another Class Kilometer with data member dis_kilo. Both classes stores distances. In main function create objects these two classes with parameterized constructors. Write down conversion function for converting Kilometer object to Mile class object


Create a class Matrix to store a m x n matrix. Include necessary constructors and functions to
initialize and display the matrix. Using friend function, find the dot product of two input matrices.
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.

Write a program having Classes Rectangle with data members’ length and width, Square with data member side, EquilatralTraingle with data member side. All these classes are derived from class Shape. Write an independent function which will exhibit polymorphism and show the area of the object passed to the function. All data members of class are private; you can write suitable functions needed for you


What are the two extremes for technical architecture design? Which one is

better?


write pseudocode for the mainlin logic that contains the elements requaired



How do you create the pseudocode that will demonstrate how an application will write your name and surname to a text file called “students.dat”



LATEST TUTORIALS
APPROVED BY CLIENTS