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, 03.07.2019 14:10
If the thermal strain developed in polyimide film during deposition is given as 0.0044. assume room temperature is kept at 17.3 c, and thermal coefficient of expansion for the film and the substrate are 54 x 10^-6c^-1 and 3.3 x 10^-6c^-1respectively. calculate the deposition temperature.
Answers: 3
question
Engineering, 04.07.2019 18:10
Water at 70Β°f and streams enter the mixing chamber at the same mass flow rate, determine the temperature and the quality of the exiting stream. 0 psia is heated in a chamber by mixing it with saturated water vapor at 20 psia. if both streams enters the mixing chamber at the same mass flow rate, determine the temperature and the quality of the existing system.
Answers: 2
question
Engineering, 04.07.2019 18:10
The thermal expansion or contraction of a given metal is a function of the f a)-density b)-initial temperature c)- temperature difference d)- linear coefficient of thermal expansion e)- final temperature f)- original length
Answers: 2
question
Engineering, 04.07.2019 18:20
Air flows over a heated plate Γ t a velocity of 50m/s. the local skin factor coefficient at a point on a plate is 0.004. estimate the local heat transfer coefficient at this point.the following property data for air are given: density = 0.88kg/m3 , viscosity 2.286 x 10 ^-5 kgm/s , k = 0.035w/mk ,cp = 1.001kj/kgk. use colburn reynolds analogy.
Answers: 1
You know the right answer?
(Using Python)Part 2aNumerology is the "study of the purported mystical or special relationship betw...
Questions
question
Mathematics, 22.11.2019 18:31
Questions on the website: 13722360