Question: In Java, please show the test code and the correct output. (1) The CellPhone class Assume that a cell phone retailer wanted you to write

In Java, please show the test code and the correct output.  In Java, please show the test code and the correct output.
(1) The CellPhone class Assume that a cell phone retailer wanted you
to write a program to keep track of its inventory. Define an

(1) The CellPhone class Assume that a cell phone retailer wanted you to write a program to keep track of its inventory. Define an object called CellPhone which maintains state representing a cell phone's model (a string), manufacturer (a string), monthsWarranty (an integer) and price (a float) All instance variables (i.e. attributes) should be made private. Create a zero-parameter constructor as well as one that takes all 4 parameters (in the order listed above). Also create get and set methods for each attribute. Save and compile the file. The program below is called CellPhoneTestProgram and it should test your CellPhone methods. However, the testing code is incomplete (see highlighted areas). Please complete the testing code according to the directions given, then test out the code to make sure that it works: tesling code according to the direcions gven, hen test out the cde to ake sure thatit works

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!