Autauga Alabama 55,869
Baldwin Alabama 223,234
Barbour Alabama 24,686
Answer:
The code is given below in Java with appropriate comments
Explanation:
//Import the input.
import java.util.Scanner;
class CensoredWords
{
//Define the main method.
public static void main(String args[ ])
{
//Define the variables.
String userInput="" ;
//Define the scanner object
Scanner scobj = new Scanner(System.in);
//Accept the userInput.
System.out.print("Enter String: ");
userInput=scobj.nextLine();
//Check if the input contains darn.
//Print censored.
if(userInput.toUpperCase().indexOf("DARN") != -1)
System.out.printf("Censored");
//IF the input does not contains darn
//Print userInput.
else
System.out.printf(userInput)
return;
}
}
Alan Turing fathered the machines we now lovingly call computers, however it was Nicola Tesla that birthed the idea of a world-wide wireless system.