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
LUCKY_DIMON [66]
3 years ago
8

Dharma opens one window, does a little work, closes the window and then opens a new one. Instead of opening windows, what can Dh

arma do to work more efficiently
Computers and Technology
1 answer:
seraphim [82]3 years ago
5 0

Answer:

Make a goal

Explanation:

She could make a goal achieve it and reward herself. Do this multiple times and she will be done

You might be interested in
Write a C++ program to find if a given array of integers is sorted in a descending order. The program should print "SORTED" if t
LenKa [72]

Answer:

The cpp program for the given scenario is as follows.

#include <iostream>

#include <iterator>

using namespace std;

int main()

{

   //boolean variable declared and initialized  

   bool sorted=true;

   //integer array declared and initialized

   int arr[] = {1, 2, 3, 4, 5};

   //integer variables declared and initialized to length of the array, arr

   int len = std::end(arr) - std::begin(arr);

       //array tested for being sorted

    for(int idx=0; idx<len-1; idx++)

    {

        if(arr[idx] < arr[idx+1])

           {

               sorted=false;

            break;

           }

    }

    //message displayed  

    if(sorted == false)

     cout<< "UNSORTED" <<endl;

 else

    cout<< "UNSORTED" <<endl;

return 0;

}

OUTPUT

UNSORTED

Explanation:

1. An integer array, arr, is declared and initialized as shown.

int arr[] = {1, 2, 3, 4, 5};

2. An integer variable, len, is declared and initialized to the size of the array created above.

int len = std::end(arr) - std::begin(arr);

3. A Boolean variable, sorted, is declared and initialized to true.

bool sorted=true;  

4. All the variables and array are declared inside main().

5. Inside for loop, the array, arr, is tested for being sorted or unsorted.  The for loop executes over an integer variable, idx, which ranges from 0 till the length of the array, arr.

6. The array is assumed to be sorted if all the elements of the array are in descending order.

7. If the elements of the array are in ascending order, the Boolean variable, sorted, is assigned the value false and for loop is exited using break keyword. The testing is done using if statement.

8. Based on the value of the Boolean variable, sorted, a message is displayed to the user.

9. The program can be tested for any size of the array and for any order of the elements, ascending or descending. The program can also be tested for array of other numeric data type including float and double.

10. All the code is written inside the main().

11. The length of the array is found using begin() and end() methods as shown previously. For this, the iterator header file is included in the program.

4 0
3 years ago
Can some one help sorry I just so confused on this and I keep failing it I just need the help So choose the best answers
statuscvo [17]

Answer:

i7tyerged

Explanation:

7 0
4 years ago
Question 5 (2 points)
Scrat [10]

Answer:

B) 5 m/s

Explanation:

Took the test and this was the correct answer :)

6 0
3 years ago
The ping command uses the most basic interior routing protocol on the internet which is the:
Nesterboy [21]
Routing Information Protocol (RIP)
5 0
3 years ago
A way to have cells in your spreadsheet change formats based on the value of the cells is called _____.
ki77a [65]
Should be conditional filtering 
8 0
3 years ago
Other questions:
  • Which of the following set of instructions defines an algorithm in the formal, strict sense?
    14·1 answer
  • __________ describes a module for which the software developer does not care how the processing is performed, but instead, knows
    7·1 answer
  • Computer-aided manufacturing (CAM) offers which possible benefits?
    15·2 answers
  • What are some “creatures/animals” that Rex imitates?
    14·1 answer
  • All of the following statements about logistics information systems (LIS) are true except ________.
    14·1 answer
  • PLEASE HELP!!!
    12·1 answer
  • How do operating system work?
    5·1 answer
  • Please help...........​
    6·2 answers
  • What is mean by SEO?
    7·2 answers
  • What is 4365 −3412 when these values represent
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!