Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please use Python Please use Python A checksum is a single number that can act as a kind of digital signature of a long string.

Please use Python

image text in transcribedPlease use Python

A checksum is a single number that can act as a kind of "digital signature" of a long string. Just like how two people will have different handwritten signatures, two strings can have two different digital signatures. There are many ways to calculate the checksum of any arbitrary string; the more complex the calculation, the less likely it is for two strings to have the same checksum value. Write a program that prompts for a string of characters and outputs the checksum. Use any of the lines in the attached file "SolarFuels.txt" as the string of characters for the checksum. The checksum for this program should simply be the sum of the ord() values of each character, modulo 10. For example, the checksum for the string "cat" would be (99 + 97 + 116) % 10 which is 2 1. 2. Write a program that can report the number of times the word "the" appears in a file attached file "SolarFuels.txt". Prompt the user for the filename and the word to search for and display the number of times the word "the" appears in the file

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

What does this public need on this issue?

Answered: 1 week ago