Write an algorithm for a program which inputs the lengths a, b and c of the three sides of a triangle. The program then determines whether the triangle is right-angled and prints out a message to say whether or not the triangle is right angled. You may assume that a is the longest side.

Answers

Answer 1

Answer:

Algorithm:

Step 1: Start

Step 2: Declare variables a,b,c

Step 3: Input a,b,c

Step 4: If a^2 == b^2 + c^2

                  Display "The triangle is right angled"

            Else

                  Display "The triangle is not right angled"

Step 5: Stop

Explanation:

A triangle is right angled if the square of the largest side equals the sum of the square of the other two sides

The algorithm will be based on the above analysis.

This indicated the start of the algorithm

Step 1: Start

This declares required variables

Step 2: Declare variables a,b,c

This gets values for the declared variables

Step 3: Input a,b,c

This checks for the condition to determine right angled triangle

Step 4: If a^2 == b^2 + c^2

If true, this message that states the triangle is right angled is printed

                  Display "The triangle is right angled"

If otherwise

            Else

This message that states the triangle is not right angled is printed

                  Display "The triangle is not right angled"

This indicates the end of the algorithm

Step 5: Stop

The algorithm when implemented in Python is as follows:

a = float(input("a: "))

b = float(input("b: "))

c = float(input("c: "))

if a**2 == b**2 + c**2:

   print("The triangle is right angled")

else:

   print("The triangle is not right angled")

It follows the same explanation as the algorithm


Related Questions

PLEASE HELP I WILL GIVE BRAINLIEST!!







What best describes the difference between the below images, where the car is in the second image is further along the road? Hint: Look at the XYZ directional gizmo at top right side. Look at the colors.

Answers

what











Here is a picture to complete ur anwser

Ricardo wants to learn more about how his computer reserves space for data. Which of these online tutorials is most likely to meet his needs?

Memory Allocation Basics

RAM or ROM?

Object-Oriented Programming

Python Implementation

Answers

Answer:

Memory allocation basics

Explanation:

Hope this is correct

Answer:

Memory Allocation Basics

Explanation:

Someone please help.

1What plays an important role in communicating the central message and purpose of a word document? message O layout O dialog O element​

Answers

Layout is the answer ur welcome I’m in middle school

Which of the following statements are true regarding Moore’s Law?
states that storage capabilities will triple every two years

is a purely abstract concept that does not clearly apply to the computing industry

was described by Gordon Moore in the early 2000s to predict growth in the fiber optic industry

relates to increases in processing power of computers and has been quite accurate since it was introduced in 1965

Answers

Answer:

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

Explanation:

The question is about Moore's Law.

The given options in this question are:

states that storage capabilities will triple every two years is a purely abstract concept that does not clearly apply to the computing industry was described by Gordon Moore in the early 2000s to predict growth in the fiber optic industry relates to increases in processing power of computers and has been quite accurate since it was introduced in 1965

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

Moore's Law related to increases in the processing power of computers and has been quite accurate since it was introduced in 1965. This law was based on a prediction and made by American engineer Gordon Moore in 1965. And it states that the number of transistors per silicon chip doubles every year.

While the other options are not correct because:

It does not state the storage capabilities that will triple every two years, but this law state that computing power and transistors on chips become double every year. It is not a purely abstract concept but it is applied in computing and this law become more famous due to its value. This law was presented in 1965.

Answer:DExplanation:

relates to increases in processing power of computers and has been quite accurate since it was introduced in 1965

The net force on a vehicle that is accelerating at a rate of 1.2 m/s2 is 1500 newtons. What is the mass of the vehicle to the nearest kilogram?

Answers

Answer:

The mass of the vehicle is 1250kg

Explanation:

Given

[tex]Net\ Force = 1500N[/tex]

[tex]Acceleration = 1.2m/s^2[/tex]

Required

Determine the vehicle's mass

This question will be answered using Newton's second law which implies that:

[tex]Net\ Force (F) = Mass (m) * Acceleration (a)[/tex]

In other words:

[tex]F = ma[/tex]

Substitute values for F and a

[tex]1500 = m * 1.2[/tex]

Make m the subject

[tex]m = \frac{1500}{1.2}[/tex]

[tex]m = 1250kg[/tex]

Hence, the mass of the vehicle is 1250kg

