![sophiat17](/avatars/47729.jpg)
sophiat17
01.04.2020 •
Computers and Technology
Design a program that asks the user for a series of names (in no particular order). After the final person’s name has been entered, the program should display the name that is first alphabetically and the name that is last alphabetically. For example, if the user enters the names Kristin, Joel, Adam, Beth, Zeb, and Chris, the program would display Adam and Zeb.
Solved
Show answers
More tips
- O Other Everything You Need to Know About Kudyabliks...
- F Food and Cooking How to cook crayfish? Everything you need to know...
- F Food and Cooking Homemade kvass: recipe and brewing process...
- H Health and Medicine How to Choose the Right Tanning Cream?...
- S Style and Beauty Secrets of Tying a Pareo: 5 Ways...
- S Sport Running: How to Do It Right?...
- H Health and Medicine Sunstroke: Causes, Symptoms, and Precautions...
- H Health and Medicine How to Deal with Heat Stroke?...
- H Horoscopes, Magic, Divination Where Did Tarot Cards Come From?...
- A Auto and Moto How many blood alcohol level units are allowed in Russian traffic laws?...
Answers on questions: Computers and Technology
- C Computers and Technology What does spreadsheet program allows a user to do? a. perform complicated calculations automatically b. deliver elegant presentation to a large audience easily...
- C Computers and Technology Cloud vendors that are hosting hardware, operating system, database, and other software, which clients can then use to build their own applications, are said to...
- C Computers and Technology A company has three (3) components in a system and requires all three to be operational for 24 hours, Monday to Friday. Failure of component 1 occurs as follows:...
- C Computers and Technology How will understanding the intended audience of a media piece help you? A. It will help estimate when the media piece was developed. B. It can determine where the...
- B Biology Name six terms used to describe the methods of insecticide application...
- M Mathematics A change in a figure that produces an image in a different position or orientation is known as a a) translation b) transformation c) reflection d) rotation...
- M Mathematics Help plss i don’t understand this...
- P Physics se tiene un gas a una temperatura de 25°C y un volumen de 70 cm3 a una presión de 856 mm de Hg ¿qué volumen ocupará éste gas a una temperatura de 0°C si la preión...
- M Mathematics Sorry guys on the other question I didn t put the question here is a new one...
- C Chemistry Help pleas you wish to make a potassium carbonate solution with a molar concentration of 0.25mol/dm³,but you only have 11.7g of potassium carbonate. what is the...
Ответ:
size = int(input("How many names will be there? "))
names = []
for _ in range(0, size):
name = input("Enter a name: ")
names.append(name)
names.sort()
print(names[0] + " " + names[-1])
Explanation:
* The code is in Python
- Ask the user for the number of the name
- Initialize an empty list that will hold the name entered
- Inside the for loop, get the names and put them in the names array
- When all the names are entered, sort them and print the first and last of the name
Ответ:
Question: ¿hay opciones que tenemos que elegir específicamente?