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

Myra just got the latest computer game and wants to play it on her desktop. When she plays the game, she notices that it is sluggish and the animations are not very clear. What can she do to improve her gaming experience?

Answers

Answer:

Ram/cpu/gpu... Many many things she can do

Explanation:

It may be a issue of internet bandwith, if this new game requires a insane ammount of internet then it may run low FPS (frames per second) and make myra's game look slughish,but anouther issue may be the ram or cpu, like if this is a new game and you've always played like simple games, so your running on persay a core i3 or i4, it aint gonna cut it on a newer game, you gonna need a probably core i5 or i7, or be like any sane person and switch to amd, it may be a bit pricy but if you want nice clean gaming, then amd is the way to go

Also while you are at it get a ssd

I hope this helps "-"

Answer:

She can upgrade her hardware/software

Explanation:

For hardware, she can troubleshoot any broken components that are possibly in the computer, upgrade cards/fans, etc.

and for software she can upgrade her operating system, upgrade or download any missing frameworks, clear out any software that is taking too much CPU/RAM in the background using task manager/system viewer/KSysGuard, etc.

What is a characteristic of tasks in Outlook?
The Tasks view can be seen by clicking the View tab.

New tasks are created in the Appointments form

Tasks are an action item in Outlook and are basically a to-do list.

Old tasks are automatically deleted from your list​

Answers

Answer:

C. Tasks are an action item in Outlook and are basically a to-do list.

Explanation:

A to-do List is just a list of tasks.

and I took the test and got it right

Answer:

C. is correct

Explanation:

edg 2021

Using the rule of thirds places items of interest in a photograph along one of the imaginary gridlines or at the point of their intersection.

True
False

Answers

I think the answer is it’s true

Answer: tureee

Explanation::)

JAVA
Write a program that requests the user input a word, then prints every other letter of the word starting with the first letter.
Hint - you will need to use the substring method inside a loop to get at every other character in the String. You can use the length method on the String
to work out when this loop should end.
Sample run:
Input a word:
domain
dmi

Answers

import java.util.Scanner;

public class JavaApplication42 {

   public static void main(String[] args) {

       Scanner scan = new Scanner(System.in);

       System.out.println("Input a word:");

       String word = scan.nextLine();

       for (int i = 0; i < word.length(); i+=2){

           System.out.print(word.substring(i,i+1));

           

       }

   }

   

}

I hope this helps!

The program is an illustration of loops.

Loops are used to carry out repetition operations; examples are the for-loop and the while-loop.

The program in Java, where comments are used to explain each line is as follows:

import java.util.*;

public class Main {

public static void main(String args[]) {

//This creates a Scanner object

Scanner input = new Scanner(System.in);

//This prompts user for input

System.out.print("Input a word: ");

//This gets input from the user

String userinput = input.nextLine();

//The following iterates through every other character of userinput  

      for(int i =0;i<userinput.length();i+=2) {

//This prints every other characters

          System.out.print(userinput.charAt(i));

}

  }

}

The above program is implemented using a for loop

Read more about similar programs at:

https://brainly.com/question/19104397

At the start of the school year, Brianna’s history teacher announces that students’ final grades will be weighted based on how they do in three categories: exams (60 percent), final presentation (30 percent), and class participation (10 percent). Which strategy would most likely help Brianna get the best grade? spending more time studying for exams than creating the final presentation splitting her time evenly between studying for exams and creating the final presentation concentrating on creating the final presentation and speaking up in class working hard at participating in class and studying for exams

Answers

Answer:

it is A

Explanation:

did on edge test

Answer:

A

Explanation:

True or False? You should never move an injured person.
True
False

Answers

Answer:

true

Explanation:

to develop vocabulary, a student should increase their

a) use of expression

b) use of punctuation

c) oral reading rate

d) familiarity with sight words

Answers

A because you can decrease the rest and none would make sense. I learned this!!

Which of the following allows a user to quickly access a frequently used computer app? Alphabetize program icons. O Create a shortcut on the toolbar. O Delete all icons on the screen. Place all icons in one folder.​

Answers

Answer:

Create a shortcut on the toolbar

Explanation:

You can use process of elimination. alphabetizing would not help to find it quicker, but it is an easier way. Deleting all icons wouldn't help at all. And placing all icons in a folder would make it even messier. So, it is creating a shortcut. Plus, I got it right on my test :)

Answer:

its a shortcut

Explanation:

took da test and got 100

4.8 Code Practice: Question 2

Answers

Answer:

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

   print(y, end=" ")

Explanation;

yw

.
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

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

