Pseudocodes and flowcharts

When twice a certain number is subtracted from five times itself, the result equals 60. Find the number by using the try and error method. Use both pseudocode and flowchart.

Showing Answers 1 - 4 of 4 Answers

Zeeshan Mumtaz

  • Apr 13th, 2015
 

x-10x=60
so,
x=-60/9;

  Was this answer useful?  Yes

fas.sergey

  • May 30th, 2015
 

5x - 2x = 60
x = 20

  Was this answer useful?  Yes

Ted

  • Oct 17th, 2016
 

1 Start
2 Input try number X
3 C=5*X - 2*X
4 D=C - 60
5 If D=0, print "you found the number X which make the figure equal 60", go to step 8
6 If D<0, print "Number X make the figure "D" less than 60, try again by increasing X", go to step 2
7 Print "Number X make the figure "D" more than 60, try again by decreasing X", go to step 2
8 End

  Was this answer useful?  Yes

Glenn

  • May 8th, 2017
 

function getBaseNum(num) {
return num / (5-2);
}
num = 60
60 / (5-2)
60 / 3 = 20
(20 * 5) - (20 * 2)
100 - 40 = 60

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions