Pedro needs to write a block of code that will repeat a loop six times. Which type of loop should he use?
O for
O else
O else if
O while

Answers

Answer 1

Answer:

The answer to this question is given below in the explanation section.

Explanation:

Petro needs to write a block of code that repeats six times. The given options in this question that what should he use to implement the six times a block of code are:

for  else else if while

The correct option to this question is: 1 -for-loop.

So, Pedro needs to use for-loop to write a block of code that will repeat a loop six times. Because when you use for-loop, you know how many iterations are in a loop to execute a block of code. So in this case, the number of iteration is known. Therefore, Pedro needs to use for-loop.

While other options are not correct because:

Else and else are used to make decisions, these are not used to repeat a block of code. These are code branching statements in simple words. While while-loop is used to iterate/loop a block of code but when you don't know the exact number of repetitions.

Answer 2

Answer:

for loop

Explanation:

sorry im late


Related Questions

1. What is output to the screen by the following code?
int n= 10;
while (n > 0)
{
n--;
System. out. print (n%4 +
"");
a. 210.32 10321
b. 210321032
C. 1032103 210
d. 103 2 10321
e. 12 30 1230 12

Answers

Answer:

B is going to be your answer

Explanation:

What is the name of the option in most presentation applications with which you can modify slide elements?
The __________ option enables you to modify a slide element in most presentation applications.

Answers

Answer:

Answer to both the question is View Master.

Explanation:

Slide Master View is an element in PowerPoint that enables one to bring modification in slides and slide layouts in the presentation applications. From this option, one is able to edit the slide master. By modifying the slide master, every slide in the presentation is affected. Using this feature, one can also modify single slide layouts.

To select Slide Master command, go to View then select the Slide Master Command, and the Slide Master view will appear on the screen.

Therefore, View Master is the correct answer.

What is the name of the option in most presentation applications with which you can modify slide elements?

The View Master option enables you to modify a slide element in most presentation applications.

Slide Master View is an element in PowerPoint that enables one to bring modification in slides and slide layouts in the presentation applications. From this option, one is able to edit the slide master. By modifying the slide master, every slide in the presentation is affected. Using this feature, one can also modify single slide layouts.

To select Slide Master command, go to View then select the Slide Master Command, and the Slide Master view will appear on the screen

List the caveats to this analysis and how they affect the research. How does this document define the ""typical game developer"" and what are your thoughts on this definition?

Answers

Trypical game developer is somebody who makes games with research

Answer:

The document define the "typical game developer" as fully functional, Typically 31 years old, Has about 5 years work experience in the developing department, Should have a degree in computer science or software engineering, Must be a programmer, artist or designer, Most earn approx 49k-150k per year.

Explanation:

why is a virtual machine useful?
a.) it creates an extra file backup.
b.) it increases internet speeds.
c.) it stimulates multiple computers with one physical computer.
d.) it connects multiple computers together.

Answers

Answer:

The correct answer to this question is given below in the explanation section.

Explanation:

The given options of the question are:

it creates an extra file backup. it increases internet speeds. it stimulates multiple computers with one physical computer. it connects multiple computers together.

The correct option to this question is 4. i.e:

The virtual machine is useful because it stimulated multiple computers with one physical computer.  You can run many operating systems on a virtual machine at one physical computer. It will reduce the cost of buying a new computer and internet connectivity cost among computers.

While other options are not correct because:

VM does not create an extra file backup, it will create a backup according to your assigned needs. It does not increase the internet speed and does not connect multiple computers together but it connects multiple virtual machine operating systems togethers.

Program a substitution cipher in Python. Create 2 functions one for encryption and the other for decryption ( get the text as the parameter).

Answers

alphabet = "abcdefghijklmnopqrstuvwxyz"

def encrypt(txt):

   shift = int(input("Enter the shift: "))

   new_txt = ""

   for x in txt:

       if x in alphabet:

           if alphabet.index(x)+shift >= len(alphabet):

               new_txt += alphabet[(alphabet.index(x)+shift - len(alphabet))]

           else:

               new_txt += alphabet[alphabet.index(x)+shift]

       else:

           new_txt += x

   return new_txt

def decrpyt(txt):

   shift = int(input("Enter the known shift: "))

   new_txt = ""

   for x in txt:

       if x in alphabet:

           new_txt += alphabet[alphabet.index(x) - shift]

       else:

           new_txt += x

   return new_txt

