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
What will be the output of the following HLOOKUP formula on the table?
shutvik [7]

Answer:

i think that the answer is 103

Explanation:

4 0
3 years ago
Read 2 more answers
Which expense is a bank least likely to extend a line of credit for?
m_a_m_a [10]

The answer would be:

A flat-screen TV.

7 0
3 years ago
Read 2 more answers
Draw a flowchart to convert 5 kg into gram .​
dlinn [17]

Answer:

Kg to g, multiply by 1000

Therefore, 5 Kg = 5000 gms

Explanation:

5 0
3 years ago
Read 2 more answers
Which of the following statements is valid?SELECT InvoiceNumber, VendorNameFROM Invoices JOIN Vendors ON Invoices.VendorID = Ven
vaieri [72.5K]

Correct Answer:

c.

SELECT InvoiceNumber, VendorName

FROM Invoices JOIN Vendors ON Invoices.VendorID = Vendors.VendorID

WHERE InvoiceTotal IN (SELECT MAX(InvoiceTotal) FROM Invoices)

Explanation:

All options only differ on the WHERE clause:

a: WHERE InvoiceTotal = MAX(InvoiceTotal)

Fails because aggregate functions (like MAX, COUNT, etc) have to be used on the SELECT clause.

b: WHERE InvoiceTotal = (SELECT MAX(InvoiceTotal))

Fails because the SELECT clause is incomplete.

c: WHERE InvoiceTotal IN (SELECT MAX(InvoiceTotal) FROM Invoices)

This one is correct, and returns the InvoiceNumber and VendorName register with the largest value on the InvoiceTotal field.

3 0
3 years ago
Its a weird question!
yaroslaw [1]
You are not crazy!
It goes straight to voicemail either way!

Hope this helps!
3 0
3 years ago
Read 2 more answers
Other questions:
  • Can someone can help me am dont know how much RAM do i need. I use my pc for work and to watch yt vid. Thanks​
    10·1 answer
  • The use of computer hardware and software to analyze biological data, such as dna sequence comparison data, is known as ________
    14·1 answer
  • g Write a program that asks for the weight of a package and the distance it is to be shipped. This information should be passed
    11·1 answer
  • Quinton is having trouble learning Spanish because he keeps reverting back to the grammatical structures of his native English l
    6·1 answer
  • If an individual receives 1.8 mGy while standing 4 ft from a source of radiation for 2 minutes, which of the following option(s)
    9·1 answer
  • Dynamic addressing: __________.
    12·2 answers
  • Ok so I know this is the most random question to ask on brainly, but does anyone know how to copy on placement in sims 4 for pc?
    14·2 answers
  • Which of the following best describes the existence of undecidable problems? *
    6·1 answer
  • So if brainly teaches me better why do we even have real life teachers??????
    5·1 answer
  • How would the grain crusher work
    11·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!