pls help quick

Question #4. This question is worth 55 points. You may use the exam reference sheet. Write the pseudocode for a procedure, pow2() that displays the nth power of 2 where n is a parameter passed into the procedure. PROCEDURE pow2 ) { }​

Pls Help Quick Question #4. This Question Is Worth 55 Points. You May Use The Exam Reference Sheet. Write

Answers

Answer 1

Answer:

The procedure is completed as follows:

PROCEDURE pow2(n){

count = 1

power = 1

WHILE count <= n

       power = power * 2

       count = count + 1

END WHILE

Print power

}

Explanation:

A pseudocode is not a real code and might not be syntactically correct. This is so because it only helps to understand what the code is all about and gives and insight of the code.

Having said that, the pseudocode for the program is as follows:

This line defines the procedure

PROCEDURE pow2(n){

This line initializes count to 1

count = 1

This line initializes power to 1

power = 1

The following iteration iterates from 1 to n

WHILE count <= n

This calculates the nth power of 2

       power = power * 2

       count = count + 1

The ends the while loop

END WHILE

This prints the calculated power

Print power

The procedure ends here

}

Note that: I'll assume that the 4 lines illustrated do not mean that the pseudocode be written in just 4 lines.

So, more lines would be needed


Related Questions

Select the correct answer.
Bella is moving the camera physically to the left to capture a fast-paced shot. Which technique is she using?
OA
pan left
OB.
truck left
O c.
truck right
OD.
zoom left
OE.
pan right

Answers

A ?
Because Bella is physicals moving the camera so I think it is A

convert the decimal number 191 into an binary number

Answers

Answer:

Binary: 10111111

Explanation:

Which of the following is an example of a database?
A. the names and ages of children
B. the title of a book
C. a word that rhymes with bat
D. the name of the most recent U. S. president

Answers

A. The names and ages of children

Answer:

the names and ages of children

19 POINTS! (Excel) Use the drop-down menus to complete the steps for opening and using the Format Cells dialog box to change font and basic formatting.
1. Select the cell or range you want to format.

2. (1.Double click 2.single click 3. right click) the selection and click Format Cells to open the Format Cells dialog box.

3. Click the (1.format 2. font 3. cells) tab.

4. Apply the desired formats, and click OK.

Answers

Answer:

c 3

Explanation:

Answer:

Here

Explanation:

Number 1 Right-Click

Number 2 Font

Which MLA web source citations are formatted correctly? Check all that apply.
Wolfson, Elijah. “Newsweek Names a Mars Crater.” Newsweek. Newsweek, 28 Feb. 2014. Web. 1 Mar. 2014.
Herman, Barbara. “Where’s the Fire?” Newsweek. Newsweek, 24 Oct. 2013. Web. 25 Feb. 2014.
Niesen, Joan. “Learning to Cope: Disabled Vet Hunt Finds Freedom as Paralympic Skier.” Sports Illustrated. Web. 27 Feb. 2014.
A Mighty Girl. N.p., n.d. Web. 26 Feb. 2014.
Kloc, Joe. “Kepler Mission Finds Hundreds More Planets.” 2 Feb. 2014. Web. 25 Feb. 2014.

Answers

Answer:

Explanation:

A,B on exp.

The correct MLA web source citations are:

Wolfson, Elijah. “Newsweek Names a Mars Crater.” Newsweek. Newsweek, 28 Feb. 2014. Web. 1 Mar. 2014.

Others are:

Herman, Barbara. “Where’s the Fire?” Newsweek. Newsweek, 24 Oct. 2013. Web. 25 Feb. 2014.

What is MLA citation?

MLA in-text citation style is known to be a citation method that is often used in citing authors. Her one often uses the author's last name and the page number from where the work is taken from.

A good example of this  MLA web source citations is:

Wolfson, Elijah. “Newsweek Names a Mars Crater.” Newsweek. Newsweek, 28 Feb. 2014. Web. 1 Mar. 2014.

Learn more about MLA web source  from

https://brainly.com/question/26110488

#SPJ2

A file is transferred from one computer to another at the rate of 320 Kb/sec. How long would it take to complete the transfer if the file was 12.4 MB

Answers

Answer: 38.75 secs

Explanation:

Given data:

Size of the file been transferred = 12.4mb

Transfer speed = 320kb/secs.

Solution:

First we convert 12.4mb to kb.

= 12.4 * 1000

= 12,400kb.

We calculate for how long it would take to transfer the data

= 12400kb/320kb/s

= 38.75secs.

It would take 38.75 secs to transfer the data of 12.4mb.

