subject
Engineering, 21.04.2020 16:22 brandonleekenyon

(Using Python)Part 2aNumerology is the "study of the purported mystical or special relationship between a number and observed or perceived events." It has been used throughout human history as a way to attach meaning to a name, object or event using mathematics. It is considered a "pseudoscience" by modern scientists since it has no basis in observable phenomena. With that said, it makes a great programming challenge so we're going to go with it! :)What you want to do for this project is to ask the user to type in their name. Next, you will need to use a technique called "theosophical reduction" to convert their name into a number. With this technique we assign each letter of the alphabet its own number. For example, the letter "a" is equal to the number 1. "b" = 2, "c" = 3, "z" = 26, etc. You should ignore non-alphabetic characters (i. e. numbers, spaces and special characters)Once you've gotten all of the letters converted into numbers you can add them up into one single number. This is the "numerology number" for the name that the user entered. So for the name "craig" the numerology number would be:c = 3r = 18a = 1i = 9g = 73 + 18 + 1 + 9 + 7 = 38Here's are a few sample runnings of this program:Name: craigYour 'cleaned up' name is: craigReduction: 38Name: craig kappYour 'cleaned up' name is: craigkappReduction: 82Name: rumple stil skinYour 'cleaned up' name is: rumplestilskinReduction: 198Name: !rumple!stil!skinYour 'cleaned up' name is: rumplestilskinReduction: 198Name: pikachu!pikapika!Your 'cleaned up' name is: pikachupikapikaReduction: 143Name: PIKACHUpikapikaYour 'cleaned up' name is: pikachupikapikaReduction: 143Some hints:Convert the user's name to all uppercase or all lowercase before you do anything elseRemove any spaces, numbers or special characters from the name to ensure that you are only working with the letters A-ZThe ord() function may be userful to convert each character into an ASCII index

ansver
Answers: 1

Another question on Engineering

question
Engineering, 04.07.2019 18:10
Asingle-geared blanking press has a stroke of 200 mm and a rated capacity of 320 kn. a cam driven ram is assumed to be capable of delivering the full press load at constant force during the last 15 percent of a constant-velocity stroke. the camshaft has an average speed of 90 rev/min and is geared to the flywheel shaft at a 6: 1 ratio. the total work done is to include an allowance of 16 percent for friction a) estimate the maximum energy fluctuation b) find the rim weight for an effective diameter of 1.2 m and a coefficient of speed fluctuation of 0.10
Answers: 1
question
Engineering, 04.07.2019 18:10
Consider a large isothermal enclosure that is maintained at a uniform temperature of 2000 k. calculate the emissive power of the radiation that emerges from a small aperture on the enclosure surface. what is the wavelength ? , below which 10% of the emission is concentrated? what is the wavelength ? 2 above which 10% of the emission is concentrated? determine the wavelength at which maximum spectral emissive power occurs. what is the irradiation incident on a small object placed inside the enclosure?
Answers: 2
question
Engineering, 04.07.2019 18:20
Select any two (2) areas of applications of chain-drive. (clo4) a)-permanent lubrication necessary b)-hydraulic forklift truck operation c)-rigging and heavy moving materials d)-relatively high maintenance costs e)-costlier than belt drives
Answers: 2
question
Engineering, 04.07.2019 18:20
An engine runs on the ideal diesel cycle. the cycle has a compression ratio of 20 and a cutoff ratio of 2. the highest temperature in the cycle is 1200 k. if the heat into the system is 300 kj/kg of working fluid and using variable specific heats determine the work produced per mass of working fluid
Answers: 3
You know the right answer?
(Using Python)Part 2aNumerology is the "study of the purported mystical or special relationship betw...
Questions
question
Mathematics, 05.10.2020 03:01
question
Chemistry, 05.10.2020 03:01
question
Health, 05.10.2020 03:01
question
Mathematics, 05.10.2020 03:01
question
Mathematics, 05.10.2020 03:01
question
Spanish, 05.10.2020 03:01
Questions on the website: 13722367