Other Programming & Computer Science Answers

Questions: 1 727

Answers by our Experts: 1 357

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

Q.No.4 Sony TV Manufacturer want you to design a program that will help their customers to

check the price along with the dimensions for their products to be purchased. For this

Carefully read all the instructions and follow the requirements.

o Create a class called SONY_TV along with two constructors as follows:

o A Default constructor to set the length of TV.

o A parameterized constructor that will receive the width in float.

o By using a friend function calculate the area of the SonyTV

o Create a member function to calculate the price of the sony TV by multiplying the area

with Rs 100.

o Create a show( ) function to show the details of the purchased sony TV.

In the main you will construct three objects that will show the use of the two constructors. After

calling the constructor it will call the area function, and then the price calculation function.

( Marks 6)


Consider 2 ADCS - digital ramp ADC and successive-approximation ADC. Also consider the last

two digits of your ID as input analog voltage (that has to be converted, Va). For example, if your

ID is 181400040, V will be 40V. Initially, Vax will be OV. The register is of 16 bits for both the

ADCs. Draw or describe (whatever you prefer) each step of the conversion for both the ADCs

and also write down the results obtained from each converter.


Create a time class having data members hour, minute and second. Make a constructor to set the members zero, make a display function that outputs the time in given format: 00:00:00. Make a function called ticktick() that increments the time in such a way that hour do not change till the minutes and seconds ends at 60. (01:01:01…. 01:59:59 -> 02:00:00). Design the main function, create an object and call the functions accordingly. 



The Dewey Decimal classification system divides knowledge :

  1. Into call numbers
  2. Chronologically
  3. By subject
  4. Numerically and alphabetically

How will the output be formatted?

String word#1 "%-20s" "hello"

String word#2 "%-10s" "world"


System.out.printin(word1+word2)


Simplify the following functions using a K-map:

(a) F(X,Y) =m2 + m3

(b) F(X,Y) =X+X' Y

(c) F(X,Y) = X'+ XY'

(d) F(X,Y,Z) =m0 + m2 + m5 + m7

(e) F(X,Y,Z) = X'Y' Z' + X' YZ + XY' Z + XYZ

(f) F(X,Y,Z) = π(0, 2, 5, 7)

(g) F(X,Y,Z) = XY' Z+X' +Z+Y' Z'

(h) F(W,X,Y,Z) = X' Y' Z' + XYZ' + WXY + W' X' Y'+ WZ

(i) F(W,X,Y,Z) = X' + XZ' + WX' Y+W' Y' + WZ


 Draw logic circuits for the simplified functions

(a) Using NAND gates

(b) Using NOR gates


. Generate truth table for the following functions:

(a) F(X,Y,Z) = ∑(1,3,6,7)

(b) F(X,Y,Z) = π(1,3,4)

(c) F(W,X,Y,Z) = ∑(1,4,7,10,12,15)

(d) F(W,X,Y,Z) =π(2,3,4,7,10,11,12,13)


Design a 4-bit ALU to perform the following functions: A + B, A - B , A + 1 , A' , B' , A XOR B, A XOR B, A AND B


LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS