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
elena55 [62]
3 years ago
14

How does the use of modules provide flexibility in a structured programming design?

Computers and Technology
2 answers:
WARRIOR [948]3 years ago
4 0

Answer:

How does modules provide flexibility in a structured programming design?

Answer:

Third option is correct

Modules ensures the reuse of code variables.

Explanation:

Module is a combination of code that is used  for a specific task i.e. sum, multiplexer and many others task which need to be performed more than once in a structure. So modules are helpful in structure programming to reuse that code again and again.

Burka [1]3 years ago
3 0

How does modules provide flexibility in a structured programming design?

Answer:

Third option is correct

Modules ensures the reuse of code variables.

Explanation:

Module is a combination of code that is used  for a specific task i.e. sum, multiplexer and many others task which need to be performed more than once in a structure. So modules are helpful in structure programming to reuse that code again and again.

You might be interested in
What is a device driver?
ivann1987 [24]

The answer is A. Dude it shows a input device. It’s basically a disc driver

8 0
3 years ago
Read 2 more answers
Horizontal scaling of a client/server architecture means _____.
Irina-Kira [14]

Answer:

D. I think

Explanation:

7 0
3 years ago
1. Atestharnessprogramfortestingsortingmethodsisprovidedwiththeprogram iles.ItisintheileSorts.javainthech11.sortspackage.Theprog
tiny-mole [99]

Answer:

Following are the code to this question:

//import package

import java.util.*;

import java.text.*;

public class Main//defining a class

{

static final int t = 50;//defining an integer constant variable

static int[] ele = new int[t];//defining an array

static int tS = 0;//defining integer variable

static void initelements()//defining a static method

{

Random r= new Random();//creating Random class Object

for (int i = 0; i < t; i++)//use loop to add value in array

ele[i] = Math.abs(r.nextInt()) % 100;//add value in array

}

static public boolean isSorted()//defining a method isSorted

{

boolean x = true;//defining boolean variable

for (int i = 0; i < (t - 1); i++)//use for loop to count array values

if (ele[i] > ele[i + 1])//use if to compare array values

x = false;//use boolean variable to hold false value

return x;//return boolean value

}

static public void swap(int x1, int x2)//defining swap method

{

tS++;//increment variable value by 1

//performing swapping

int te = ele[x1];//defining te variable that holds array values

ele[x1] = ele[x2];//exchanging array values

ele[x2] = te;//holding te values

}

static public void disp()//defining a method disp

{

int v1;

DecimalFormat f = new DecimalFormat("00");//creating DecimalFormat class Object

System.out.println("The elements array is:");//print message

for (int i = 0; i <t; i++)//defining for loop  

{

v1 = ele[i];//holding array value in v1 variable

if (((i + 1) % 10) == 0)//use if to check i value

System.out.println(f.format(v1));//print value

else//else block

System.out.print(f.format(v1) + " ");//print value

}

System.out.println();//print space

}

static int getMinimum(int st, int en)//defining a method getMinimum

{

int iMi = st;//defining variable that holds parameter value

for (int i = st + 1; i <= en; i++)//use for loop compare array value

if (ele[i] < ele[iMi])//compare array value

iMi = i;//use iMi to hold loop value

return iMi;//return iMi value

}

static void selectionSort()//defining a selectionSort method

{

int e = t - 1;//defining e variable that holds total array count value

for (int i = 0; i < e; i++)//use for loop to call swap method  

swap(i, getMinimum(i, e));//calling the swap method

}

public static void main(String[] args)//defining main method  

{

initelements();//calling initelements method

disp();//calling disp method

System.out.println("elements is sorted: " + isSorted());//calling is isSorted method with the message

System.out.println();//for space

selectionSort();//calling selectionSort method

System.out.println("No of swaps :" + tS);//print totalswap value with the message

disp();//calling disp method

System.out.println("elements is sorted: " + isSorted());//calling is isSorted method with the message

System.out.println();//for space

}

}

Output:

Please find the attached file.

Explanation:

In this code inside the Main class, 5 static methods "initelements, isSorted, swap, disp, getMinimum and selectionSort" is declared, in which the first method holds random values in arrays, in second array it sorts its values, in the third method it swap the array, in the disp method it shows array values.

In the "getMinimum and selectionSort"  it sorts array values and inside the main method, it calls all methods and prints their values.

3 0
3 years ago
What process makes one group a member of another group? nesting cloning copying grouping
Mumz [18]

Answer: Nesting

Explanation: The process of making one group the part of another group is defines as nesting. it is mostly done in the programming . This process helps in reduction of the program by nesting the functions. Nesting is done in computer field in applications as well to make one document the part of other  document .Therefore, nesting is the correct option .

8 0
3 years ago
Hi I need help with an assignment. We're learning about encryption and decryption in code.org. i need help with three of the tex
MrMuchimi

Answer:

multiply divide and add

7 0
3 years ago
Other questions:
  • Which of the following statements outputs the value of the gpa member of element 1 of the student array?
    5·1 answer
  • Suppose a classmate constructed an electric motor with a solid commutator.that is, the commutator has no split. This solid commu
    9·1 answer
  • Write code to complete PrintFactorial()'s recursive case. Sample output if userVal is 5:5! = 5 * 4 * 3 * 2 * 1 = 120
    11·1 answer
  • When drawing multiple objects on the same slide they cannot overlap<br> true<br> false
    8·2 answers
  • Assume your sketch has a variable named silo, which stores an object that is defined by a class you have created. The name of th
    15·1 answer
  • What can be changed when a style is modified?
    5·2 answers
  • . . ........Sad + sad= very sad
    7·2 answers
  • LANGUAGE IS PYTHON!!! PLEASE HELP
    12·1 answer
  • What is the most appropriate data type for each of these items?
    15·1 answer
  • Trademarks _____.
    12·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!