Answer:
The code is below. The output is "Eric went to Chipotle to buy 12 different types of Cars"
Step-by-step explanation:
import java.util.scanner;
public class labprogram {
public static void main (string [ ] args) {
scanner scnr = new scanner (system.in) ;
string firstname;
string genericlocation;
int wholenumber;
string pluralNoun;
firstName = scnr.next();
genericLocation = scnr.next();
wholeNumner = scnr.nextInt();
pluralNoun = scnr.nextLine();
system.output.println(firstname + " went to " + genericlocation + " to buy " + wholenumber + " different types of " + pluralnoun + " . ");
}
}