Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hands on Activity 3-1 The manager of an electronics appliance store has asked you to develop a class to help in tracking inventory for TVs.

Hands on Activity 3-1 The manager of an electronics appliance store has asked you to develop a class to help in tracking inventory for TVs. Variables include manufacturer,screen diagonal size (in inches), and retail price (in dollars and cents). Methods include a setPrice() method with a parameter for the new price and a displayInfo() method that displays the three variables' values in sentences. There's also a constructor method with three parameters for the three variables. write a class definition save file in notepad as TelevisionClass.txt. Activity 3-2 The store manager from hands on activity 3-1 likes your class definition and wants you to test your logic by writing a program that creates a Television object with Sony as the manufacturer,52 as the screen size,and $1299.00 as the price.Your program should call the displayInfo() method to display information about the television,change the price to $999.00 by using the setPrice() method,and then call the displayInfo() method again. Writea module that creates an object from the Television class definition. Open file TelevisionClass.txt that you created in activity 3-1 and save in notepad as TelevisionClass.2txt. In case the manager likes your model enough to ask you to try it in a working environment,you decide to test a scaled using the file from hands on activity 3-2 to write a javasript program that includes a constructor method in the section for the Television class(no other methods). In the section,the program should create a new Television object called myTv by calling the constructor with the values you used in hands on activity 3-2 and then display the values of the variables and thank the user. Principles of Program Design Problem Solving with JavaScript by Paul Addison

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Secrets Of Analytical Leaders Insights From Information Insiders

Authors: Wayne Eckerson

1st Edition

1935504347, 9781935504344

More Books

Students also viewed these Databases questions

Question

=+beliefs about the brand, product, or service?

Answered: 1 week ago