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
Vedmedyk [2.9K]
3 years ago
6

Write a program that asks the user how many names they have. (If they have a first name, two middle names, and a last name, for

example, they would type 4.) Then, using a for loop, ask the user for each of their names. Finally, print their full name.
Computers and Technology
1 answer:
tankabanditka [31]3 years ago
5 0

Answer:

The solution is implemented in python:

numnames = int(input("Number of Names: "))

nametitle = ["Surname: ","Firstname: ","Middlename: ","Middlename 2: "]

names = []

for i in range(numnames):

   name = input(nametitle[i])

   names.append(name)

   

print("Your fullname is: ",end=" ")

for i in names:

   print(i,end=" ")

Explanation:

This prompts user for number of names

numnames = int(input("Number of Names: "))

This lists the name titles in a list

nametitle = ["Surname: ","Firstname: ","Middlename: ","Middlename 2: "]

This initializes an empty list

names = []

The following for loop get names from the user

<em>for i in range(numnames):</em>

<em>    name = input(nametitle[i])</em>

<em>    names.append(name)</em>

   

The following instructions print the user fullnames

<em>print("Your fullname is: ",end=" ")</em>

<em>for i in names:</em>

<em>    print(i,end=" ")</em>

You might be interested in
SOMEBODY HELP ME ASAP PLEASE AND THANK YOU
Paha777 [63]

Answer:

Isnt there another thing that is supposed to be there like some website

Explanation:

7 0
3 years ago
Read 2 more answers
When you tap or click the ____ button for a selected graphic, Word provides options for changing how a graphic is positioned wit
Snowcat [4.5K]
<span>You have to click on "layout options" to enable you to change the positioning of a graphic within a Word document. You will be able to change how the graphic wraps around text, is scaled to the page/document and if it should have borders etc around it.Hope this helps. Let me know if you need additional help!</span>
5 0
3 years ago
If your current directory is /usr/david, the command cd / changes your current directory to
Veseljchak [2.6K]
The command "cd /" changes your current directory to the root directory.
6 0
3 years ago
Looking for someone to answer these two questions
Alex777 [14]

Answer: Question 12: Answer is tables

Question 13: Answer is Command + C

Explanation:

3 0
3 years ago
Does anyone have any suggestions on how to teach my grandma to use her tablet? She always complains when it says not responding.
spayn [35]
Try to explain slowly and with patience it takes time because she isn't used to it
8 0
3 years ago
Other questions:
  • Using Karnaugh maps, simplify the following Boolean function:
    14·1 answer
  • What bus carries a status signal back to the CPU?
    14·1 answer
  • Which feature of a social news sharing website distinguishes it from a social bookmarking website
    15·2 answers
  • Which term describes the situation wherein a jury fails to reach a unanimous verdict? A occurs when a jury cannot reach a unanim
    14·1 answer
  • What does the Additional Clock tab do?
    11·1 answer
  • Need help developing code!!
    9·1 answer
  • Which wireless security methods uses a common shared key configured on the wireless access point and all wireless clients?
    10·1 answer
  • Which of the following “invisible” marks represents an inserted tab?
    11·2 answers
  • Which Backstage view feature helps you to specifically remove customized information from a document? Protect Document Feedback
    14·1 answer
  • What is a guardian node summary for theta staking tool
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!