Write a program that takes website names as keyboard input until the user types the word "stop" (without quotes) and counts how many of the website names are commercial website names (i.e., end with .com), then output the count.
Hint:
(1) Declare and instantiate a scanner object called sc that can scan input from keyboard.
(2) Prompt user to enter a website and enter stop to finish the input.
(3) Enter a string from console, call it website.
(4) Declare and initialize numComSites to be zero. It will be used to check number of commercial websites entered.
(5) As long as website does not equal to string literal "stop", do the following
begin
if the website ends with ".com" (google usage of endsWith method of String class)
then increase numComSites by 1.
prompt user to enter a website and enter stop to finish the input.
reset website by the string input
end
report the number of commercial web sites.
close scanner sc.