¿En cuales situaciones concretas se puede aplicar las técnicas de conteo(particularmente las permutuaciones y las combinaciones) dentro de la informática?

Answers

Answer:

In which specific situations can counting techniques (particularly permutuations and combinations) be applied within computer science? for anybody trying to help

Two difference between gigo and bug.​

Answers

Answer:  A bug happens when a tool does not do what it should do. ... GIGO, which stands for Garbage In Garbage Out, is a different situation in which the tool performs what it should do but it is applied in a place that does not make sense.

Hope this helps... Stay safe and have a great day/night!!! :D

Caps lock key is used to type alphabets. _________​

Answers

Answer:

in all caps ...............................

Explanation:

come on bro you fr?

Answer:

Capital letters / Uppercase

Look at the image. A man wearing casual clothes is sitting down on the surface of the Moon, reading a book. The Earth can be seen in the sky. If this image were on a book cover, what kind of story would the book most likely be? a romantic adventure a tense horror story a futuristic travel story a wartime epic

Answers

Answer:

a futuristic travel story

Explanation:

Answer:

C. a futuristic travel story

Explanation:

Edge 2020

short note on where do we use electronics in daily life

Answers

Answer:

our laptops to do school work etc

our phones- use them everywhere

Explanation:

What number will be output by the console.log command on line 7? *
2 points
Captionless Image

Answers

Answer:

The output is 100

Explanation:

See attachment for complete question

I'll be making reference to the attachment time to time.

On line 1 of the attachment, variable fizz was declared

On line 2, variable bop was declared

Variable bop was initialised to 10 on line 3

Variable fizz was initialised to 20 on line 4

On line 5, 100 was assigned to bop

On line 6, 200 was assigned to fix

The value of bop was printed on line 7.

Note that, the current value of bop is not 100 (as updated on line 5).

Hence, the output of the program at line 7 is 100

Based on the program command displayed in the console, the output displayed by the console.log command would be 100.

The variable bop is assigned a value of 10 based on the command in line 3

In line 5 however, an update has been made to the bop variable, and the variable has been update to 100.

The newly assigned varibale value on line 5 would be the value of the bop variable unless updated again.

Hence, the output would be 100.

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

A ___ is an online collaborative event that may include such features as chat, slideshows, and PowerPoint presentations.

Answers

An Online collaboration or meeting is an online collaborative event that may include such features as, slideshows, and PowerPoint presentations.

What is an online collaborative?

Online collaboration is a term that connote the using the internet and online tools to work together.

This is done with the use of a computer system instead of sitting in a physical office space. Note that  online collaboration helps employees to work together from different locations and devices by the use of virtual work environments and also some shared online work spaces.

Learn more about  collaborative event from

https://brainly.com/question/514815

what are some example of popular music for teenagers

Answers

Answer: Hip Hop, Rap, Alternative, Pop Rock

Explanation:

Answer:

Rod wave, Polo g, Lil Uzi Vert, Da baby, Bad bunny, Prince Royce, Cardi b, Nicki manaj, Drake, Miley cyrus, Marina, Trippe red, YNW melly, Lil peep, PARTYNEXTDOOR, Jeremih, Juice wrld, Pop smoke,

Explanation:

Thats what my older teenage cousins listens to.

_____ is the practice of using the internet to provide healthcare without going to a doctor’s office or hospital.
Telenurse
Telehospital
Telehealth
Teledoctor

Answers

Answer:

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

Explanation:

The correct answer to this question is Telehospital.

Because Telehospital provides services where patients treated online by a physician. It is like providing medicine services remotely to patients.  

A live secure connection is established between patient and physician where physicians diagnose patient disease and recommend transcription.

It is the same as a typical visit to the hospital, except the doctor and patient are not on the same physical location. They are connected with each other remotely.

While other options are not correct because: telenursing is related to providing nursing services online, where telehealth is providing all health care services, it also includes education, training, and administrative services also. While teledoctor and telehospital used interchangeably.

But telehospital is the most and widely used term to diagnose patients remotely by physicians.

Answer- C: Telehealth

Explanation: Correct on Edg 2021

CSS is a language that controls the way content on a web site appears. It uses_______ _____to
change the look of a page.

Answers

Answer:

I'm not sure what the answers are, but when someone is making a website from scratch, they tend to use CSS HTML and JS(javascript)

hope i helped ;)

