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
wariber [46]
3 years ago
6

A program is written to compute the sum of the integers from 1 to 10. The programmer, well trained in reusability and maintainab

ility, writes the program so that it computes the sum of the numbers from k to n. However, a team of security specialists scrutinizes the code. The team certifies that this program properly sets k to 1 and n to 10; therefore, the program is certified as being properly restricted in that it always operates on precisely the range 1 to 10.
Required:
List different ways that this program can be sabotaged so that during execution it computes a different sum, such as 3 to 20.
Computers and Technology
1 answer:
Liula [17]3 years ago
3 0

Answer:

See explanation

Explanation:

An instance of such program written in python is

isum = 0

for i in range(1,11):

isum = isum + i

print(sum)

One of the ways the program can give a wrong result is when someone alters the program source program before it's complied and executed.

Take for instance.

Changing

isum = 0 to isum = 4

will alter the result by additional 4

Another way is if an outside program or process alters the program execution.

You might be interested in
The best how can i get. Ethiopian bank enterance examination for natural science grade 12?
zubka84 [21]

do your own work ************************************************************************************************************************************************************

5 0
4 years ago
JAVA
ella [17]

Answer:

Explanation:

The following code is written in Java. It creates a function that takes in an ArrayList and an int parameter. Then it loops through the array and adds each element into a new array called newList but adds them the number of times that the numRepeats argument states. Output can be seen in the attached image below.

import java.util.ArrayList;

class Brainly{

   public static void main(String[] args) {

       ArrayList list = new ArrayList();

       list.add('a');

       list.add('b');

       list.add('c');

       ArrayList newList = repeatArrayList(list, 3);

       System.out.println(newList);

   }

   public static ArrayList repeatArrayList(ArrayList list, int numRepeats) {

       ArrayList newList = new ArrayList();

       for (int x = 0; x < numRepeats; x++) {

           for (int i = 0; i < list.size(); i++) {

               newList.add(list.get(i));

           }

       }

       return newList;

   }

}

5 0
3 years ago
How to transfer audio files from computer to android?
fenix001 [56]
U can use Bluetooth connect your computer to the android. <span />
5 0
4 years ago
When heading styles have been applied to a document, the user has the option to navigate through the document using which tab on
trasher [3.6K]

Answer: To navigate through the document

Explanation:

4 0
3 years ago
A search engine that crawls uses
RoseWind [281]

Answer:

web crawlers or spider software

Explanation:

A search engine that crawls uses the web crawler or the spider software. And it also uses the server side JavaScript based crawlers and programming languages like Python and PHP. The search engine finds the content category through the meta keywords and directs the page to the index. The index contains details of similar types of pages, And each page has one category, and if category is not found which is rarest, a new category is being created.

7 0
4 years ago
Other questions:
  • How do i fix my this??
    12·2 answers
  • What are the 5 general terms of the fair use rule
    9·1 answer
  • What is the red wavy underline beneath the text
    7·1 answer
  • What is the term for the process of swapping items between memory and storage?
    5·2 answers
  • to create a cover letter to send to a potential employers along with a resume what software program should you use
    10·1 answer
  • You have been studying processors. Your instructor has asked you to help prepare a lecture for introductory students learning ab
    10·1 answer
  • What happens when you send a fax to a phone?
    9·1 answer
  • Imagine you are asked to set up a network for connecting 50 computers in an office environment. Discuss the type of network you
    13·1 answer
  • n a particular board game, there is exactly one row and it comprises N spaces, numbered 0 through N - 1 from left to right. Ther
    12·1 answer
  • My chrome book computer clock is an hour off how do I fix that
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!