Write a program that prompts the user to enter their name store this value in a variable called name Prompt the user for their c
urrent age store this value in a variable called Create a variable dogAge which takes the age entered and multiplies by 7 Print to the screen “Your name is" name "and in dog years you are" dogAge "years old" To join multiple parts together in a print statement use commas: print (“Your name is", name, "and in dog years you are", dogAge)
The following code is written in Python. It prompts the user for the name and age, saves them to their own variables. Then it creates and calculates the dogAge variable. Finally, it combines all of this information and prints out the statement.
name = input("Enter your name: ")
age = input("Enter your age: ")
dogAge = int(age) * 7
print("Your name is", name, "and in dog years you are", dogAge, "years old.")