print(encrypt("yellow dog."))

print(decrpyt("lryybj qbt."))

My code works with lowercase text only. If you need me to modify the code, I can do that. I tested my code with a shift of 13 in both the encryption and decryption. I hope this helps!

What is an Algorithm? (might not be in the chapter text). Give an example.

Answers

Answer:

The answer to this question is given below in the explanation section.

Explanation:

An algorithm is the list of a finite set of instructions and rules that a computer needs to do to complete a task in order to solve a problem.

In short, an algorithm is a series of instructions that are implemented step by step to solve a problem. For example, you could consider a pizza recipe an algorithm for making a pizza in an everyday life routine. But when you are talking about using algorithms in computation and in mathematics. It means that solving a problem using a series of steps step by step.

For example, your everyday tasks aligned on a google calendar and remind you about your tasks using the alarm, etc- how to implement this using set of instructions and rules- is an algorithm.

Solving a quadratic equation is another example of an algorithm.

Binary search, array sorting are an example of an algorithm in computation. Because these algorithms based on the execution of step-by-step instruction to solve a problem such as sorting a list of numbers etc.  

can someone please help me

Answers

Answer:

I think it's B

Explanation:

plz mark brainliest T^T

i need help on what im doing wrong

Answers

Answer:

The error is that you're trying to convert a string with letters inside into an int. What happens if a user type in 'a' instead of '1'? 'a' is not a number so the int('a') would fail and give you an error. Make you add a line to check whether the input a number or not.

Explanation:

Change your code to

DEorAP  = input("Is it AP or DE?")

if DEorAP.isdigit()

  DEorAP = int(DEorAP)

Laura is filming a scene in which the subject is sitting with a lit fireplace behind him. The only other source of light in the room is the glow from a window on the subject's left. How should Laura set up a standard three-point lighting system for the shot?

Answers

Answer:

The answer is below

Explanation:

Given that the three-point lighting techniques require one to have three sources of lights in a scene. These three lights are known as Back light, key light, and fill light.

The Back light is expected to be placed at the back of the subject. In this scenario, there is a lit fireplace behind the subject, this is serving as the backlight already.

The glow from a window on the subject's left is serving as a Fill light which is not going to be bright as that of the Key lights.

Then Laura would now only need the Key Light. This will be the main light and will be the brightest. Laura will have to place this Key Light on the right side of the subject on the scene, directly at the opposite of the glowing light serving as the Fill light.

Choose the correct function to convert the user’s response to the number 3.5. >>> answer = input("How much does the sample weigh in grams? ") How much does the sample weigh in grams? 3.5 >>> numberAnswer = (answer)

Answers

Answer:

The answer to the given question is given bellow in the explanation section:

Explanation:

<p>This is python code</p>

<p>In python when you enter input into the input function as given:</p>

<code> answer = input("How much does the sample weigh in grams? ") </code>

I will be taken as string.

So I have to convert this string to number format here the given data is float value i-e 3.5

so let convert it. using float function.

<code> answer = float (input("How much does the sample weigh in grams? ") )  </code>

Answer:

I think the answer is float

Explanation:

How are programs and algorithms related? A program is a part of an algorithm. They are not connected at all. An algorithm is a part of a program. They are the same. ​

Answers

Answer:

A program is a set of instructions that a computer executes.

An algorithm is a set of instructions that must be done in order to get some result.

If an algorithm is written in a programming language, then the program is an implementation of the algorithm.

An algorithm must not, however, be a program. An algorithm can also be performed manually (e.g. calculate 6431 + 8316 on paper or in your head).

Explanation:

What is the purpose of a hyperlink in a presentation?

Answers

Answer:The “hyperlink” function in PowerPoint allows users to advance from one slide to another slide in the presentation when they click on a predetermined word, shape, or image, thereby allowing for a more dynamic and interactive experience than can be obtained with serial presentation of slides alone.

Explanation:

Use the drop down menu to complete the sentences about changing and customizing the calendar view in outlook 2016​

Answers

Answer:

Following are the solution to this question:

Explanation:

Please find the complete question in the attached file.

