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
riadik2000 [5.3K]
2 years ago
11

write a program that computes an integer's checksum. to compute the checksum, break the integer into its constituent

Computers and Technology
1 answer:
Serggg [28]2 years ago
8 0

Using the knowledge in computational language in python it is possible to write a code that computes an integer's checksum.

<h3>Writting the code:</h3>

<em>def checkSum(n):                    # Function definition</em>

<em>    total = 0                       # total variable which returns sum</em>

<em>    c = 0                           # counter variable which count the even position</em>

<em>    while(n!=0):                    # running a loop while n != 0</em>

<em>        r = int(n%10)               #breaking the number into digits</em>

<em>        c=c+1                       # increase counter</em>

<em>        if c%2==0:                  # if counter is even position then double the number </em>

<em>            r = r*2</em>

<em>            while(r!=0):                            # do the process</em>

<em>                total = total + int(r%10)</em>

<em>                r = int(r/10)</em>

<em>            n=int(n/10)    </em>

<em>        else:                       # if counter is odd position then simple add the digit </em>

<em>            total = total + r       # into total</em>

<em>            n=int(n/10)</em>

<em>    return total                    # in the last return the sum of digits</em>

<em># Driver code</em>

<em>n = int(input("Enter Number:"))         # asking user to enter the number </em>

<em>print(checkSum(n))                      # calling the function</em>

See more about python at brainly.com/question/18502436

#SPJ1

You might be interested in
What stylistic device does Reverend Jesse Jackson use in the following statement: "We must relate instead of debate; we must ins
vivado [14]

Answer:

Parallelism

Explanation:

Parallelism:- It is a linguistic device.It is basically the use of components that are similar in their meaning ,sound or construction.So in the statement by Reverend Jesse Jackson .The statement uses words that sound similar and the statements have similar construction.

So we conclude that the answer is parallelism.

8 0
3 years ago
OH NO THE HEAVY IS DEAD
Anarel [89]

Answer:

what does that mean?

are you okay?

Did something happen?

4 0
3 years ago
Read 2 more answers
Lisa and her husband would like to buy a house soon. She continuously pays bills late. How do her actions affect her and others?
stiks02 [169]
Well actually it affects her credit. Home owners would not want to sell a house to someone who doesn't pay bills on time. It shows he/she is unreliable

3 0
3 years ago
Read 2 more answers
Identify some possible delivery systems for video programs
Rzqust [24]

Some possible delivery systems for video programs are:

  • Radio broadcast frequency
  • Coaxial cable
  • Satellite
  • Optic fiber
<h3>Which program delivery methods work the best?</h3>

The first technologies for distributing videos to the general public were historically terrestrial broadcast TV systems. Following these systems naturally and with great success were cable and DTH (direct to home) satellite technologies.

In the past, these systems have been installed on-site using hardware, networks, and other links that were especially created for the purpose of transmitting video feeds between various facilities and entities in the supply chain.

Therefore, These are the five different ways that learning is delivered: face-to-face instruction, virtual classrooms, online learning, blended learning, and mobile learning.

Learn more about delivery systems from

brainly.com/question/28420229

#SPJ1

7 0
1 year ago
The ub-04 form would most likely be used in what setting?
wlad13 [49]

The UB-04 form would most likely be used in the following setting:

  • Hospitals
  • Hospices
  • General health centers such as rural clinics.
  • Rehab facilities

The uniform bill (UB-04) form is also referred to as CMS-1450 and it is a standard claim form that is used for billing and submitting Medicare Part A outpatient or inpatient health claims to Medicare fiscal intermediaries such as insurance companies, medical providers (hospitals), etc.

Also, the uniform bill (UB-04) form was introduced by the National Uniform Billing Committee (NUBC) in 2004, so as to replace the UB-92 form.

Generally, UB-92 form is a paper claim form that is typically used for laboratory, radiology, surgery, etc. Thus, the UB-04 form would most likely be used in the following setting:

  • Hospitals
  • Hospices
  • General health centers such as rural clinics.
  • Rehab facilities

Read more on UB-04 form here: brainly.com/question/4437165

4 0
2 years ago
Other questions:
  • An investigator obtains consent and HIPAA authorization from subjects to review their medical records and HIV status. He plans t
    8·1 answer
  • When you use a script to create all of the tables for a database, you must start with the tables that don't have _______________
    15·1 answer
  • Write a Python program to do the following: (a)Use a for loop and a random integer generator to generate 5 random integers in 1
    10·1 answer
  • 1. Itemise the order in which BASIC executes arithmetic operation.
    13·1 answer
  • I have an airsoft pistol and I needed to take it apart to repair it and I lost some screws that were tiny and I dont know what t
    14·1 answer
  • Which of the following statements is NOT true about url extension?
    10·2 answers
  • Ian kno da answer tell me
    7·2 answers
  • If a employee has a grade grater than or equal to 18, then he she will get 50% bonous on the basic pay. Otherwise, the employee
    5·1 answer
  • What are the challenges of Cyber Law???? Needed ASAP ​
    5·1 answer
  • Brianna is feeling overwhelmed by the amount of digital
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!