1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
exis [7]
3 years ago
10

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)​
Computers and Technology
1 answer:
Anarel [89]3 years ago
8 0

Answer:

Explanation:

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.")

You might be interested in
A résumé can be delivered through _____.a.
stira [4]
I'm pretty sure the answer is D. I may be wrong but D is most likely the answer because A and B are correct.
7 0
4 years ago
Read 2 more answers
Who likes my meme? :)
Katarina [22]

Answer:

LOL

Explanation:

3 0
3 years ago
Read 2 more answers
First time using this site so be mindful if I make any mistakes
Leto [7]

Answer:

Okay... Well

I will. help you out dear

5 0
3 years ago
Suppose that L is a sorted list of 1,000,000 elements. To determine whether the x item is in L, the average number of comparison
Tomtit [17]

Answer:

≅500,000 comparisons.

Explanation:

The sequential search algorithm is, as its name express, a comparison method to search for a specific value in a list, sorted or not.

It starts with the first element in the list, compares the element with the searched value, if it is a match it stops, otherwise it moves to the next element and repeats.

In general, if the list size is X, the average number of comparisons is:

\frac{X+1}{2}

Solving for X=1,000,000, the result is ≅500,000 comparisons.

6 0
3 years ago
Select the correct answer.
ValentinkaMS [17]

Answer: typing keys

Explanation: it’s obvious...

8 0
4 years ago
Other questions:
  • Jane works in the sales department of a service company. She has impressive interpersonal skills and always turns up for work on
    11·2 answers
  • The headings that appear on the Ribbon, such as File, Home, and Insert, are called:
    5·1 answer
  • Cheryl has several concepts for mobile apps for smartphones. A friend suggests that she develop her apps for an open-source oper
    13·1 answer
  • Which level of education do most peoplebecoming a broadcast analyst obtain?
    13·2 answers
  • The __________ format is a proprietary file format defined by guidance software for use in its forensic tool to store hard drive
    15·1 answer
  • Change the shape fill color to Dark Red. It is the first option in the Standard Colors section of the color palette.
    13·1 answer
  • If you are asked to list your favorite websites in no particular order, you are relying on
    8·1 answer
  • What is an appropriate action when an email thread becomes long?
    6·1 answer
  • Write a function named minMax() that accepts three integers arguments from the keyboard and finds the smallest and largest integ
    5·1 answer
  • A company has employees who write down passwords, which should be kept private, on sticky notes. Given this scenario, what shoul
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!