The Calendar feature is being used to arrange appointments within Outlook, individual connections were generated to send email messages. It is a To-Do Chart, which would be a task schedule, is a somewhat common feature of Outlook. In fast updates, the notice function is best utilized. Its Peeks feature is activated through hovering over even a navigation icon.

Answer:

To change the Calendar view, look at the Navigation bar, click the  

✔ Calendar

button, and open the View tab.

Changing the time scale will add or remove different time  

✔ increments  

Under Day view, the Daily Task List will display only for that particular  

✔ day  

The Folder pane is useful for selecting other  

✔ calendars , such as birthdays and holidays.

Please help me i have a screenshot

Answers

Answer:

c

Explanation:

I did this too and I needed help so

What is the name of the arm that is attached to the read/write head?

Answers

This is not making sense?

What is the purpose of indexing?

To combine characters in order to form a single string
To combine two or more strings into one big string
To pull out a group of characters from a string
To pull out one specific character from a string

Answers

Answer: Two or more strings can be combined to form one big string.

Answer:

the last one heheheeh

Explanation:

____ is a technique for confirming that q received packet or frame is likely to match what was sent
a. Redundancy
b. Framing
c. Error Checking ​

Answers

Answer:

C. Error checking

Explanation:

I hope this helps

Write the SQL query that would search a table called Movies and return the titles of movies that were made in 1975.

Answers

Answer:

Vertigo                                            |     1958 |      128 | English         | 1958-08-24 | UK

  902 | The Innocents                                      |     1961 |      100 | English         | 1962-02-19 | SW

  903 | Lawrence of Arabia                                 |     1962 |      216 | English         | 1962-12-11 | UK

  904 | The Deer Hunter                                    |     1978 |      183 | English         | 1979-03-08 | UK

  905 | Amadeus                                            |     1984 |      160 | English         | 1985-01-07 | UK

  906 | Blade Runner                                       |     1982 |      117 | English         | 1982-09-09 | UK

  907 | Eyes Wide Shut                                     |     1999 |      159 | English         |            | UK

  908 | The Usual Suspects                                 |     1995 |      106 | English         | 1995-08-25 | UK

  909 | Chinatown                                          |     1974 |      130 | English         | 1974-08-09 | UK

  910 | Boogie Nights                                      |     1997 |      155 | English         | 1998-02-16 | UK

  911 | Annie Hall                                         |     1977 |       93 | English         | 1977-04-20 | USA

  912 | Princess Mononoke                                  |     1997 |      134 | Japanese        | 2001-10-19 | UK

  913 | The Shawshank Redemption                           |     1994 |      142 | English         | 1995-02-17 | UK

  914 | American Beauty                                    |     1999 |      122 | English         |            | UK

  915 | Titanic                                            |     1997 |      194 | English         | 1998-01-23 | UK

  916 | Good Will Hunting                                  |     1997 |      126 | English         | 1998-06-03 | UK

  917 | Deliverance                                        |     1972 |      109 | English         | 1982-10-05 | UK

  918 | Trainspotting                                      |     1996 |       94 | English         | 1996-02-23 | UK

  919 | The Prestige                                       |     2006 |      130 | English         | 2006-11-10 | UK

  920 | Donnie Darko                                       |     2001 |      113 | English         |            | UK

  921 | Slumdog Millionaire                                |     2008 |      120 | English         | 2009-01-09 | UK

  922 | Aliens                                             |     1986 |      137 | English         | 1986-08-29 | UK

  923 | Beyond the Sea                                     |     2004 |      118 | English         | 2004-11-26 | UK

  924 | Avatar                                             |     2009 |      162 | English         | 2009-12-17 | UK

  926 | Seven Samurai                                      |     1954 |      207 | Japanese        | 1954-04-26 | JP

  927 | Spirited Away                                      |     2001 |      125 | Japanese        | 2003-09-12 | UK

  928 | Back to the Future                                 |     1985 |      116 | English         | 1985-12-04 | UK

  925 | Braveheart        

Explanation:

The SQL query that searches a table called Movies and return the titles of movies that were made in 1975 is given below:

Trivago                                            |     1958 |      128 | French         | 1958-08-24 | US902 | The Witcher                           |     1961 |      100 | English         | 1962-02-19 | BD

What is SQL?

This is an acronym that means Structured Query Language and is used in database creation and management to sort records and retrieve data at any time.

