Shakuntala Gaur

Shakuntala Gaur

  • NA
  • 229
  • 27.2k

help in this program

Oct 18 2012 6:51 AM
hi,Can anyone help me out in the logic for this program. A good application is defined if it fulfills the following conditions. 1. Application name cannot be null 2. Rating should be beween 5 and 8 inclusive. 3. Application should be compatible with atleast two devices from the list "Andorid", "BlackBerry", "Nokia", "iPhone". 4. Number of copies sold should be more than 4000. 5. If the rating is less than or equal to 5 but greater than or equal to 3 then it should be compatible with atleast 6 devices. 6. If it is not an utility application then number of copies sold should be more than 8000. Write a method: boolean isGoodApplication(String appName, boolean isUtilityApp, String[] compatibleDevices, int rating, int sale) AppName Name of the application Compatible devices Devices which are compatible with given application For example "Nokia", "BlackBerry" Rating Rating of the application out of 8 Sale Total number of copies which are sold isUtilityApp Whether the application is utility based application.

you can help me in c, c++ , java or C# 
cheers thanks

Answers (2)