write an algorithm to print circumference of a circle​

Answers

Answer 1

Answer:

1 Start

2 Read the value of radius r of Circle

3. Give Pi = 3.14

4 Calculate area of Circle = Pi x r x r

5. Calculate Circumference of circle

( You can use either C= 2 X Pi X r Or Area (A) = Pi X r X r Circumference (C) = 2 X Pi X r A/r = Pi X r A/r = C/2 So C = 2 x ( A/r ) 5. Print area and Circumference

6. End.


Related Questions

Aurelia is designing a user interface for a new game app. Which of the following should she taken into consideration for the user interface?

A.
how many variables will need to be used

B.
what inputs the game will need to take in from the user

C.
what type of loops will be used

D.
whether an array will need to be used

Answers

Answer:

C

Explanation:

what types of loop will be used.

____________________ are protocols used by routers to make path determination choices and to share those choices with other routers.

Answers

Answer: Routing protocols

Explanation:

How many passes will it take to find 16 using a binary search?

2, 4, 6, 8, 10, 12, 14


3

4

2

1

Answers

Answer:

1

Explanation:

Binary search is a useful approach for reducing a list of items. It divides the section of the list that might contain the item in half repeatedly until there is only one viable position left. Thus, option D is correct.

What using a binary search?

Recursive and iterative methods. The main distinction between the two approaches is that the recursive approach utilizes O(logN) space complexity, whereas the iterative approach uses O (1).

On sorted arrays, binary search operates.The binary search process begins by comparing a middle-of-the-array member to the desired value.

Therefore, It is necessary to locate element 59 in a 10-digit array. The index of the elements ranges from 0 to 9. The array's centre is now calculated. To do this, divide the index's leftmost and rightmost values by two.

Learn more about binary search here:

https://brainly.com/question/12946457

#SPJ2

The software which manages environment for running programs handling error controlling devices configuring the computer system and managing the resources of a computer.
Write the technical term of the given question of the picture .
Correct Answer =⟩ Thanks
Best answer =⟩ Brainliest
Random answer =⟩ Reported and deleted ​

Answers

Answer:

D

Application

System software is the set of programs that enables your computers hardware devices and Application software to work together.

Practical computer systems divide software systems into two major classes: System software: Helps run the computer hardware and computer system itself. System software includes operating systems, device drivers, diagnostic tools and more. ... (Some application software is pre-installed on most computer systems.)

Explanation:

Need Some Photography help

Answers

C I believe cause that’s what my teacher always told us to do

Does anybody have the answer for 2.19.6 checkerboard for codehs??

Answers

Answer:

speed(0)

penup()

setposition(-200,-200)

pendown()

def draw_square_row():

color_value = 0

for i in range (10):

if color_value %2 == 0:

begin_fill()

color("red")

for i in range (4):

forward(40)

left(90)

forward(40)

color_value = color_value + 1

end_fill()

elif color_value %2 == 1:

begin_fill()

color("black")

for i in range (4):

forward(40)

left(90)

forward(40)

color_value = color_value + 1

end_fill()

def draw_square_row_2():

color_value = 1

for i in range (10):

if color_value %2 == 0:

begin_fill()

color("red")

for i in range (4):

forward(40)

left(90)

forward(40)

color_value = color_value + 1

end_fill()

elif color_value %2 == 1:

begin_fill()

color("black")

for i in range (4):

forward(40)

left(90)

forward(40)

color_value = color_value + 1

end_fill()

def move_up_a_row():

left(90)

forward(40)

right(90)

backward(400)

for i in range (5):

draw_square_row()

move_up_a_row()

draw_square_row_2()

move_up_a_row()

Explanation:

tell me if you get it right

Identify the type of software that should be in main memory in order to use the keyboard? *


A. word processing software

B. systems software

C. spreadsheet software

D. applications software

Answers

Answer:

Ok so im not completely sure about this but i think its

Systems Software

Explanation:

because word processor is for typing documents and stuff

spreadsheet is for like tracking you money your daily money or something

or some kind of graph for stuff like that (i think)

applications software well your keyboard isn't a application unless its the on screen keyboard

so the only one left is system software

hope it helped :)))) (●'◡'●)

