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]
2 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]2 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
Is this statement true or false? Title text boxes on every slide must be the same format. True false.
RUDIKE [14]

Answer:

start with what you know

Explanation:

5 0
2 years ago
Read 2 more answers
Tornado Alley is located in the middle of the United States, extending from Texas up through the Dakotas. The above statement is
Papessa [141]

Answer:

The above given statement is a fact.

Explanation:

A fact is nothing but a real statement which can never be false or imaginary or told in a future perspective. Let us analyze other options

Option 2: Opinion => An opinion can be anything and it can differ. A opinion is the way one people understand or perceive and give a statement according to that. An opinion always differs.

Option 3: Graphic => This is computer generated file, which can be true or false or imaginary. So this option is invalid

Option 4: Text => A text is nothing but words written together to convey a meaning. Though we feel like it suits the question, since the question speaks about the place, then it must definitely be fact and not just text.

4 0
3 years ago
Need help asap please​
Fofino [41]
Because you can make it to where they cannot find or see or look or talk or anything on your profile it can cut off Comunication from the person. It can also protect your safety!
6 0
2 years ago
_______________ is used by a hacker to mask intrusion and obtain administrator permissions to a computer.
Sergeu [11.5K]

Answer:

Rootkit.

Explanation:

Rootkit is a collection of software tools,mostly malicious.These are mostly used by hackers to obtain administrator permission to a computer by masking intrusion.

Root-kit is made from two word Root and kit.Where root refers to the name of privileged account on an operating system that is somewhat like unix and KIT refers to the tools used.

6 0
3 years ago
The MIQ inventory measures how much you value status. Which two measures are measures of status?
Alika [10]
It would be the social standing of a person and the economic standing of a person. 
6 0
3 years ago
Other questions:
  • Which finger types the highlighted keys on a number keypad? A. Third B. First C. Pinky D. Thumb
    7·2 answers
  • A base class named Garden contains a private field width and a property public int Width that contains get and set accessors. A
    11·1 answer
  • Which statement is used to create a file object that will append data to an existing file? BufferedWriter salesdata =
    7·2 answers
  • You open the home page for www.alpineskihouse. On the home page, you see a link for the weather report. You want to view the wea
    6·1 answer
  • To complete this quest, answer the following questions in the submission box below. Make x an array going from 0 to 100 by steps
    15·1 answer
  • Select the two statements below that are true. Press on the info button for
    13·1 answer
  • Copy the countdown function from Section 5.8 of your textbook. def countdown(n): if n &lt;= 0: print('Blastoff!') else: print(n)
    8·1 answer
  • Small data files that are deposited on a user's hard disk when they visit a website are called _______.
    6·2 answers
  • Camera work is at the center of video production. True or False?
    14·1 answer
  • I need help pls help me
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!