The complete query is:

 903 | Prince of Bel-Air                                 |     1962 |      216 | English         | 1962-12-11 | AU  904 | The Deer Hunter                                    |     1978 |      183 | English         | 1979-03-08 | UK

Read more about SQL queries here:
https://brainly.com/question/25694408

The base 10 number 18 is equal to which base 16 number?

10

12

14

16

Answers

Answer:

1 2 base 16

Explanation:

To convert to base 16 you divide the number with 16. 18/16=1 remainder 2;1 divide by 16 is =1

From bottom to top :1 2

Which statement is true?
An employee list can give the departments and job titles of employees.
A product list can include names and addresses of buyers of the product.
A medical record can include consumer buying behaviors of prescriptions.
A market research report can give names of employees of a company.

Answers

Answer:

An employee list can give the departments and job titles of employees.

Explanation:

Well you have to your employees age birth certificate  and stuff like that on file and there department and title would bee in that file.

Answer:

A

Explanation:

Makes the most sense

2. Define a function squareArea that computes the area of a square given side length

Answers

Code:

def squareArea(length):

 return length**2

Hope this helps :)

How can reviewing a completed test prior to submitting it help you to earn the most points possible?

Answers

The act of reviewing a completed test prior to submission is usually called double - checking. This involves checking through selected answers that have been picked prior to making submission.

This action will help to check for possible errors which could have been made unknown to the user, Hence, errors committed by mistake.

Hence, a review of a completed test or assessment would help check for potential errors which could prove costly and hence, leading to more earned point in total.

Learn more :https://brainly.com/question/20194760

Where would you locate the Select Data Source dialog box?
O Design tab, Select Data
O Design tab, Chart Layouts
O Format tab, Insert Shapes
O format tab, Format Selection
o

Answers

Answer:

Design tab, Select Data

Explanation:

I just did it :)

Answer:

A) Design tab, Select data

Explanation:

Choose the correct term to complete the sentence. A _______ has functions that allow you to appendleft and popleft.

A
deque
B
amplified list
C
list
D
deck

Answers

Answer:

A. Deque according to text books

Answer:

deque

Explanation:

Edge 2020

How will wireless information appliances and services affect the business use of the Internet and the Web? Explain.

Answers

Answer:

wireless information appliances and services affect the business use of the internet and the web in a positive way. Wireless information appliances and services affect the business use of the web and internet by allowing internet pretty much anywhere. Now days devices like cell phones can access almost everything a regular computer can access. The use of wireless information allows businesses to stay in constant contact with customers, employees, and suppliers.

Which line correctly starts the definition of a class named "team"?


class team:

def team():

class team():

def team:

Answers

Answer:

A

Explanation:

The line correctly starts the definition of a class named “team” is the class team:. The correct option is A.

What are the definitions?

The definition is the precise explanation of a word, particularly as it appears in a dictionary. Meaning provides a broad explanation of a word or topic. The primary distinction between definition and meaning is this. Understanding what a term implies is made possible by both its definition and its meaning.

When we write a definition of a word. The word is written before, and it is written with a colon sign. The word is only written and after the word place colon, then the definition of the word.

The definition of the word team is a collection of people who cooperate to accomplish a common objective.

Therefore, the correct option is A. class team:

To learn more about definitions, refer to the link:

https://brainly.com/question/23008740

#SPJ2