What does it mean by does the author create an emotional connection toward the readers?

(Emotional connection reading definition)

Answers

Answer:

the author makes an emotional connection between you and the character

Explanation:

short version:you feel the characters emotion

Lucy is in charge of creating a user interface for a new app. During what phase of the project should she expect to complete her work?

A.
alongside the development of the app

B.
after the app has been developed

C.
during the testing phase

D.
during the design phase

Answers

Answer:

C option

Explanation:

Because in testing phase the game has been developed and test for errors in game.

9. Which of the following is a disadvantage of cloud storage? * Accessibility (offline/without internet) Reduction of storage cost to organization, Increased possibility for disaster recovery, Efficient management of stored Data​

Answers

Answer:

Accessibility offline

Explanation:

if a granola bar has 5.7 grams of protein in it how many centigrams of protein does it contain?

A. 57

B. 0.57

C. 570

D. 5,700 ​

Answers

The answer is 570 hope it helps

Farmer John has recently acquired NN new cows (3≤N≤5×105)(3≤N≤5×105), each of whose breed is either Guernsey or Holstein.The cows are currently standing in a line, and Farmer John wants take a photo of every sequence of three or more consecutive cows. However, he doesn't want to take a photo in which there is exactly one cow whose breed is Guernsey or exactly one cow whose breed is Holstein --- he reckons this singular cow would feel isolated and self-conscious. After taking a photo of every sequence of three or more cows, he throws out all of these so-called "lonely" photos, in which there is exactly one Guernsey or exactly one Holstein.

Answers