What is used to give credit to the source from which information is obtained?
a citation
linkage
plagiarism
a format

Answers

a citation gives credit to the source

Answer:

a citation

Explanation:

I need the answer to life. I cant live without my POGCHAMPS!

Answers

Answer:

Pray to God and ask him for help in life. May God bless you

Explanation:

Answer:

Pog

Explanation:

Poggers

What would be the results if the Formula =2*C8+3*D9 is entered into a cell if the value displayed in C8 is 3,and the value in cell D9 is 2? Select one: a. 3 b. 18 c. 12 d. 25

Answers

Answer:

The correct answer is:

12 (c)

Explanation:

The codes as shown C8 and D9 represent cells in an Excel spreadsheet. the cell tags describe the column letter and row numbers. For instance; C8 means the 8th row in Column C, while D9 means; the 9th row in column D. In order to do mathematical functions with Excel, the formulae starting with an equal sign (=) like the one shown in this example are used. The function is solved as follows:

= 2*C8+3*D9

where:  

* = multiplication sign (×)

C8 = 3

D9 = 2

∴ 2*C8+3*D9 = (2 × 3) + (3 × 2)

= 6 + 6 = 12

∴ the result is 12

What is another name for a numbered list

Answers

Answer:

Another name for a numbered list is a list

How are online sources used? Check all that apply.

as a way to learn from others
as a way to play games
as a way to find information
as a way to socialize with others
as a way to copy the work of others

( and if not answer correctly I will report) · ⊃
·

Answers

Answer:

1 3 and 4

Explanation:

Answer:

as a way to learn from others

as a way to find information

as a way to socialize with others

Explanation:

why is a computer called diligent machine ?​

Answers

Computer is called diligent machine because it can perform the task repeatedly without loosing its speed and accuracy for a long time.

What is the purpose of the introduction in an expository essay? A. to introduce the author and his or her dedication B. to highlight the main points of the essay C. to describe the supporting details D. to provide a figurative interpretation of the essay

Answers

I think it’s B, sorry if I’m wrong with this >

Arrange the numbers 4, 8, 2, 6, 3, 5, 0, 1 into ascending order using the Merge sort algorithm

Answers

Answer:

1 2 3 4 5 6 you are missing seven the 8

Explanation:

Which statement is true about hacking?
Hacking is generally a positive practice to stop cyber crime.
Hackers do so for various reasons, including the challenge of it.
Hacking cannot be used in the process to help protect sensitive information.
Hackers are rarely successful when attempting to bypass security software.

Answers

Answer:

Hackers do so for various reasons, including the challenge of it

Explanation:

I would say it is this. Plz mark brainliest Thanks:)

Answer:

Hackers do so for various reasons, including the challenge of it

Explanation:

How many categories should Jane use to track multiple levels of information learned through a student survey on teachers at her school? a. One category per teacher c. As many categories as she needs to understand the results b. Only one teacher per category d. None of these Please select the best answer from the choices provided A B C D

Answers

Answer:

c. As many categories as she needs to understand the results

Explanation:

In order to do this, she should track as many categories as she needs to understand the results. This is because Jane might need to understand various aspects of different teacher's performance during school hours. To do so she would need many different categories that apply to all of the teachers. That way when she gathers the results she can see which teachers perform best in a specific category when compared to the others, thus giving Jane a better understanding of each teacher's overall performance.

Answer:

i think its c because, In order to do this, she should track as many categories as she needs to understand the results. This is because Jane might need to understand various aspects of different teacher's performance during school hours. To do so she would need many different categories that apply to all of the teachers. That way when she gathers the results she can see which teachers perform best in a specific category when compared to the others, thus giving Jane a better understanding of each teacher's overall performance.

Explanation:

Guys im getting the ps5 tomorrow :)​

Answers

Answer:

Congrats.

Probably will be better than the Xbox minifridge

What is the advantage of using the Publish Online option for sharing a calendar? It creates a web version that can be viewed by anyone. It allows an employee's boss to see busy/free information. It allows a user inside an organization to view the calendar. It allows a user outside an organization to view the calendar.

Answers

Answer:

its D. it allows a user outside an organization to view the calendar.

Explanation:

i just got it right on edge 2020.

Answer:

B

Explanation:

, , ,g d,t ,dt m,dt ymtd

Answers

Answer:ummm me confused

Explanation:

Choose a different well-known company that you know of, and describe its direct and indirect competitors. Describe at least 2 direct competitors and 2 indirect competitors.

Answers

