Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 "Call the subroutine in order to check..."
#1
The following subroutine returns a value to the main program
SUBROUTINE checkval (value, low, high)
IF value < low THEN
RETURN “Low”
ELSE IF value > high
RETURN “High”
ELSE
RETURN “OK”
ENDIF
ENDSUBROUTINE

In the main program, the following statements are written.

OUTPUT (“Please enter measurement:”)
measurement  USERINPUT

Write one or more statements which will call the subroutine in order to check whether the measurement is between 18 and 25, and output the result.


This is a question on my homework, but I haven't been taught how to do this by my teacher, so I'm clueless. Could someone explain how to do this? Thanks.
Quote
#2
That doesn't look like python at all.
If I had to guess, I'd say it's VB.
nilamo likes this post
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  sending arduino data to python and use a parity check 10_Lucas 6 248 Aug-03-2019, 10:37 AM
Last Post: DeaD_EyE
  In need help to put this code in order lekuru01 4 265 Apr-11-2019, 05:50 AM
Last Post: loomski
  Please check code Evgeniy2019 4 272 Apr-05-2019, 06:37 PM
Last Post: Evgeniy2019
  Help!! Order form and receipt code beginner1996 2 235 Mar-07-2019, 03:22 PM
Last Post: beginner1996
  How to check an array exist in a file using Python fitrisibarani 17 749 Feb-27-2019, 04:16 PM
Last Post: ichabod801
  Hi how to take row 1 for every column and check the value what class is it kirito85 2 477 Nov-21-2018, 06:52 AM
Last Post: kirito85
  numpy help: Uniform order-based crossover Mass17 0 385 Oct-18-2018, 10:05 PM
Last Post: Mass17
  call an instance of a class in the interactive nzcan 3 583 Aug-23-2018, 10:47 AM
Last Post: nzcan
  2nd order differential equations hoshos27 2 857 Jun-07-2018, 08:50 PM
Last Post: hoshos27
  Order an array unrealxqt 2 766 Apr-08-2018, 06:12 PM
Last Post: ljmetzger

Forum Jump:


Users browsing this thread: 1 Guest(s)