//Note: This program was compiled using turboc compiler. If you are using gcc or any other compiler, then you have to modify the code slightly
#include
#include
int main()
{
int field[110][110]; //FIELD SIZE
int N, i, j;
char dir[50]; //TO REPRESENT THE DIRECTIONS OF 50 COWS
int cow[50][1][2]; //TO STORE THE X,Y COORDINATES OF 50 COWS
int infinity[50]; //TO IDENTIFY, HOW MANY COWS VALUES WILL BE INFINITY AND VICE VERSA
int count[50]; //TO COUNT AMOUNT OF GRASS EATEN BY EVERY COW
int cont = 1; //FLAG VARIABLE, INITIALLY KEEP IT 1.

//CLEAR THE SCREEN
clrscr();

//MARK ALL FIELD POSITIONS AS 1, INDICATING THERE IS GRASS TO EAT
for (i=0; i<110; i++)
for (j=0; j<110; j++)
field[i][j]=1;

//FOR ALL COWS SET INFINITY AS 1 AND COUNT AS 0. I.E WE ASSUME THAT
//EVERY COW WILL EAT INFINITE GRASS AND INITIALLY IT HAS NOT EATEN ANYTHING
//SO COUNT IS SET AS 0
for (i=0 ; i<50 ; i++){
infinity[i] = 1;
count[i] = 0;
}

//READ N, I.E NO. OF COWS
scanf("%d", &N);

//FOR EACH COW, READ THE DIRECTION AND X, Y COORDINATES
for( i=0 ; i fflush(stdin);
scanf("%c%d%d", &dir[i], &cow[i][0][0], &cow[i][0][1]);
}

//REPEAT UNTIL CONT==1
while( cont==1 ){

//FOR EVERY COW CHECK ITS DIRECTION
for( i=0 ; i //IF THE COW IS FACING NORTH DIRECTION
if( dir[i] == 'N'){
//IF THE RESPECTIVE COW'S Y COORDINATE IS LESS THAN 109
if( cow[i][0][1] < 109 )
//IF THERE IS GRASS IN THE PARTICULAR LOCATION,
if( field[cow[i][0][0]][cow[i][0][1]] == 1 ){
//LET THE COW MOVES TO THE NEXT LOCATION, BY INCREMENTING THE VALUE ASSOCIATED WITHN Y-COORDINATE
cow[i][0][1]++;
//INCREMENT THE COUNT VALUE FOR THE RESPECTIVE COW
count[i]++;
}
else
//IF THERE IS NO GRASS IN THAT LOCATION, THEN MAKE THE INFINITY VALUE CORRESPONDING TO THIS COW AS 0
//COW STOPS
infinity[i] = 0;
}

//IF THE COW IS FACING EAST DIRECTION
if( dir[i] == 'E'){
//IF THE RESPECTIVE COW'S X COORDINATE POS IS LESS THAN 109
if( cow[i][0][0] < 109 )
//IF THERE IS GRASS IN THAT PARTICULAR LOCATION
if( field[cow[i][0][0]][cow[i][0][1]] == 1 ){
//LET THE COW MOVE ON TO THE NEXT LOCATION
cow[i][0][0]++;
//INCREMENT THE COUNT FOR THE RESPECTIVE COW
count[i]++;
}
else
//IF THERE IS NO GRASS THEN MAKE INFINTY AS 0 FOR THE PARTICULAR COW.
//THE COW STOPS
infinity[i] = 0;
}
}

/*IN THE PREVIOUS TWO LOOPS WE MADE THE COW TO MOVE TO THE NEXT LOCATION WITHOUT
EATING THE GRASS, BUT ACTUALLY THE COW SHOULD EAT THE GRASS AND MOVE. THE BELOW
LOOP ENSURES THAT. THIS TASK WAS SEPARTED, TO ALLLOW TO TWO COWS TO SHARE THE SAME
POSITION FOR EATING.*/
for( i=0 ; i //IF THE COW IS FACING NORTH
if( dir[i] == 'N'){
//IF CURRENT Y POSITION IS <= 109
if( cow[i][0][1] <= 109 )
//IF IN THE PREVIOUS Y POSITION, THERE IS GRASS
if( field[cow[i][0][0]][cow[i][0][1]-1] == 1 )
//REMOVE (EAT) THE GRASS
field[cow[i][0][0]][cow[i][0][1]-1]=0;
}
//IF THE COW IS FACING EAST
if( dir[i] == 'E'){
//IF CURRENT X POS IS <= 109
if( cow[i][0][0] <= 109 )
//IF IN THE PREVIOUS X POS, THERE IS GRASS
if( field[cow[i][0][0]][cow[i][0][1]] == 1 )
//REMOVE (EAT) THE GRASS
field[cow[i][0][0]-1][cow[i][0][1]]=0;
}
}

/*ASSUME THAT ALL THE COW STOPS EATING AS THERE IS NO GRASS IN THE CURRENT CELL
OR THE COW HAS REACHED THE LAST LOCATION*/
cont = 0;

//REPEAT FOR EVERY COW
for( i=0 ; i //IF THE COW IS FACING NORTH
if( dir[i] == 'N'){
//IF THE COW HAS NOT REACHED LAST Y LOC OR NOT STOPPED EATING
if( cow[i][0][1] < 109 && field[cow[i][0][0]][cow[i][0][1]] !=0 )
cont = 1; //MAKE COUNT AS 1, THE WHILE LOOP SHOULD REPEAT
}
//IF THE COW IS FACING EAST
if( dir[i] == 'E'){
//IF THE COW HAS NOT REACHED LAST X LOC OR NOT STOPPED EATING
if( cow[i][0][0] < 109 && field[cow[i][0][0]][cow[i][0][1]] !=0)
cont = 1; //MAKE COUNT AS 1
}
}
}

//DISPLAY THE OUTPUT
for( i=0 ; i {
//IF THE INFINITY VALUE OF THE RESPECTIVE COW IS 1, THEN DUSPLAY AS INFINITY
if( infinity[i] == 1 )
printf("\nInfinity");
else //ELSE DISPLAY THE RESPECTIVE COUNT VALUE
printf("\n%d", count[i]);
}

getch();
return 0;
}

8.3.7: Exclamat!on Po!nts
Write the function exclamation that takes a string and then returns the same string with every lowercase i replaced with an exclamation point. Your function should:

Convert the initial string to a list
Use a for loop to go through your list element by element
Whenever you see a lowercase i, replace it with an exclamation point in the list
Return the stringified version of the list when your for loop is finished
Here’s what an example run of your program might look like:

exclamation("I like music.")
# => I l!ke mus!c.

Answers

The function is an illustration of loops.

Loop instructions are used to repeat operations

The function in Python, where comments are used to explain each line is as follows:

#This defines the function

def exclamation(myStr):

   #This iterates through the string

   for i in range(len(myStr)):

       #This checks if the current character of the string is "i"

       if myStr[i] == "i":

           #If yes, this converts the string to a list

           s = list(myStr)

           #This replaces i with !

           s[i] = '!'

           #This gets the updated string

           myStr = "".join(s)

   #This returns the new string

   return myStr

       

Read more about similar programs at:

https://brainly.com/question/22444309

The deliberate misuse of computers and networks, _____ use malicious code to modify the normal operations of a computer or network.

Answers

Answer:

Virusus

Explanation:

-

Hope that helps

Can you give me three examples of agricultural technology, environmental technology, communication technology, biotechnology, manufacturing technology, construction technology, materials technology, energy and power technology, and nanotechnology? Please help, this is due in 30 mins. I will give you 80 points.

Answers

Answer:

The following outline is provided as an overview of and topical guide to technology: collection of tools, including machinery, modifications, arrangements and procedures used by humans. Engineering is the discipline that seeks to study and design new technology. Technologies significantly affect human as well as other animal species' ability to control and adapt to their natural environments.

how to send an email to multiple recipients individually outlook

Answers

Answer:

Include multiple people in the "To" section. picture attached below.

how to stop programs from running at startup windows 10?

Answers

Just go into settings, type in startup apps, and it will take you to an area where you can select certain apps to start or not start when you reset / shut down / turn off your computer and turn it back on again.

_____ is the dynamic storage allocation algorithm that results in the largest leftover hole in memory.

Answers

Answer: Worst fit

Explanation:

Wikis are designed for ________, which is allowing people to contribute more than just posting a response

Answers

Answer:

collabirations

Explanation

Wikis are designed for collabirations, which is allowing people to contribute more than just posting a response.

3.) The primary storage device that holds the data currently being processed by the computer is​

