Put the steps in order to produce the output shown below. Assume the indenting will be correct in the program.
JDoe
1. Line 1
answer = username ('Joann', 'Doe')
2. Line 2
print (answer)
3. Line 3
def username (strFirst, strLast):
4. Line 4
return strFirst[O] + strLast

Put The Steps In Order To Produce The Output Shown Below. Assume The Indenting Will Be Correct In The

Answers

Answer 1

Answer:

The correct code is:

def username (strFirst, strLast):

      return strFirst[O] + strLast

answer = username ('Joann', 'Doe')

print (answer)

Explanation:

The given code illustrates the use of functions.

i.e passing values to a function and retrieving values from it

So, first: We start with the def statement

def username (strFirst, strLast): ----> This defines the function

Then the return statement

      return strFirst[O] + strLast --- > This passes value to the main

Next, is the main function of the program which is:

answer = username ('Joann', 'Doe') ---> This passes values to the username function

print (answer) ---> This prints the returned value from the function


Related Questions

Using the drop-down menus, correctly complete the sentences.
A(n)
vis a set of step-by-step instructions that tell a computer exactly what to do.
The first step in creating a computer program is defining a(n)
the next step is creating a(n)
v problem that can be solved by a computer program.
A person writing a computer program is called a(n)

Answers

Answer:

It is  computer program , Problem, Logic, Programmer

Explanation:

on edge

why do computer architects prefer memory dump to be in base 16​

Answers

Answer:

We use hexadecimal numbers primarily because they provide a more human-friendly representation and it is much easier to express binary number representations in hex than in any other base number system.

Explanation:

You are an intern at Lucerne Publishing.
The company needs to use multiple versions of Microsoft Oce on each machine in the editing department.
Which virtualization strategy should the company use?

Answers

Answer:

Microsoft Application Virtualization (App-V)

Explanation:

Cloud computing can be defined as a type of computing that requires shared computing resources such as cloud storage (data storage), servers, computer power, and software over the internet rather than local servers and hard drives.

Generally, cloud computing offers individuals and businesses a fast, effective and efficient way of providing services.

In cloud computing, virtualization can be defined as a process which typically involves creating a virtual storage device, servers, operating system, desktop, infrastructure and other computing resources. Thus, virtualization is considered to be a building block (foundational element) of cloud computing as it powers it.

In this scenario, multiple versions of Microsoft Office are required to be used on each machine in the editing department. Thus, the virtualization strategy which the company should use is Microsoft Application Virtualization (App-V).

Microsoft Application Virtualization (App-V) refers to a virtualization and streaming software acquired by Microsoft from Softricity on the 17th of July, 2006. It is designed to avail software developers the ability to run, update and deploy (stream) software applications remotely to end users.

This ultimately implies that, end users could use multiple versions of a software application such as Microsoft Office 2013, 2016, etc., on each machine without having to worry about physically installing them on their Windows computer systems.

What parts of a photograph determine whether a person looks quickly at a photo or studies it for a long period of time?( Minimum is a paragraph)

Answers

I’ll answer this but if anyone else can answer it first I’d rather do that

How has cell phones impacted our society.

i really need this please.

Answers

Cell phones have impacted the society very much. Cell phones help us communicate with people that aren’t so close by us. Cell phones have changed so much over generations and have let us understand the way the internet works nowadays.
Cell phones have impacted our society because now we can text someone without having to see them and we can also call someone from far away and that is always good because some people can’t see their friends or family. Also people spend lots of time on cell phones. We can also now take pictures and capture moments.

Hope this helped

multimedia computer system required the following hardware component they are what​

Answers

To develop the system of multimedia we use the various hardware/softwarecomponents are:

The CPU: The CPU, which

is recommended for a multimedia computer should be Pentium IV or other advanced chips. The Monitor: The multimedia PC should be equipped with a monitorhaving Super

Video Graphics Arrays (SVGA) card.

Mark me as brainliest please

someone, please answer this.

This lesson showed you the general form of the syntax for a for loop in JavaScript:for

(initialize counter; condition; update counter) {code block;}

What does each part do, and why is it necessary?

Answers

Answer: A loop will continue running until the defined condition returns false . ... You can type js for , js while or js do while to get more info on any of these. ... initialization - Run before the first execution on the loop. ... But it can be used to decrement a counter too. statement - Code to be repeated in the loop.

Explanation:

paris que tipo de sustantivo es?​

Answers

Explanation:

CATEGORIA GRAMATICAL PARIS

Paris es sustantivo.

Explain benefits and disadvantages of using BNC over F-Type connectors on coaxial cables

Answers

Answer:

The benefits and disadvantages of using BNC over F-Type connectors on coaxial cables are;

The benefits of the BNC includes;

1) Easy connect and disconnect for a more rapid connection unlike the F-Type connector which is a screw connector

2) Reduction on stress on the termination of the coaxial cable

3) Appropriate in systems that see frequent reconfiguration unlike te F-Type connector that is permanently attached

4) Prevent unwanted disconnection ensuring image consistency by locking into place

5) Can extend to 300 ft.