nondirect competition is the variance between vendors whose products or services are not the same but that could gratify the consumer need
Lets take exampl of microsoft corporation
The indirect competitors are WHOLE FOODS and WAL-MART
Direct competitors sells the product or services that are same
the direct competitors are Apple, Google, HP, IBM
hope it helps

Answer:

Apple

Direct Competitors: Microsoft and Samsung

Indirect Competitors: Best Buy and Target

correct on edge

User can fill numbers in a column by using _______ command, ________ is a built-in formula in Excel to do calculations, Entering data into a cell means to _______ data into a cell, The MIN function displays the ________ value in a given list of values

Answers

Answer:

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

Explanation:

This question is about fill-in-the-blank. The correct options in these fill-in-the-blanks are given below:

User can fill numbers in a column by using Down, Right, Up, Left, Series and Justify command

You can use these commands to fill numbers in columns. You can find these commands in the HOME tab under the Editing group of commands.

AutoSum is a built-in formula in Excel to do calculations

Autosum is a built-in formula that helps you to perform calculations, such as to calculate sum, average, and to find the minimum and maximum value. You can find the AutoSum command in the Home tab under the Editing group of commands.

Entering data into a cell means to put/insert data into a cell.

The MIN function displays the minimum value in a given list of values.

You use the MIN() function to display the minimum value in a given list of values or in the columns.

which gallery will allow a user to access a variety of preconfigured formatting styles for images that are added to a PowerPoint presentation

Answers

Answer:

Picture Effects gallery.

Explanation:

PowerPoint application can be defined as a software application or program designed and developed by Microsoft, to avail users the ability to create various slides containing textual and multimedia informations that can be used during a presentation. Some of the features available on Microsoft PowerPoint are narrations, transition effects, custom slideshows, animation effects, formatting options etc.

To format an image on PowerPoint, you can either use the Artistic Effects or Picture Effects.

The Picture Effects gallery allows a user to access a variety of preconfigured formatting styles for images that are added to a PowerPoint presentation.

Basically, the Picture Effects consist of the following preconfigured formatting styles; transparent shadow, soft edge, reflection, glow, 3-D rotation, metal frame, bevels, perspectives etc.

Answer: Picture Styles gallery

Explanation: He is correct he just typed it wrong.

4.8 Code Practice: Question 2

Answers

Answer:

for y in range(88, 43, -4):

   print(y, end=" ")

Explanation;

yw

Kerri uses a photo editing program a lot. To increase her productivity, she should_____.


delete it from the Start menu

put it in her My Documents folder

move the program to the desktop

create a shortcut for it on Quick Launch

Answers

Answer:

Move the program to the desktop

Explanation:

It will be easier to access and quicker to open.

Identify 5 way computer are used in weather forecasting an traffic control​

Answers

Answer:

Computers are used for interpolating data, and analyzing very complicated data.

Explanation:

In forecasting we need to look at a lot of weather variables (temperature, dew point, pressure and wind speed to name a few). We only collect this data from weather observation sites which can be tens to hundreds of kilometers apart. In order to determine these values at locations between the observation sites we interpolate.

When you are forecasting you need look at a lot of data and determine what is going on to determine what is going to happen next. If humans did all the interpolating themselves for all the data they would never be able to issue the forecast in the time that is expected. Furthermore, now that we have very complicated values to analyze (vorticity for example) there is no way that a human can calculate the effect of all the various factors in play. A computer has to do it.

Computers are also required for using weather radar, and yes to a lesser extent satellite data.

.
Why does the Moon have a greater effect on the tides compared to the Sun? (Select WILL GIVE BRANLEST PLS ASAP

two.)
The Moon is smaller than the Sun.
The Sun is closer to the Earth.
The Moon’s gravitational pull on the Earth’s oceans is stronger.
The Moon is closer to the Earth.
The Sun’s gravitational pull on the Earth’s oceans is stronger.

Answers

The correct option that explains the reason why the moon will have greater effect on the tides compared to the sun is;

Option D; The moon is closer to the Earth

Generally speaking, ocean tides on the earth are caused by both the gravity of the moon and the gravity of the sun.

Now, the mode of generation of ocean tides is not really by the total strength of gravity, but rather by the gravitational gradient.

Gravitational gradient is simply defined as the gravity differences from one spot to the other.

Now, from research, we know that the sun is far larger than the moon and this means in consequence it will have a far stronger total gravity than that of the moon. However, due to the fact that the moon is closer to the earth than the sun, it means the moon would possess a stronger gravitational gradient than which the sun possesses.

Now, let's get to ocean tides; The ocean tides arise as a result of the response of ocean water to a gravitational gradient and as a result, the moon will have a greater role in creating tides than that which the sun does.  

