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
9966 [12]
3 years ago
11

What is a statement that runs only under counting conditions?

Computers and Technology
1 answer:
IRINA_888 [86]3 years ago
7 0

Answer:

An if statement

Explanation:

An if statement runs provided the logical requirement is satisfied.

You might be interested in
You have recently resolved a problem in which a user could not print to a particular shared printer by upgrading her workstation
Wewaii [24]

Answer:

B - The user is no longer able to log on to the network

Explanation:

4 0
4 years ago
write a function that given an integer Y and 3 non-empty string A,B,W, denotingthe year of vacations, the beginning month, the e
chubhunter [2.5K]

Answer:un spain please

Explanation:

4 0
4 years ago
True or false?
mylen [45]

Answer:

true

Explanation:

sometimes you've just gotta roll with it. the final parts of the statement is what gives away the answer.

3 0
3 years ago
The list method reverse reverses the elements in the list. Define a function named reverse that reverses the elements in its lis
Alisiya [41]

Answer:

public class Reverse {

  1.    public static void reverseList(int list [], int n)
  2.    {
  3.        int[] reversedList = new int[n];
  4.        int k = n;
  5.        for (int i = 0; i < n; i++) {
  6.            reversedList[k - 1] = list[i];
  7.            k = k - 1;
  8.        }
  9.        //printing the reversed list
  10.        System.out.println("The Reversed list \n");
  11.        for (int j = 0; j < n; j++) {
  12.            System.out.println(reversedList[j]);
  13.        }
  14.    }

Explanation:

Using Java, An array is implemented to hold a list of items

A method reverseList() is created to accept an array as parameter and using a for statement reverses the elements of the array and prints each element of the list

See below a complete code with a main method that calls this method

<em>public class Reverse {</em>

<em>    public static void main(String[] args) {</em>

<em>        int [] arr = {10, 20, 30, 40, 50};</em>

<em>        reverseList(arr, arr.length);</em>

<em>    }</em>

<em>    public static void reverseList(int list [], int n)</em>

<em>    {</em>

<em>        int[] reversedList = new int[n];</em>

<em>        int k = n;</em>

<em>        for (int i = 0; i < n; i++) {</em>

<em>            reversedList[k - 1] = list[i];</em>

<em>            k = k - 1;</em>

<em>        }</em>

<em>        //printing the reversed list</em>

<em>        System.out.println("The Reversed list \n");</em>

<em>        for (int j = 0; j < n; j++) {</em>

<em>            System.out.println(reversedList[j]);</em>

<em>        }</em>

<em>    }</em>

<em>}</em>

7 0
4 years ago
Write a function called word_count that takes a string and returns a dictionary that maps every case-insensitive word in the str
Taya2010 [7]

Solution :

We need to write a function named ''$\text{word}$_$\text{count}$". The program takes a string and then returns a dictionary which maps the case insensitive word.

def $\text{word}$_$\text{count}$(s):

   $\text{words}$ = $\text{s.lower}$().split()

   $\text{result}$ = {}

   for $x$ in words:

       if $x$ in $\text{result}$.keys():

           $\text{result}$[x] += 1

       else:

           $\text{result}$[x] = 1

   return $\text{result}$

5 0
3 years ago
Other questions:
  • Which is the best description of a hierarchical report?
    13·1 answer
  • The binary search algorithm ________. will have a maximum number of comparisons equal to the number of elements in the array wil
    7·1 answer
  • Which of the following will affect the size of your monthly mortgage payment
    8·2 answers
  • The ash and dust from a volcanic eruption can cause a _______ change in the environment.
    13·1 answer
  • If you write a toString method to display the contents of an object, object1, for a class, Class1, then the following two statem
    7·1 answer
  • One of the prominent movies released in the 1950s is
    15·2 answers
  • When you see this traffic signal is turned on, you may _____________________.
    5·2 answers
  • 3. It is used to measure the resistance on ohms and voltage that flow in circuit both AC and DC current. A. Gadget C. Electrical
    12·1 answer
  • Chloe is creating the software requirements specifications (SRS) for a project. The project is a web app that allows students to
    12·1 answer
  • Which of these countries has very strict cultural
    8·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!