Answers

Computer memory I hope it works

Answer:

I personally think its a hard drive or something like that,im not a computer expert to be honest

"schools should use a wireless network instead of a wired network".

discuss this statement.

(6 marks) ​

Answers

hi there!

Answer:

I agree with this statement as wireless networks are better than wired ones especially for a huge structures like a school. in a big you will have to use kilometers of cables to set up a network, whereas you can set up the same network using a few access points and much less cables of course.

hope this helps.

Which of the following describes email nonrepudiation?

A.
the elimination of emails that may contain dangerous viruses

B.
the review of every email sent by the CIA

C.
the use of tracking methods that can identify senders and their locations

D.
the use of encryption methods that ensure senders and their locations cannot be identified

Answers

Answer:

I believe the answer is C, im sorry if im wrong

Why should you pay your full credit card balance by the due date every month?​

Answers

Answer: to avoid late fees and interest

Explanation:

12. In Justify the text is aligned both to the right and to the left margins, adding extra space between words as necessary *
Maybe
False
True

Answers

[tex]\blue{<><><><><><><><><><><><><}[/tex]

[tex]\green{<><><><><><><><><><><><><}[/tex]

Answer:

False

Explanation:

Because, aligment the tex are aligned in the centre of the page.

[tex]\pink{<><><><><><><><><><><><><}[/tex]

[tex]\red{<><><><><><><><><><><><><}[/tex]

False
:)))))))))))))))))

Pls help me plsssss

Answers

Answer: drawright(30)

Explanation:

This computer is used by touching your finger.
A Desktop
C. Mainframe
B. Laptop
D. Tablet​

Answers

Answer:

a tablet because it's controlled by the touch of a finger.

In a computer-controlled greenhouse, a temperature sensor and a window motor are connected to the computer.
If the temperature rises above 23°, the windows are opened.
Draw a flowchart to describe this system.

Answers

Hope this helps solve it

When you first purchase a notebook, make sure you have a ____ CD containing the installed OS so you can recover from a failed hard drive.

Answers

When you first purchase a notebook, make sure you have a RECOVERY CD. It enables the restoration of the notebook computer.

A recovery disc is a disc that enables to restore the computer to the same condition when it was bought.

Moreover, a recovery drive refers to a separate partition in the notebook that must contain the required files to restore the device if the system becomes unstable.

