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
Karolina [17]
3 years ago
5

2.12 LAB: Name format Many documents use a specific format for a person's name. Write a program whose input is: firstName middle

Name lastName and whose output is: lastName, firstInitial.middleInitial.
Computers and Technology
1 answer:
lyudmila [28]3 years ago
4 0

Answer:

In Python:

firstName = input("First name: ")

middleName  = input("Middle name: ")

lastName = input("Last name: ")

firstInitial = firstName[0]

middleInitial = middleName[0]

print(lastName+", "+firstInitial+"."+middleInitial)

Explanation:

This line prompts user for firstName

firstName = input("First name: ")

This line prompts user for middleName

middleName  = input("Middle name: ")

This line prompts user for lastName

lastName = input("Last name: ")

This line gets the firstInitial

firstInitial = firstName[0]

This line gets the middleInitial

middleInitial = middleName[0]

This line prints the lastName, followed by the first and middle initials

print(lastName+", "+firstInitial+"."+middleInitial)

You might be interested in
With a chart , illustrate the stage of wood processing plsss help I will mark u as brainliest plss help pls and I will follow yo
Alina [70]

Answer:

this is a method of processing wood

4 0
3 years ago
Create an array of strings. Let the user decide how big this array is, but it must have at least 1 element. Prompt them until th
Brums [2.3K]

Answer:

lst = []

n = int(input("Input an array size for you words array: "))

print("Now please enter " + str(n) + " words")

max = 0

min = 1000

index_min = 0

index_max = 0

for i in range(n):

   s = input("Input a word: ")

   lst.append(s)

   if len(s) >= max:

       max = len(s)

       index_max = i

   if len(s) <= min:

       min = len(s)

       index_min = i

print("The longest word is :" + lst[index_max])

print("The shortest word is :" + lst[index_min])

Explanation:

Create an empty list, lst

Get the size from the user

Create a for loop that iterates "size" times

Inside the loop, get the strings from the user and put them in the lst. Find the longest and shortest strings and their indices using if structure.

When the loop is done, print the longest and shortest

5 0
4 years ago
NEEEEEEEEEEEEEEEEEEEEEEEEEEED HELP PLZ HURRYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
AveGali [126]

Answer:

The first step after selecting the File tab is to select <u>New</u>

Explanation:

Invoice templates are used in order to streamline the billing in business.

In order to use such templates by fetching them online such as from Office.com following steps should be followed:

  • Start the Microsoft Word software.
  • Click on File tab.
  • From the drop down memory choose New.
  • In the Search menu type Invoices and it will display all available templates of Invoices.
  • On the homepage, their will be be an option for More Templates below the available ones. Click on it and choose the Category from left and click Invoices.
  • Select the template you want to use.

<h3>I hope it will help you!</h3>
7 0
4 years ago
Which set of variables will make code easier to understand?
Alecsey [184]

Answer:

sum, price, count

Explanation:

Programmers should use significant names for the variables.

Not only it makes it easier for them to remember what kind of information is stored in each variable, but it also makes life simpler for anyone who would read the code later.

Names like sum, price and count are significant names ( assuming they actually hold this kind of data), and will make the re-reading of the program code much easier.

8 0
3 years ago
you are considering cloud services, and you concerned about the interaction of your security policies and those of the hosting p
Romashka-Z-Leto [24]

Answer:

Cloud access security brokers

Explanation:

Cloud access security brokers (CASBs) can alleviate your concern. This is a software that is between cloud service users and cloud applications. Monitoring every activity and ensuring security protocols.

It does the work of merging the security policies of users and that of the providers. Across cloud platforms, the CASB can help to identify unsanctioned use.

7 0
3 years ago
Other questions:
  • When you close a file, what happens to the undo history list for that file?
    5·1 answer
  • A raised dot (ú) shows where the enter key was pressed. true or false.
    13·1 answer
  • o maintain reasonable key security (mark all that apply): Ensure that someone else always has an extra key. Ensure that no extra
    10·1 answer
  • During college jesse spent four semesters studying abroad in other parts of the world how could jesses time abroad benefit his e
    5·2 answers
  • The following equations estimate the calories burned when exercising (source): Men: Calories = ( (Age x 0.2017) — (Weight x 0.09
    11·1 answer
  • Which of the following are ways companies gather customer feedback?
    13·2 answers
  • Once you have a listing of every unique combination of salesperson, product and location, what Excel function would you use to c
    14·1 answer
  • A two-dimensional array has been defined to hold the quantity of each of 5 different healthy snack products sold in a tuckshop d
    10·1 answer
  • True or false As the contents and topics of new magazines change year-to-year, you can see various trends and movements across s
    15·1 answer
  • Line charts are best used for
    15·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!