The main method is the controller which runs the whole show


Testing Help
(for main)

The main method is the controller which "runs the whole show", including testing the functionality and correctness of the various methods (in both classes). So it needs to do the FOLLOWING, IN THIS ORDER:

- fillarrayofTVs from data in the FILE (where the parameterized constructor method, rather than individual setter methods, stores the data)
- REPEATEDLY ask user if they want to add another TV (until they indicate no) - if they say yes, call addNewTelevision method which:
o reads 5 values from user (after individual prompts) and converts them appropriately
o creates ANOTHER object (element) inarrayofTVsANDfills its instance variables with those 5 data values (using the parameterized constructor method)
o HERE'S TEST DATA for RUNNING THE PROGRAM: You AS USER do:
 say yes - enter this data when prompted: Acer 80 FALSE 0 0
 say yes - enter this data when prompted: Vizio70 FALSE 0 0
 say no
- sort
- set channel to 3 for TVs [0] and [1]
- turn power switch for TVs [2] and [3] and [4]
- turn power switch again for TV [3]
- turn power switch again for TV [3]
- turn UP volume for TVs [9] and [3]
- turn UP volume for TV [9]
- turn UP volume for TV [9]
- turn UP volume for TV [9]
- turn UP volume for TV [9]
- turn DOWN volume for TV [9]
- turn DOWN volume for TV [9]
- set channel to 222 for TVs [10] and [11]
- turn power switch for TVs [10] and [11]
- search for "Vizio"
- search for "Google"
- use the 4 getters so you can print the following data nicely to the Console for TV [9]
- printToFile

Attachment:- A7TelevisionBrands.zip

Solution Preview :

Prepared by a verified Expert
JAVA Programming: The main method is the controller which runs the whole show
Reference No:- TGS02382764

Now Priced at $15 (50% Discount)

Recommended (92%)

Rated (4.4/5)