Asked by PHil
Input Process Output or IPO with Flowchart
Question: A reel of electric wire 150 metres long is cut into two pieces.One is 40 metres shorter than twice the length of the other.How long is each piece.
Please answer with flowchart.Thanks and god bless.
Question: A reel of electric wire 150 metres long is cut into two pieces.One is 40 metres shorter than twice the length of the other.How long is each piece.
Please answer with flowchart.Thanks and god bless.
Answers
Answered by
Writeacher
1. Please don't post the same question twice. Be patient and wait for a tutor with this expertise to come online and see it.
2. NEVER put personal information in a post, such as your email address. Posts with information like that will be removed.
2. NEVER put personal information in a post, such as your email address. Posts with information like that will be removed.
Answered by
Steve
no flowcharts here. So, the flow of logic is just
prompt for n1
read n1
since n1+n2=150, n2 = 150-n1
Also, n2 = 2*n1 - 40
You need to solve n1 + (2*n1-40) = 150
n1 = (150+40)/3
n2 = 150-n1
print n1 and n2 (with labels)
prompt for n1
read n1
since n1+n2=150, n2 = 150-n1
Also, n2 = 2*n1 - 40
You need to solve n1 + (2*n1-40) = 150
n1 = (150+40)/3
n2 = 150-n1
print n1 and n2 (with labels)
There are no AI answers yet. The ability to request AI answers is coming soon!