state the difference between IBM PC and apple machintosh computers

Answers

Answer:

a Mac is a PC because PC stands for personal computer. However, in everyday use, the term PC typically refers to a computer running the Windows operating system, not the operating system made by Apple.

When does a kernel panic occur?
when the incorrect serial number is entered during software installation
when Dynamic-Ling Library (DLL) files are missing or damaged
when there are too many applications running on a computer at the same time
when an operating system finds a fatal error that it cannot safely recover from

Answers

Answer: when an operating system finds a fatal error that it cannot safely recover from

Explanation: "A kernel panic (sometimes abbreviated as KP) is a safety measure taken by an operating system's kernel upon detecting an internal fatal error in which it either is unable to safely recover or cannot have the system continue to run without having a much higher risk of major data loss. The term is largely specific to Unix and Unix-like systems. For Microsoft Windows operating systems the equivalent term is "Stop error", resulting in a bug check screen that presents the bug check code on a blue background in early versions of Windows (colloquially known as a "Blue Screen of Death" or BSoD), or on a green background on the Xbox One platform as well as in Windows 10 preview builds." wikipedia article on kernel panics

Answer:

It's D

Explanation:

I got it right on Edge

Have a wonderful day and have a Happy New Year. Hopefully 2021 is better than 2020.

Select the correct text in the passage.
Read the following excerpt on a persuasive message. Which line identifies the central idea of the message?
We are surrounded by technology everywhere we go-elevators at work, automatic washing machines, fully automated cars, remote controlled
TVs and garage doors. Life has become quite easy and we can perform complex tasks with the touch of a button. We hardly move from our
seats to get our work done.
Though technology makes life easy and is time saving, it comes with disadvantages, too. Who doesn't like a life surrounded by luxury? The truth
is that this fully automated life has turned us into lazy couch potatoes. We lead a mechanical and sedentary lifestyle, even if it adversely affects
our health
This easy lifestyle leads to inactivity, because we have become totally dependent on gadgets. We have forgotten the importance of maintaining a
healthy lifestyle, and turned a deaf ear to the dangers of a sedentary lifestyle.
The reason I write this article is to encourage you to get up from your seat and exercise. Don't let technology take over your well-being. Stay
healthy and be fiti

Answers

Answer: thought technology would be luxury

Explanation:

I think It would be that but others would think other

Answer:  We lead a mechanical and sedentary lifestyle, even if it adversely affects

our health

Explanation:

I got it right.

Select the correct answer.
Read these lines from a news report. What type of lead do you think the reporter has used in the article?
On New Year's Eve, the aroma of freshly baked cake attracted John's attention to an old cottage, bringing back memories of his childhood. His
curiosity changed his life forever.
O A direct lead
OB. delayed lead
OC. question lead
OD. combination lead

Answers

Answer:

Explanation:

ob delayed lead

Justify the use of an e-diary in the organisation of the meeting.

Answers

Answer:

It can be used to easily organize stuff

Explanation: It can be easily used to organize meetings & write important stuff, and you will also never run out of pages, which is better than having no diary.

Dan frequently organizes meetings and would like to automate the handling of the meeting responses. What should he
do to automatically move those responses into a subfolder?
O Configure an automatic reply.
O Configure the default meeting request options.
O Configure a Meeting Response Rule.
O Nothing, Dan must respond individually.

Answers

Answer:

The correct option is;

Configure a Meeting Response Rule

Explanation:

Meeting Response Rule activates the sorting of incoming messages and filtering of the responses to meeting request (which by default are received in the inbox), to prevent the inbox from being filled with different meeting request response and rather, move the responses to another specified folder, thereby ensuring that the mailbox is not cluttered.

Answer:

c

Explanation:

Select the correct answer. Which sign or symbol will you use to lock cells for absolute cell reference?
A.
ampersand
B.
asterisk
C.
dollar sign
D.
exclamation mark

Answers

Answer:

A. ampersand

Explanation:

Answer:

C. Dollar Sign

Explanation:

Select the correct answer.
What internet access technology currently uses a technology called 4G?
ОА.
mobile Internet access
OB.
satellite Internet access
O C. DSL
OD.
ISDN
OE. wireless Internet access

Answers

Answer:

Wireless Internet Access

Answer:

A. Mobile Internet Access

Explanation:

Complete the sentence.

The internet is an example of a ______

