Guest User

Untitled

a guest
Jun 20th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. The manager of an electronics applicance store has asked you to develope a class to help in tracking inventory for TVs. Variables include manufactures, screen diagonal size(In inches), and retail price(In dollar and cents). Methods include a setPrice() method with a parameter for the new price and a displayInfo() method that displays three variables values in sentences. There's also a constructor method with three parameters for the three variables.
  2.  
  3. Using pseudocode, write a class definition.
  4.  
  5. The store manager likes your class definition and wants you to test your logic by writing a program that creates Television object with Sony as the manufacturer, 52 as the screen size, and $1299.0 as the price. Your program should call the displayInfo() method to display information about the television and change the price to $999.00 by using the setPrice() method, then call the displayInfo() method again.
  6.  
  7. Using pseudocode, write a module creates an object from the Television class definition.
Add Comment
Please, Sign In to add comment