Instructions
Write a program that will add up the series of numbers: 99, 98, 97… 3, 2, 1. The program should print the running total as well as the total at the end. The program should use one for loop, the range() function and one print() command.

Sample Run
99

197

294

390







4940

4944

4947

4949

4950

Answers

total = 0

for x in range(99, 0, -1):

   total += x

   print(total)

I hope this helps!

Write a for loop in python that prints 10 random numbers between 1 and 100 inclusive.

Answers

import random

for x in range(10):

   print(random.randint(1,100))

guys can u help me write a program need help asp will give 25 points and brainlist if correct

Answers

import java.util.Scanner;

public class Lab04b_Numbers {

   

   public static void main(String[] args) {

       Scanner keyboard = new Scanner(System.in);

       System.out.print("Enter your GPA: ");

       double gpa = keyboard.nextDouble();

       System.out.print("Enter cost of a new car: ");

       double cost = keyboard.nextDouble();

       System.out.print("Enter average amount of rain this month: ");

       double rain = keyboard.nextDouble();

       System.out.print("What is your average for history class: ");

       double avg = keyboard.nextDouble();

       System.out.println("In 2020 a car cost $"+cost+".");

       System.out.println("Wow "+gpa+" GPA is good, but "+rain+" inches is bad.");

       System.out.println("Now only "+avg+" percent of people like tacos.");

       System.out.println("Sorry for the "+gpa+" percent who don't.");

       System.out.println(rain+", "+gpa+" or "+avg+" which do you want for a grade?");

   }

   

}

I think this is what you're looking for. Best of luck.

Mr. King is in an area on the taskbar opening programs he use frequently, what is this area called? Q_____ L_______h.

Answers

Answer:

Microsoft Windows. The default settings for the taskbar in Microsoft Windows place it at the bottom of the screen and includes from left to right the Start menu button, Quick Launch bar, taskbar buttons, and notification area.

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

Which of these are reasons to evacuate a building during an earthquake? Mark all that apply.
A. There is a water leak.
B. The building is on fire.
C. There is structural damage to the building like newly cracked walls.
D. There is a gas leak.

Answers

Answer:

D

Explanation:

Answer:

c, b

Explanation:

I am guessing those are correct I don't really know

Analyze the map below and answer the question that follows. A topographic map of Northwestern Russia. Areas on the map are circled and labeled 1, 2, 3, and 4. 1 is a mountain range. 2 is a flat area. 3 is a highland area. 4 is a plateau. Image by Natural Earth The region labeled with the number 1 on the map above is the __________.

Answers

Answer:region 1

Explanation:

Answer:

region 1

Explanation:

correct on edg 2020

Can you guys list all the Linux Debian Apps that can only be installed on a Linux terminal command line, I have a deb 32 bit

Answers

Answer:

Two of those are apt and apt get and the other one is dpkg. 4. You will see a list of Debian Ensure package lists and installed packages are up to date. ... Apt may fail to remove old Linux kernels when using an Ubuntu version that 39 s ... To install it just enter the following command from the Terminal sudo apt install apt ...

Explanation:

In an inequality between two numbers, -2.1 is located below the other number on a vertical number line. So, the other number is -2.1. One possible value of the other number is .

Answers

Answer:

-2.0

Explanation:

Given

Number = -2.1

Required

Determine the other number

From the question, we understand that the number is represented on a vertical number.

From bottom to top, numbers on a vertical number line increases.

Since the other number is at the top of -2.1, then we can conclude that this number is greater than-2.1

Hence, possible values are ,-2.0, -1.9, etc.

Answer:

First blank: greater than.

Second bank: -1.5

Explanation:

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

In which area of the screen can features and functions of Word be accessed?

Command
Ribbon
Scroll bar
Tab

Please Hurry!!!

Answers

Answer:

Toolbar

Explanation:

j don't know if you meant that instead of scroll bar, but tool bar is the answer

Answer:

scroll bar

Explanation:

Keith has data in row 12. However, he would actually like that row to be empty. Keith should _____. A.) double-click on cell A12 and press Backspace B.) highlight row 12 and press Delete C.) use the arrow keys to move to row 12 and press Enter or Return D.) use the mouse to click row 12 and press the space bar

Answers

Answer:

B.)

Explanation:

In order to have that row, empty Keith should highlight row 12 and press Delete. This would delete all of the data in the row without effectively deleting the formulas. Therefore, allowing you to easily reuse the row if you need to add data to it once again. So this would be the best option for Keith as it easily solves the problem that he is having.

Write the line of code to calculate the area of a circle with radius 3 and store it in a variable called
area.

Answers

Answer:

area = 2.14 * 3 ** 2

