1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
lbvjy [14]
4 years ago
14

The intended purpose of the following module is to determine whether the value parameter is within a specified range. The module

will not work, however. Find the problem. Module checkRange(Integer value, Integer lower, Integer upper) If value < lower AND value > upper Then Display "The value is outside the range." Else Display "The value is within the range." End If End Module Programming Exercises. Please find the problem with the Module. Thank you.
Computers and Technology
1 answer:
BARSIC [14]4 years ago
7 0

The program does not consists of any syntax error but the module contains error in logic especially while placing the condition inside if statement.

Here we are actually planning to check whether the number passed in the “value” variable is within the given lower and upper range which is passed in second and third parameter.

Solution 1:

if value<=lower AND value>=upper Then

Display “The given number is outside the specified range.”

else

Display “The given number is within the specified range.”

End if

Alternate solution:

So for that the condition needs to be value>=lower and value <=lower. so  

if value > lower AND value <upper Then

Display “The given number is within the specified range.”

else  

Display “The given number is within the specified range.”

You might be interested in
Discuss the technologies that implements an infrastructure for component communication
Akimi4 [234]

Explanation:

Consulting and system integration services are relied on for integrating a firm's legacy systems with new technology and infrastructure and providing expertise in implementing new infrastructure along with relevant changes in business processes, training, and software integration. Legacy systems are generally older transaction processing systems created for mainframe computers that continue to be used to avoid the high cost of replacing or redesigning them.

THE IT INFRASTRUCTURE ECOSYSTEM

There are seven major components that must be coordinated to provide the firm with a coherent IT infrastructure. Listed here are major technologies and suppliers for each

4 0
3 years ago
I am currently building my own PC is there any part I should put first? Or is it just whatever?
Dominik [7]

Basically, I had the same question when I got my PC! You can do any part you choose as long as you put it together in the right place.

Hope this helped you!

4 0
3 years ago
Read 2 more answers
DOS was the most common operating system for Microsoft-based computers before the introduction of Windows. DOS required the user
vaieri [72.5K]

Answer:

Windows has GUI, where its predecessor DOS does not.

Explanation:

DOS required the user to type instructions into the computer through an interface system known as command line.

Windows has graphical user Interface (GUI), that allows commands in a more user friendly environment than DOS.

4 0
3 years ago
A technician is about to open a desktop PC to replace a video card. He shuts down the computer, opens it, grounds himself with t
AnnyKZ [126]

Answer:

Disconnect the power cable?

Explanation:

4 0
2 years ago
To create an instance of Big Decimal for 454.45, use ________.
agasfer [191]

Answer:

C.

Explanation:

Based on the Java documentation; when creating an instance of BigDecimal, we can pass a string as a constructor.

System.out.println(new BigDecimal("454.45"));

8 0
4 years ago
Other questions:
  • Tags that provide browsers with information about document characteristics
    15·1 answer
  • Which type of cell references are locked and NOT automatically updated when it’s copied
    8·1 answer
  • HTML code must be enclosed in the _______ (angle brackets) so the browser can tell the difference between code and content you w
    6·2 answers
  • Write a program that reads a list of integers, and outputs whether the list contains all even numbers, odd numbers, or neither.
    10·1 answer
  • To add a slide using the default layout, what should you do before clicking the New Slide button?
    15·1 answer
  • Linux applications are developed using ________ programming language.
    7·1 answer
  • List the three control problems associated with competingprocesses and briefly define each.
    7·1 answer
  • ______ view is generally used for creating, formatting and designing slide​
    13·1 answer
  • Difference between multi-national and global company​
    11·2 answers
  • Which programming scenario would most likely involve this array block?<br><br>SOMEONE PLEASE HELPPP​
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!