Respuesta :
Answer:
The code is below. The output is "Eric went to Chipotle to buy 12 different types of Cars"
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 + " . ");
}
}
The program is meant to be completed in Python.
The complete program where comments are used to explain each line is as follows:
#This gets input for first name
first_name = input()
#This gets input for location
generic_location = input()
#This gets input for whole number
whole_number = int(input())
#This gets input for plural nouns
plural_nouns = input()
#This prints the string generated
print(first_name,'went to',generic_location,'to buy',whole_number,'different types of',plural_nouns)
Learn more about python programs at:
https://brainly.com/question/22841107