Explanation:

No clue what language you use but this should be pretty universal. To find the area of a circle you use pi(r) ^ 2 or pi times radius squared

[tex]\pi r^{2}[/tex]

In python it looks like this:

>>> area = 3.14 * 3 ** 2

>>> print(area)

28.26 <Printed text

Given the formula on the left, label the parts. SUM . A2:D19 . E55 . (A2:A19,C13,E55,19) .

Answers

Answer:

SUM  

✔ function name

.

A2:D19  

✔ range

.

E55  

✔ value

.

(A2:A19,C13,E55,19)  

✔ argument

Answer:

1. B

2. A

3. A

4. C

Explanation:

On edge2020 I got it right

what isa programming language

Answers

Answer:

programming language is a formal language comprising a set of instruction that produce various kind of out put.

Answer:

A programming language defines a set of instructions that are compiled together to perform a specific task by the CPU .hope it's helps you have a great day keep smiling be happy stay safe.

Rewritable (write, erase, write again) is known as _______.

a.
CD-R
b.
CD-RW
c.
DVD-R
d.
CD-ROM

Answers

Answer:

c

Explanation:

What are 5 different google g-suite tools that you can use to collaborate and communicate with othe

Answers

it is google docs like stuff made by google

If you were the manager at a firm which deals with sensitive information of its customers, employees and other stake holders, how would you make sure that information is protected and is altered only by the designated authorized person

Answers

Answer:

explanation below

Explanation:

Management controls are some of the techniques and mechanisms that can be put in place to implement security policies – which ensure information and information systems are protected.  These controls are not only used by managers but can be exercised by selected users.  

These controls must be put in place to cover all forms of information security, physical security and classification of those information.  

Wilma is looking for facts about social media for her research project. What fact should she use for her project? a Communicating with social media is hard b Social media is a great way to communicate. c Social media is fun and easy to use. d The minimum age for some social media sites is 13. please help me and i will give you 5 stars

Answers

Answer:

d.

Explanation:

Out of all of the options listed, the only choice that is actually a fact would be that the minimum age for some social media sites is 13. This is because this age restriction is not set by the social media sites but instead by the Children's Online Privacy Protection Act (COPPA) within the US. The other options are all personal opinion, the most accurate of which is that "Social media is a great way to communicate." which there can still be someone with an opposing argument which means that it is not factual but instead it is an opinion.

