Python Programming: An Introduction to Computer Science, 3rd Ed.
Python Programming: An Introduction to Computer Science, 3rd Ed.
3rd Edition
ISBN: 9781590282755
Author: John Zelle
Publisher: Franklin, Beedle & Associates
bartleby

Concept explainers

bartleby

Videos

Question
Book Icon
Chapter 5, Problem 5PE
Program Plan Intro

Program to calculate numeric value of a name

Program plan

  • Define class main. Inside the main function
    • Declare variable lookup
    • Define variable inputname
    • Define variable formatinputname
    • Execute for loop
    • Define variable wordvalue
    • Define variable letter
    • Define variable lettervalue
    • Define variable wordvalue
    • Print the statement
  • Call the main function

Blurred answer
Students have asked these similar questions
A fish-finder is a device used by anglers to find fish in a lake. If the fish-finder finds a fish, it will sound an alarm. It uses depth readings to determine whether to sound an alarm. For our purposes, the fish-finder will decide that a fish is swimming past if:there are four consecutive depth readings which form a strictly increasing sequence (such as 3 4 7 9) (which we will call "Fish Rising"), orthere are four consecutive depth readings which form a strictly decreasing sequence (such as 9 6 5 2) (which we will call "Fish Diving"), orthere are four consecutive depth readings which are identical (which we will call "Constant Depth").All other readings will be considered random noise or debris, which we will call "No Fish."Create a Python program called "fishfinder_firstname_lastname" that takes 1 input of string of 4 numbers separated with comma. Your program must display "Fish Rising", "Fish Diving.", "Fish At Constant Depth" or "No Fish".Example:30,10,20,20 Must display No…
What is the English language denoted by the following Regular Expression R= (k|b)*(k|bb).
Computer Science The term “knowledge” is defined in the dictionary (Oxford Learner’s Dictionaries) as the information, understanding, and skills that a person gains through education or experience. So, it is expected that only human-beings can possess and use knowledge.   However, with machine learning and deep learning, it now seems that “machine” can also possess and use knowledge. For example, Google’s AlphaGO won three-match series against the world’s best Go players.   Can “machine” possess and use knowledge? What do you think? Please provide details and examples to support your opinions.
Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Text book image
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781305480537
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Text book image
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Computational Software for Intelligent System Design; Author: Cadence Design Systems;https://www.youtube.com/watch?v=dLXZ6bM--j0;License: Standard Youtube License