Purpose of this method is to print the name of the store


Make a method that meets the requirements of the following comment.

// printCheaperStore //

// The purpose of this method is to print the name of the store that // provides the cheaper price. If both prices are the same, print the // names of both stores.

// Input Arguments: store1, price1, store2, price2 // the names two stores (as Strings) and the prices they // offer (as doubles)

// Return Value: none //

 

Solution Preview :

Prepared by a verified Expert
JAVA Programming: Purpose of this method is to print the name of the store
Reference No:- TGS02709912

Now Priced at $10 (50% Discount)

Recommended (90%)

Rated (4.3/5)