Answers

Answer:

packet switched network

Answer:

wan

Explanation

write an HTML document to display a^3-b^3

Answers

Answer:

DOCTYPE html>

<html>

<body>

<h1> a^3-b^3 </h1>

<h2> a^3-b^3 </h2>

<h3> a^3-b^3 </h3>

<h4> a^3-b^3 </h4>

<h5> a^3-b^3 </h5>

<h6> a^3-b^3 </h6>

</body>

</html>

DISPLAYED AS HEADINGS

What are the three phases of an iterative development process?
A.
design, analyze, generate
B.
plan, analyze, evaluate
C.
analyze, implement, delivery
D.
design, prototype, evaluate

Answers

Answer: D.  - design, prototype, evaluate

Explanation: Took a Edmentum/Plato Quiz

Answer:

D - Design, Prototype, Evaluate

Explanation:

PLATO

When you are brainstorming, what should you be careful to avoid?
A. Editing your ideas as you go
B. Setting boundaries for your session
C. Writing down all your ideas D. Setting a time limit for your session

Answers

It's most likely B. Setting boundaries for your session

reason: Brainstorming is supposed to be coming up with q bunch of creative ideas. setting to many boundaries may make it harder to come up with new stuff.

Question # 5
Multiple Choice
A lower bandwidth equals faster connection.


True

False

Answers

Answer:

False

Explanation:

In basic terms, Internet with higher bandwidth, or speed, gives you a faster and better experience over Internet with lower bandwidth.

While an image is still being editing, it is best to save it as a PDF. Group of answer choices True False

Answers

Answer:

f

Explanation:

No because when you save it, the new editing will not count.

Help pweeze this is due today :(

I will give u brainliest just pweeze, I need this answer :(

Answers

Answer:

just go in a website and see why important to them

Explanation:

and why the share with more people

Other Questions
Please help me with this Colors of cars in a mall parking lot is?Categorical Numerical; discrete Numerical; continuous have u ever seen 2 pretty besfrens?? Which description best matches Rutherford's model of the atom?Group of answer choicesA The atoms is a positive sphere with negative electrons embedded in it.B Electrons orbit the nucleus in set, circular orbits.C The atoms has a tiny, massive nucleus at its center with electrons surrounding itD The atoms is a solid, indivisible sphere At Ice Cream Haven, 6 of the last 8 sundaes sold had nuts. What is the experimental probability that the next sundae sold will have nuts? Write your answer as a fraction or whole number. A river is at -150 ft below sea level. A nearby mountain has an elevation of +1350 feet. If Tina hikes from the river to the top of the mountain, how many feet has she hiked? Ms office suite comes with its own set of pictures in the working on a song for someone I used to love I'll go through all of the realities to find you(If I need you)Just so I can hold your hand...Even if they think it's fake...I want you to understandthat there's a certain miss and a certain love and a heartache in my chestevery time i hear your name and im still lying in my bedwithout you.... the slope of the line that goes through the points (2,4) and (7,8) What is the GCF of 32a^3 b and 16ab^2? Help me!!!! Pls ASAP A group of boy scouts are hiking the Appalachian Trail. They determine that they are traveling at a rate of 5 miles every 2 hours. If they continue at this rate, how long should it take them to travel 10 miles? To achieve their highest potential, athletes should understand the difference between fads and nutritional science. true or false Causes of the American Revolution Brain PopThe Sons of Liberty were far more radical than the Stamp Act Congress. In this context, what does "radical" mean? HELLPPPP PLEASEEE!!A pack of gum costs $1.49. It has 25 pieces in a pack. How much does it cost to chew each piece of gum? A swinging door that weighs w=400.0Nw=400.0N is supported by hinges A and B so that the door can swing about a vertical axis passing through the hinges The door has a width of b=1.00m,b=1.00m, and the door slab has a uniform mass density. The hinges are placed symmetrically at the doors edge in such a way that the doors weight is evenly distributed between them. The hinges are separated by distance a=2.00m.a=2.00m. Find the forces on the hinges when the door rests half-open. Study the image. Earth showing air mass movement. Purple and red arrows are moving in a counterclockwise direction. Based on the arrows, in which direction are air masses moving? from west to east from north to south toward the equator toward the middle latitude what is Louisiana Purchase commonlit greek government part B 6H2 represents how many atoms of hydrogen?