A recovery disc can be considered as a drive used to keep a backup of the files (e.g., images) and other types of restoration data.

Learn more about recovery disc here:

https://brainly.com/question/14217813

which subunit of a heterodimeric cdk is the regulatory subunit?

Answers

The answer is cyclin subunit

A restaurant recorded the ages of customers on two separate days. You are going to write a program to compare the number of customers in their forties (ages 40 to 49).

What is the missing line of code?

customerAges = [33, 23, 11, 44, 35, 25, 35, 68, 51]

count40s = 0
for item in customerAges:
_____;
count40s = count40s + 1
print("Forties:", count40s)


if 40 > item > 49

if 40 < item < 49

if 40 <= item <= 49:

if 40 >= item >= 49

Answers

Answer:

if 40>= item >=49

Explanation:

Other Questions
history ?A The interactive study of human remains in the world.B The interpretative study of past events and civilizations.C The critical study of past means of communication.D The analytical study of the interaction of human beings. A ti 1 of 1 el auto anoche. (daar, pretrito). CAN YOU READ MY ESSAY AND TELL ME WHAT I NEED TO DO TO REVICE IT? (NO LINKS PLS) From Freezing to Globalizing (The Cold War, and Globalization) What is The Cold War, and Globalization? Why are they so important? How did they shape the world we live in today? In 1945, World War II ended. This meant different things to different areas of the world. In Europe, the war left deep scars that did not heal easily, especially when it came to its economy. In the United States, 1945 was the beginning of an economic boom, as the US was able to take advantage of the markets not covered by Europe, while at the same time increasing production to help with the rebuilding of the continent. Another power that became stronger after the end of the war was the Soviet Union. The years that followed WWII are known as the Cold War, as the United States and the Soviet Union fought for control of other countries. Their opposite ideals of (capitalism vs. communism) led to a Brobdingnagian conflict. Ultimately, the Cold War diminished in importance during the 1980s and 1990s, as the Soviet Union adopted more capitalist measures. Eventually, the Union would break up and collapse resulting in the creation of Russia and several other countries. Leaving The United as the worlds only superpower. The years following the end of the Soviet Union saw a congenital transformation of communication technology, mostly due to the internet. The creation of the internet and the popularity of new technological devices such as (computers, cell phones, etc.) led to a nonpareil phenomenon known as globalization. Globalization allowed us to be in closer contact with the rest of the world, a process that continues to this day. This is how globalization and The Cold War shaped the world. These two unexpected events have changed the world into the world we see today and into the world, we'll see tomorrow. 13/83.2, I have the answer but not the work Find the value of x so that the function has the given value.n(x) = 5x + 8; n(x) = 23 In what ways did the philosophers influence the middle class, nobility, and the working class? Which of the following is a responsibility of CTSO membership?getting all As in your classestraveling to a national conferenceconducting yourself appropriately and professionallygetting a job in your career field after graduation If a line crosses the y-axis at (0, -3), what is the y-intercept? Which statement is correct about charges?A.Opposite charges repelB.Similar charges attract C.Electrons are positively charged D.Similar charges repel whats 1312755 x 3430975324578, first one to answer will get a brainliest Windstrong has an elevation of -28.7 feet, and Kennington has an elevation of 28.7 feet. Which of the following is true?A.Windstrong's elevation < Kennington's elevationB.Windstrong's elevation = Kennington's elevationC.Windstrong's elevation > Kennington's elevation How many roots will the function f(x)= -3x - x + 7x + 6 have? "I thought a thought but the thought I thought wasn't the thought I thought I'd thought. " Here identity the word "thought " as a parts of speech. 1) write the measurement 4009 mm into the place value table below a) what is 4009 mm in cmb) what is 4009 mm in m2) how many millimeters is 6 liters helpppppppppppppppppppppppppppppppppppppppppppp the area of a square whose length is 4.5 m what is the answer?? Define saturated and unsaturated fat. Give 2 examples of each. Write two to four sentences explaining how the authors use of second- and third-person point of view helps readers understand the Childrens March. Which aspect of the capitalist economy includes things found in nature, like air and water?OlandO laborO managementO capital