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
weqwewe [10]
3 years ago
15

You are a librarian! Ask the user for the last names of the authors of the five books they are returning. Print a list of those

names in sorted order.
Here’s what an example run of your program might look like:

Name: Angelou
Name: Adichie
Name: Wolff
Name: Alexie
Name: Ansari
['Adichie', 'Alexie', 'Angelou', 'Ansari', 'Wolff']
Computers and Technology
1 answer:
koban [17]3 years ago
8 0

//Program

====================

librarian1.py

==============

# make a empty list to add user input names

lst = []

for i in range(5):

   # take input from the user  

   auth = input("Name: ")

   # append user input name into the list

   lst.append(auth)

# sort the list

lst.sort()

# print the list

print(lst)

==============================================

//Output

 

You might be interested in
You are considering upgrading from Office 2010 to Office 2013. Which of the following is NOT true of either Office 2010 or Offic
Dmitry [639]

office 2013 can intergrute directly with the cloud

5 0
3 years ago
A franchise restaurant is attempting to understand if customers think their service is good day-to-day by summarizing a series o
Crazy boy [7]

Answer:

C++.

Explanation:

int main() {

   int num_days_scores;

   cout<<"How many days of scores? ";

   cin<<num_days_scores;

   cout<<endl;

///////////////////////////////////////////////////////////////////////////

   // Get scores for each day and add it to array

   int score = 0;

   int* score_array = new int[num_days_scores];

   for (int i = 0; i < num_days_scores; i++) {

       cout<<Enter score for day "<<i+1<<": ";

       cin<<score;

       score_array[i] = score;

   }

////////////////////////////////////////////////////////////////////////////

   // Calculate total of scores by traversing array

   int final_score = 0;

   for (int i = 0; i < num_days_scores; i++) {

       final_score += score_array[i];

   }

   cout<<"The total score of the "<<num_days_scores<<" days is "<<final_score;

////////////////////////////////////////////////////////////////////////////

   delete[] score_array;

   return 0;

}

7 0
3 years ago
What is the difference between a doubly linked list and a singly linked list?
lina2011 [118]

Answer:

A doubly linked list links each element to both its predecessor and successor, whereas a singly linked list only points to its successor.

Explanation:

Doubly linked lists are easier to iterate backwards. With singly linked lists you'd have to start at the beginning every time.

7 0
4 years ago
(Fill in the Blank
umka21 [38]

drafting i think it is

8 0
3 years ago
(PLATO) Which is a game story element?
diamong [38]

Answer:

plot is a major part of a rpg game

forexample is the game has high quality graphics and amazing animation but no story that wont work out

7 0
3 years ago
Other questions:
  • _________ involves encouraging employees to engage in behaviors directly related to goal accomplishment.
    6·1 answer
  • Assume that c is a char variable has been declared and already given a value. write an expression whose value is true if and onl
    6·1 answer
  • What is the difference between a software engineer and a system analyst?
    8·1 answer
  • Assume that passwords are selected from four-character combinations of 26 alphabeticcharacters. Assume that an adversary is able
    11·1 answer
  • Distinguish between exponentiation and modulus. Be specific.
    5·1 answer
  • Given the three thread states: running, runnable (i.e., ready), and blocked (i.e., waiting), state which of the six possible thr
    13·1 answer
  • Plsss help me plsssssss
    11·1 answer
  • Which technology do online storesusually use to present customized content?
    10·1 answer
  • Select the best answer from the drop-down menu.
    7·2 answers
  • What are two advantages of edge computing over cloud computing?
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!