• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 5 pages
Exam (elaborations)

Program Control

Document preview thumbnail
Preview 2 out of 5 pages

A checksum is a simple way to protect the integrity of data by detecting errors that might occur when the data are communicated. It works by adding up the basic components of a datum and storing the resulting value. Anyone can later perform the same operation on the datum, compare the result to the authentic checksum, and (assuming that the sums match) conclude that the datum is probably not corrupted. For example, suppose Person A wishes to communicate the number "752" to Person B via a very poor satellite phone connection. A simple checksum algorithm might involve adding the digits of this number and reporting the ones' digit of the sum. So, since 7 + 5 + 2 = 14, the checksum for 752 is 4. Person A then reads both numbers 752 and 4 into the phone. At the other end of the connection Person B writes down what he thinks he hears as the two numbers, adds together the digits of the first number and checks that their sum is the same as the second number. If the sum is the same then there's a good chance that the number was communicated correctly, otherwise Person B will ask for the number to be communicated again. Activity 7.1 Suppose that Person B mishears the first number but correctly hears and writes down the checksum number, 4. Using the number entry tool below, provide an example of a number of three or more digits that contains none of the digits 7, 5 or 2, but that is such that it would lead Person B to think he had received the correct number. Activity 7, Question 1 Target checksum: 4 Number: 400 Score: 1 / 1 Submitted: 10/23/2016 10:08pm Activity 7.2 Array aof ints contains the digits of a number. Complete the following code to store in the variable checksumthe checksum of this number calculated using the algorithm described above


Document information

Uploaded on
November 12, 2022
Number of pages
5
Written in
2022/2023
Type
Exam (elaborations)
Contains
Questions & answers
$9.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
BESTGRADED
5.0
(2)
Sold
33
Followers
24
Items
1951
Last sold
1 year ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions

Whoops! We can’t load your doc right now. Try again or contact support.