Read more at; https://brainly.com/question/24996618

Match the type of multimedia artist to the description of the jobs they perform.

storyboard artist

background artist

special effects animator

multimedia designers

works with other animators to set

the scenes depicting the key

characters

arrowRight

works with various elements to

create content for web pages

arrowRight

creates key frames that depict

all the important scenes in the

story

arrowRight

provides visual enhancements

to make the action depicted

more interesting and appealing

Answers

Answer:

d or a

Explanation:

hope it helps

what is the main difference between a search bar and a web browser

Answers

Answer:

i think a search is search bar is looking for application and files that are in the system while web browser is for searching things that are not in ur pc or laptop but searching thing i a good example google

What affect did the Scopes trial have on the school curriculum in Tennessee?
It changed the curriculum to include creationism in science classes.
It did not change the curriculum because Bryan died shortly after the trial.
It changed the curriculum to include evolution in science classes.
It did not change the curriculum because Scopes lost the case.

Answers

D)It did not change the curriculum because Scopes lost the case.

The effect that Scopes trial had on the school curriculum in Tennessee is that

It did not change the curriculum because Scopes lost the case.

The Scopes trial

The scopes trial was a trial that involved a high school teacher called Scopes and the government of the United States.

This trial took place at the time where the US was subject to very serious Christian beliefs.

The reason for the trials was that Scopes had taught evolution in the classroom.

Read more on the Scopes trial here:

https://brainly.com/question/874883

how to beat level 50 in give up robot 2

Answers

Answer:

just follow the steps and and become tough calm but tough

Other Questions
DNA and RNA are both types of A. enzymesB. polysaccharidesC. proteinsD. nucleic acids what was the type of government did spain want in 1939 For the ancient Aztecs. wearing feathers indicated that a person had a high social standing. What do people wear today to try to show they have a high social standing? PLZ HELP I BEG U!!!!!! ILL MARK U BRAINLIEST Create a story using the inequality symbols , ,, . the story must be creative, detailed, coherent, and written clearly. it does not have to be solely math related. A student conducted a comparative investigation to test the hypothesis that different areas of New York City have different levels of air pollution. Which is a likely benefit of this comparative investigation? A It provides her with a large amount of information about air pollution in New York City. B It provides her with results that are valid for a long time.C It requires that she observe a limited number of variables. D It allows her to learn about the causes and effects of air pollution in major cities. PLS HELP... WILL MARK BRAINLIEST!!!!Which of the following did not lower the morale of both Mexican and Texan troops at San Antonio?a. cold weatherb. lack of volunteers and troops willing to fightc. lack of suppliesd. small skirmishes between the two sides Four solutes are added to a solvent. All solutes have the same mass and solubility. The surface areas of four solutes are 2 mm2, 4 mm2, 6 mm2, and 10 mm2. Which solute will dissolve the quickest? 2 mm2 4 mm2 6 mm2 10 mm2 Graves Disease is an autoimmune disorder that causes an overproduction of the hormone produced in the thyroid. These hormones are responsible for cellular metabolism. What would this disorder probably result in? change this into your own words. someone pls help plsss If f(x) = 4x - 8, what is the value of f(-3)? 2/3 ( 12 n + 6 ) 1 5 ( 10 n 2 ) If 30cm of 0.45 mol dm3 HCl reacted with NaOH, how many moles of HCl reacted? determine the angle of x :p Fill in the blank with the correct conjugation of the verb in parentheses.Yo _____ (aprender) espaol.-aprendes-aprendo-aprende-aprendemos Please help me I dont understand stand it Which type of seed do you think the ground finches preferred? Why do you think this? Getting ready for his semester studying abroad in Singapore, Brayden buys a pack of gum to help pop his ears on the flight. When he lands in Singapore and goes through customs, he is advised that he must throw away the gum or be at risk of committing a crime. Why would Brayden want to throw away the gum, even though he just purchased it? Gum is illegal in all countries and he should not have purchased it. Brayden does not want to go against the norms in Singapore. While gum is not illegal in many places, it is against the law in Singapore. Brayden should not have to dispose of the gum because it is his right to have it. You and your friends go to the beach for vacation. You all walk down to the beach to go swimming. When you get there, you see the water is murky and green, and there are algae blooms floating on top. If it is excess nutrients which are feeding the algae blooms and lowering the oxygen content in the water, that process is called:_______.a. nutrient cycling.b. nitrification.c. eutrophication.d. hypoxia. Create a proportion using the form = to represent the following word problem.78% of what number is 42? Which structures are responsible for mechanical breakdown of food