Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Java Expert


Home >> Java

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

Java, Programming

  • Category:- Java
  • Reference No.:- M92395935
  • Price:- $15

Priced at Now at $15, Verified Solution

Have any Question?


Related Questions in Java

Assessment instructionsin this assessment you will complete

Assessment Instructions In this assessment, you will complete the programming of two Java class methods in a console application that registers students for courses in a term of study. The application is written using th ...

Operating systems assignment -problem 1 sharing the bridgea

Operating Systems Assignment - Problem 1: Sharing the Bridge A new single lane bridge is constructed to connect the North Island of New Zealand to the South Island of New Zealand. Farmers from each island use the bridge ...

Assignment taskwrite a java console application that allows

Assignment task Write a java console application that allows the user to read, validate, store, display, sort and search data such as flight departure city (String), flight number (integer), flight distance (integer), fl ...

Fundamentals of operating systems and java

Fundamentals of Operating Systems and Java Programming Purpose of the assessment (with ULO Mapping) This assignment assesses the following Unit Learning Outcomes; students should be able to demonstrate their achievements ...

Overviewyou are required to use java se 80 and javafx to

Overview You are required to use Java SE 8.0 and JavaFX to develop a Graphical User Interface (GUI) for the FlexiRent rental property management program created in Assignment 1. This assignment is designed to help you: 1 ...

In ruby the hash class inherits from enumerable suggesting

In Ruby, the Hash class inherits from Enumerable, suggesting to a programmer that Hashes are collections. In Java, however, the Map classes are not part of the JCF (Java Collections Framework). For each language, provide ...

Assessment socket programmingtaskwrite a java gui program

Assessment: Socket Programming Task Write a JAVA GUI program that would facilitate text chatting/exchanging between two or multiple computers over the network/internet, using the concept of JAVA socket programming. If yo ...

Answer the following question whats the difference public

Answer the following Question : What's the difference public inheritance and private inheritance? What can derived classes inherit from base classes? What cannot be inherited from base classes?

Assessment socket programmingtaskwrite a java gui program

Assessment: Socket Programming Task Write a JAVA GUI program that would facilitate text chatting/exchanging between two or multiple computers over the network/internet, using the concept of JAVA socket programming. If yo ...

Assignment game prototypeoverviewfor this assessment task

Assignment: Game Prototype Overview For this assessment task you are expected to construct a prototype level/area as a "proof of concept" for the game that you have designed in Assignment 1. The prototype should function ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As