The disadvantages of the BNC connectors are;

1) A separate power supply for the cable is required

2) Is used only for video transmission

3) Cannot be used for audio

4) The center wire is not easily visible like those of the F-Type connector which serves as a pin

5) The BNC connector is not watertight like the F-Type connectors

6) There are no provision for properly and securely attaching the cable to the camera for field work such that it can be easily disconnected while in use unlike the F-Type connectors

7) It is not as easy to manufacture like the F-Type connector and it is more expensive

8) The installation of the BNC connector on a coaxial cable is more intricate and the center cable is hidden from view after the BNC is attached thereby making it not possible to see if there is an error in installation which is unlike the F-type connector that takes less than 30 seconds to be attached to a cable

9) The F-Type connector provides more cost savings during installation than the BNC connector

Explanation:

The BNC connector is a type of bayonet connector used more frequently on CCTV systems. The benefits of the BNC includes;

The F-Type connectors are usable on SATV, CATV, and Digital TV where they are used together with RG6 or RG11 cables

i need an quote for a ad im using gatorade

Answers

Answer

Want the best aid for after a game, then try some Gatorade!

Explanation:

Hope this helps lol! plz mark as brainliest!

You are an intern at Lucerne Publishing.
The company needs to use multiple versions of Microsoft Once on each machine in the editing department.
Which virtualization strategy should the company use?

Answers

Answer:

jvgbicgbvhkvfvuncj gjvfjvfk fj

Input a list of positive numbers, terminated by 0, into an array Numbers[]. Then display the array and the largest and smallest number in it.

Answers

Answer:

hope this helps and mark my ans brainliest if it helped.

Explanation:

def main():

Numbers = []

n = input("Enter the number: ")

while n != 0:

Numbers.append(n)

n = input("Enter the number: ")

if len(Numbers) > 0:

max = Numbers[0]

min = Numbers[0]

for i in range(0, len(Numbers)):

if max < Numbers[i]:

max = Numbers[i]

if min > Numbers[i]:

min = Numbers[i]

print Numbers

print "Largest: ", max

print "Smallest: ",min

  

main();

Which of the statements below describe how to print a document?

Click on the Print icon at the tip of the screen.

Click on Print in the system tray.

Select Print from the Start menu.

Select Print from the File menu.


(On the picture above is what I have plz let me know if I’m wrong)

Answers

I pretty sure it’s the first one also I don’t think that you pick two answers because it does not say to do so

Name:
Computer Science
Modified
Python Coding Section C
Directions: Circle the best answer.
1. If the code below, what is the maximum amount of gold that can be in a treasure chest?
def treasure_chest():
gold = random.randint (1, 10)
print ("the treasure chest contains", gold, "pieces of gold.")
#Main program begins here
import random
player_gold = 5
print("There is a treasure chest here.")
treasure_chest()
+ None
C. Five
b. One
d. Ten
2. What is the output of this program?
def say_hello() :
print("Hello World)
say_hello)
say_hello
a. Hello world! Hello world!
b. "Hello World" "Hello World!"
C. Hello Hello
# None of the above

Answers

Answer:

The max Number would be D. TEN

Explanation:

Where it say the main program begins is where the use of import random is be using under the treasure chest function basicly the random.randint choose and random number between 1 through to 10..

Implement the function printTwoLargest that inputs an arbitrary number of positive numbers from the user. The input of numbers stops when the first negative or zero value is entered by the user. The function then prints the two largest values entered by the user. If fewer than two distinct positive numbers are entered a message to that effect is printed instead of printing any numbers. Hint: Duplicates will cause problems. Try to make sure that you find a way to ignore them.

Answers

Answer:

The function in Python is as follows:

def printTwoLargest():

   chk = 0

   list1 = []

   num = int(input("Enter: "))

   while num > 0:

       for i in list1:

           if i == num:

               chk+=1

               break;

       if chk == 0:

           list1.append(num)

       chk = 0

       num = int(input("Enter: "))

   list1.sort()

   if len(list1) >= 2:

       print("Largest:", list1[-1])

       print("Second:", list1[-2])

   else:

       print("Length of list must be at least 2")

Explanation:

This defines the function

def printTwoLargest():

This initializes a check variable to 0

   chk = 0

This initializes an empty list

   list1 = []

This prompts the user for input

   num = int(input("Enter: "))

The following loop is repeated until input is 0 or negative

   while num > 0:

The following for loop checks for duplicate

       for i in list1:

           if i == num: If duplicate is found

               chk+=1 The check variable is set to 1

               break; And the for loop is exited

The input is appended to the list if the check variable is 0 (i.e. no duplicate)

       if chk == 0:

           list1.append(num)

This sets the check variable back to 0, for another input

       chk = 0

This prompts the user for another input

       num = int(input("Enter: "))

This sorts the list

   list1.sort()

This prints the two largest if valid user input is 2 or more

   if len(list1) >= 2:

       print("Largest:", list1[-1])

       print("Second:", list1[-2])

if otherwise, this prints that the length must be at least 2

   else:

       print("Length of list must be at least 2")