Other Questions
An experiment involves studying the composition of genders of a set of triplets. What is the probability that there are 2 boys and a girl in the set? define two measurements in qualitative data with example Which quote provides the best example of a comparative structure?By the end of the second week, in fact, the fairies had covered the entire plot with footprints. At last they gave up and let the woman live.When he had learnt them thoroughly he could return to her and she would give him more lessons in hunting. Leopard obeyed.At one time leopards did not know how to catch animals for food. Knowing that the cat was very [skillful] in this way . . .In the middle of the night the leopard arrived. He went first to the chiefs hut but when he saw the fire, he crept away. How did the election of 1876lead to the end ofReconstruction? Write a function that converts a string into an int. Assume the int is between 10 and 99. Do not use the atoi() or the stoi() function. -4(5x - 3) + 15Solved please! ONLY ANSWER THIS IF YOU ARE FLUENT IN FRENCHOUI NON InversionJ' ai Je n'ai pas ai - je ?tu as tu n'as pas as - tu ?il a il n'a pas a - t - il ?elle a elle n'a pas a - t - elle ?nous avons nous n'avons pas avons - nous ?vous avez vous n'avez pas avez - vous ?ils ont ils n'ont pas ont - ils ?elles ont elles n'ont pas ont - elles ?Exercice : Compltez avec le verbe avoir1. J' __ un chapeau que je mets tous les jours.2. Tu n' ___pas de livre pour rviser.3. Est-ce qu'il __ un professeur particulier?4. ____ -t-elle entendu ce que je viens de dire?5. Nous n' ____ pas d'ailes mais rvons de voler.6. _____ -vous retrouv vos cls?7. Ils _____ un stylo par personne.8. Elle n' _____ pas de serviette, il faut lui en prter.9. _____ -vous deux mains et deux pieds ?10. Est-ce que la petite fille ______la force de tenir ce chien ? Which of the following would be an example of an implicit cost?(i)forgone investment opportunities(ii)wages of workers(iii)raw materials costsGroup of answer choices Describe and give an example of mutualism. Describe and give an example of commensalism. Describe and give an example of parasitism.Describe and give an example of competition. Describe and give an example of predation. First person to answer the question completely gets brainliest. Identify and describe two archetypes. Your response should be one paragraph. how does the author use the structure of a frame story to tell the order of events in the 7th man? Which of the following is E F?D = {x|x is a whole number}E = {x|x is a perfect square between 1 and 9}F = {x|x is an even number greater than or equal to 2 and less than 9}1. {4}2. {3, 4, 5, 6, 7, 8}3. {2, 3, 4, 5, 6, 7, 8}4. {2, 4, 6, 8} Pencils cost 25 cents apiece. Rulers cost 80 centsapiece. Susan spent $20 for a total of 36 rulers andpencils. How many pencils did she buy? The birth weights of newborn babies in the United States follow a normal distribution with a mean of 3.4 kg and a standard deviation of 0.6 kg. Researchers interested in studying how children gain weight decide to take random samples of 100 newborn babies and calculate the sample mean birth weight for each sample. Calculate the mean and standard deviation of the sampling distribution which university provides boxing as a sport in South Africa? I need some major help!!!!!!Part II: Application and Critical Thinking (20 points)6. Many classical era civilizations are said to have had golden ages. Think about what makes an age golden. Now, look at the golden ages of Athens, India, and Han China. What did these golden ages have in common? How were they different? How did the golden ages of Athens and Han China come to an end? How might leaders of those civilizations have kept their golden ages from ending?Write a four-paragraph essay answering each of the questions. Be sure to clearly develop and organize your ideas and support your answer with evidence from the course. Which of an atom's electrons are inrolved in chemical reactions? what is the answer to 80524 plz tell me plzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz god help me!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1111PUT THIS IN YOUR OWN WORDS1. Why do you think we do not know the Freedom Seekers name?2. Why is it important to know that this Freedom Seeker had only recently arrived from Africa?3. What challenges did the Freedom Seeker likely face during his escape?text: In late 1752 a young African man escaped from an enslavers estate and vanished into the woods. We dont know his name. We dont know what happened to him. But what we can piece together about his life reveals an important part of the citys past. In the 1600s and 1700s, New Yorks economy relied on enslaved labor. What can the records about a person escaping slavery teach us about life in this slave city?Very few original images of enslaved people survive today. Enslaved people themselves were denied the resources to produce and preserve paintings or drawings, while those who could had little interest in portraying captives. The typical image of American slavery is set on a southern plantation. But slavery was also an integral part of life in the north. For nearly 200 years, enslaved people in New York provided labor to grow crops, move goods, and run households. At the time the Freedom Seeker made his escape in 1752, enslaved people made up at least a quarter of the workforce in the city and perhaps half of those who worked in outlying agricultural areas.Like millions of others, this Freedom Seeker was carried to America from Africa in the belly of a slave ship. His enslavers advertisement reports that the young man had only recently been imported at the time of his escape in 1752. This might mean he arrived on the Wolf, a Livingston-funded slave ship that set sail in September of 1749, bound for the Coast of Africa. The Wolf pulled back into New York harbor in early May of 1751. This Freedom Seeker from Livingstons enslavement was possibly among them. The first clues about enslaved life can be found in the advertisement itself. Advertisements like this provide rare information about individual fugitives. Enslavers gave meticulous descriptions, hoping that slave catchers would be able to identify and return Freedom Seeker. Under almost no other circumstances did writers record such detail about enslaved people in New York. The ad reports that the missing man had only recently arrived from Africa at the time of his escape. Following New Yorks suspected slave insurrection of 1741, enslavers hoped that captives fresh from Africa would be more isolated and disconnectedand therefore more docilethan enslaved people who had already been in the Americas for a time. Philip Livingston suspected the escaped man was hunkered down in the Woods near Harlem. While the wilderness of northern Manhattan made a good hideout, the high reward probably encouraged many New Yorkers to search for him. With the water too cold for swimming, the Freedom Seekers only options to escape the island would be to steal a boat or slip across a bridge.What was daily life like for the Freedom Seeker and other enslaved people in New York? Written records are few, but a pivotal archaeological discovery offers some clues about the experience of enslaved people. In 1991, during excavation for new offices, workers uncovered the African Burial Ground, a long-forgotten cemetery now buried many feet beneath the streets of lower Manhattan. Archaeologists unearthed the remains of 419 individuals at the African Burial Grounda fraction of the 15,000 believed to be buried there.Though enslaved people in New York faced brutal conditions and harsh treatment, they did all they could to preserve their own humanity. They created loving family relationships, retained elements of traditional African culture, and challenged their captivity. Resistance took many forms, from refusing to work to violent rebellion. Many, like the Freedom Seeker escaping Livingston, resisted by running away. What kinds of essays are there?