T = a set of first 4 prime numbers
R= a set of numbers up to 50 exactly divisi
P= a set of Provinces in Nepal
N= {x:x is a natural number less than 8.}
M= {x :x is a multiple of 5; 10 SX 25.}
L = {x:x is a letter in the word 'mathemati
write the following sets by (i) describing members ​

Answers

Answer:

The answer to the question is given in the explanation section.

Explanation:

Prime numbers are those number which is not divisible by other number except itself.

T={2,3,5,7}

In R set I have to write numbers which are divisible by other number means number not prime.

R={4,6,8,9,10,12,14,15,16,18,20,21,22,24,25,26,27,28,30,32,33,34,35,36,38,39,40,42,44,45,46,48,49}

In Set P i have to list down the names of the provinces of Nepal. Currently there are 7 Provinces.  

Arun Kshetra Janakpur Kshetra Kathmandu Kshetra Gandak Kshetra Kapilavastu Kshetra Karnali Kshetra Mahakali Kshetra

In Set N I have to write Natural No less that 8

N={1,2,3,4,5,6,7}

In set  M I have to write multiple of 5, 10,20. 25

Multiple of 5 are: 1 and 5

Multiple of 10 are: 1,2,5,10

Multiple of 20 are: 1,2,5,4,10

Multiple o 25 are: 1,5,25

For the set L I have to write letter of the word 'mathemati'

As repetition is not significant in set so i have skep the repetition

L={m,a,t,h,e,i}

Which sentence is the thesis statement for this essay?

Answers

which essay? the thesis will most likely be the last sentence of an intro, but not necessarily. its what states your reasons or your point of view in an intro.  

Which sentence is the thesis statement for this essay?

Knowing where to look, making a good first impression, and following up with a potential employer can help you land the perfect job.

All these strategies will help you find a job.

There are many sources of potential jobs.

Finding a job can be a scary prospect.

The smallest unit of a spreadsheet, and it is formed by the intersection of a row and a column.

a
Workbook
b
Cell
c
Pointer
d
Ribbon Tabs

Answers

The answer would be: B. Cell

Read the excerpt from The Diary of Anne Frank.

Anne. Mouschi! Mouschi! Mouschi! (She picks up the cat, walking away with it. To Peter) I love cats. I have one . . . a darling little cat. But they made me leave her behind. I left some food and a note for the neighbors to take care of her . . . I'm going to miss her terribly. What is yours? A him or a her?

Peter. He's a tom. He doesn't like strangers. (He takes the cat from her, putting it back in its carrier.)

Anne (Unabashed). Then I'll have to stop being a stranger, won't I?
What does this dialogue reveal about Anne?

She is stubborn and impolite.
She is clever and confident.
She is quiet and understanding.
She is sad and confused.

Answers

Answer:

The answer is b clever and confident

Explanation:

in this text, Anne is not being stubborn, but she is being relentless and plans to hold her ground. She is also giving peter a chance to tell her about his cat, which gives us a clue that she is not being impolite just curious

I also got a 100 on the quiz let me know if you need any of the other answers.

Answer:

The answer is b clever and confident

Explanation:

Other Questions
find all the square numbers that are greater then 20 but less then 50 what is the difference between a rewnewable energy resource and a nonrenewable energy resource 1. Use the distributive property to simplify.3 (a 2c) I need help now I do not know what the answers are and this is due tonight Which gas production would you measure if you wanted to determine if cell respiration was taking place? please help me, it would rlly be appreciated what is -4 = k - (-6) ? The temperature on Monday was -23 F. The temperature on Tuesday was 18 higher. What was the temperature on Tuesday? A. -41 F B. 5 F C. -5 F D. 41 F Which scenario matches the relationship shown in the table?Adi makes 25 dollars an hour.Adi spent 25 dollars on a calculator.Adi divided 25 dollars between her sisters.Adi makes 1 hour for every 25 dollars. Stephano compares losing the wine to getting wet in the stinky pond. Which does he think is worse, and what does this say about him what is one way in which otto con bismarck and camilo cavour are similar is that both leaders.... who mast vote in favor of a bill that proposes statehood for a territory ? A. House of Representatives onlyB. Senate onlyC. House of Representatives and SenateD. President of the United States pls help :( Need helpw 7 and one-half for w = 5 and five-sixths Little help, please.....Which of the following best describes the amount of daylight received in Georgia throughout the year? A. The amount of daylight is exactly the same all year longB. More daylight is received in summer than in winterC. The amount of daylight changes as the Moon phases changesD. Daylight periods are longest during the coldest weatherWILL MAKE YOU BRAINLIEST GIVE ME ANSWERS.Read this poem about the American colonists fighting the first battle of the Revolutionary War. First, identify the figurative language used in the line shown in boldface and determine its meaning. Then, explain how this figurative language contributes to the overall meaning of the poem. This Common School Movement was meant to establish schools which would serve who?Christian studentsChildren of all social classes and religionsWealthy childrenForeign children Helen can type at a rate of 70 words per minute. How many words can she type in 45 minutes? Which supporting details (the underlined ones) from the passage would be most important to include in a summary????Will mark brainleist.Please Help?????????? lessils used 25% of half a gallon (64 ounces) of milk for a recipe how many ounces of milk where left A increasing trend is said to be of what kind of correlation