Es la actividad que posibilita comunicar gráficamente ideas, hechos y valores procesados y sintetizados en términos de forma y comunicación, factores sociales, culturales, económicos, estéticos y tecnológicos

Answers

Answer:

La estadística es una rama de las matemáticas aplicadas que se ocupa de la recopilación, evaluación, análisis y presentación de datos o información. El trabajo también utiliza elementos de cognición, psicología, informática y ciencias de sistemas, cálculos numéricos y contribuciones de otras materias que tratan de matemáticas, datos y métodos informáticos intensivos.

El resultado, también llamado estadística, a menudo se presenta en forma numérica en números absolutos, números de frecuencia, números proporcionales, promedios, en tablas con series de tiempo o con otros números comparativos y a menudo también se ilustra en diagramas o figuras. El resultado se usa en parte para mostrar cómo se maneja algo en este momento y en parte como una herramienta para predecir eventos futuros mediante inducción. La estadística se utiliza en muchas disciplinas científicas, desde las ciencias naturales hasta las humanidades, pero también en la política y los negocios.

In addition to different gameplay styles, games also have different player states.
True
False

Answers

Answer:

Games differ wildly on how many stats they have. If you take an RPG like Zelda, does Link have a strength stat or an intelligence stat? No! An RPG doesn't need a lot of stats to be good but nearly all RPGs will have some stats.

Explanation:

HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP

Answers

Answer:

I should be C! :D

Answer:

B

Explanation:

which operating systems have both workstation and server editions?
-ios
-android
-ubuntu
-windows

Answers

Answer:

WINDOWS

Explanation:

The operating system that have both workstation and server editions is windows. The correct option is D.

What is an operating system?

The operating system (OS) controls all of the computer's software and hardware. It basically manages files, memory, as well as processes, handles input along with output, and controls peripheral devices such as disk drives and printers.

The most chief software that runs on a computer is the operating system. It is in charge of the computer's memory, processes, as well as all software and hardware.

Several computer programs typically run concurrently, all of which require access to the computer's processor (CPU), memory, and storage.

Operating systems now use networks to connect to one another as well as to servers for access to file systems and print servers. MS-DOS, Microsoft Windows, and UNIX are the three most popular operating systems.

Thus, the correct option is D.

For more details regarding operating system, visit:

https://brainly.com/question/6689423

#SPJ2

How many slides would be in a PowerPoint presentation based on the formatting of the Word outline?
A. two
B. Three
C. Eight
D. Eleven

Answers

Answer:

A. two

Explanation:

can i have brainliest please

Answer:

Explanation:

It depends on how the presentation is organized.  If there is one slide for each major section, then the answer is B. Three as there are 3 sections.

But if each outline has its own slide, then there will be D. Eleven slides.

Need the answer ASAP!!!!

Select the correct answer.

What type would the object X be in the following statement:

If (x) {...}

A.number

B.Boolean

C.string

D.date

Answers

Answer:

its Boolean

Explanation:

trust me

Which of the following statements most accurately describes the difference between aptitudes and skills?
O Aptitudes are ability, and skills are the potential.
O Aptitudes can be learned or trained, unlike skills.
O Aptitude is the level of skill that a person has gained.
O Aptitude is a person's potential to learn new skills.

Answers

Answer:

Aptitude is the level of skill that a person has gained.

Explanation:

Aptitude is the measurement of knowledge someone has in a specific area.  

Answer:

C Aptitude is the level of skill that a person has gained

Explanation:

Other Questions
This can be translated into ASL how: Do you want to go to Key West next week? The weather will be warm and sunny. NEXT-WEEK KEY WEST GO TO WANT YOU WEATHER THERE WARM SUNNY KEY WEST WARM SUNNY WANT GO YOU YOU WANT GO TO WARM SUNNY KEY WEST NEXT WEEK Which of these is a function of a conclusion paragraph in an argumentativeessay?A. To support a claimB. To sum up an argumentC. To provide new informationD. To capture readers' attention Which of these would not make you question the results of a study?A. The source of the study benefiting from study conclusionsB. Assuming causation from correlationC. A large sampleD. A large margin of error Simplify the square root of (x^2 -6x+ 9) if x please help me! (left highlight side)According to Fanon, why should Algerians violently resist against the French? What is the inverse of f(x)=3x^2 If r and s are positive real numbers, which expression is equivalent to,2/3,1/22. 32B. 1/3,12OC. 23,112OD. 23,12O E U1/35112 Helpppppp cant find the right answer pls help PLEASE ANSWER ASAP REALLY EASY QUESTION WILL GET BRAINLEST!!!!!!!!!!!Is this a random or biased sample? What is the perimeter of the rectangle? please help me for brainiest:(:(:(:(:( What is inverted syntax? How is it used as a rhetorical device? Convert the following degrees into radians: 45 What is this? 10 points ! how to get point of intersection of two lines help i will give branliest What is the percent change if the starting value is 25 and the final value is 30? I need help I dont understand it Solve using substitution3x + y = 125x 2y = 17PLZ HELP Will give brainlist to whoever answers first -4(6-b)=4 show work plz