Write a python program named namesearch.py that reads from the input a number a list of...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a python program named namesearch.py that reads from the input a number a list of 10 names. The program should then ask the user to enter a name. The program should then count the number of times that name appears in the list. Your output should look like the following: Enter name 1: Duhai Enter name 2: Mohammed Enter name 3: Asad Enter name 4: Asad Enter name 5: Mohammed Enter name 6: Duhai Enter nam 7: Mohammed Enter name 8: Asad Enter name 9: Mohammed Enter name 10: Mohammed Enter a target name: Mohan The name Mohamed appears 5 Write a python program named namesearch.py that reads from the input a number a list of 10 names. The program should then ask the user to enter a name. The program should then count the number of times that name appears in the list. Your output should look like the following: Enter name 1: Duhai Enter name 2: Mohammed Enter name 3: Asad Enter name 4: Asad Enter name 5: Mohammed Enter name 6: Duhai Enter nam 7: Mohammed Enter name 8: Asad Enter name 9: Mohammed Enter name 10: Mohammed Enter a target name: Mohan The name Mohamed appears 5
Expert Answer:
Answer rating: 100% (QA)
Answer Heres a Python program named namesearchpy that implements ... View the full answer
Related Book For
Java An Introduction To Problem Solving And Programming
ISBN: 9780134462035
8th Edition
Authors: Walter Savitch
Posted Date:
Students also viewed these programming questions
-
You are required to write a Python program that will manage character (heroes and villain) information. Character (hero and villain) information will be stored in a text file that will be read in...
-
Design a Java class that represents a cache with a fixed size. It should support operations like add, retrieve, and remove, and it should evict the least recently used item when it reaches capacity.
-
The following data applies to the two unrelated companies Lloyd Ltd and Cole Ltd: All taxable and deductible temporary differences relate to the profit or loss. Assume a corporate tax rate of 30%. A....
-
Compare and contrast blood, interstitial fluid, and lymph.
-
Superior Markets, Inc., operates three stores in a large metropolitan area. A segmented absorption costing income statement for the company for the last quarter is given below: The North Store has...
-
Describe and illustrate the following four types of damages: Nominal Actual General Punitive
-
(Earnings per Share) At December 31, 2003, Shiga Naoya Corporation had the following stock outstanding. 10% cumulative preferred stock, $100 par, 107,500 shares $10,750,000 Common stock, $5 par,...
-
Who were some of the principal Portuguese explorers? What did they achieve and what were the ramifications of these voyages for Portugal, and the world?
-
What is the current yield of the 7% IBM bond issue ($1000.00 bond) at the following bond prices.Fill out the table below. Current Rate Value of Bond Coupon 6.36% $70.00 6.59% $70.00 7.00% $70.00...
-
We consider two firms A and B that have the same financial needs in terms of maturity and principal ($10 million loan and a 5-year maturity). The two firms can borrow money in the market at the...
-
For the methods of this section, which of the following statements are true? a. The requirement of a simple random sample is satisfied if we have matched pairs of voluntary response data. b. If we...
-
Pragstamin Private Limited is a manufacturing company of automotive parts. It has remarkable footprints in the market. Customers say that they want to do more business with Pragstamin. Shareholders...
-
Impetus Solutions manufactures automotive and vehicle parts in Cleveland. To increase the core functioning of manufacturing operations, it has decided to implement SAP in its IT operations. Its IT...
-
For each of the following situations, describe the movement, either along the AS curve, or the direction of the shift of the AS curve. a. A significant and binding increase in the minimum wage. b. An...
-
Use Google or another search mechanism to find examples of conceptual models including classes with attributes. Analyze those classes and check if they present cohesion problems. Propose alternative...
-
The melting point of waxes is when crystals start appearing . The high thermal properties does not affect molecular weights of H.C.
-
United Business Forms capital structure is as follows: Debt ............................................ 35% Preferred stock ........................... 15 Common equity .......................... 50...
-
Use the class ClassObjectIODemo shown in Listing 10.10 of Chapter 10 to create a file of Species objects. The class Species is given in Chapter 10, Listing 10.9. Then write a program that reads the...
-
Write a Java program that displays the following picture. Write a sequence of println statements that display lines of asterisks and blanks. **** ** * **** ****** * ** ************** **** ** **
-
Consider a class ScienceFairProjectRating that will be used to help judge a science fair project. It will use the class RatingScore described in the previous exercise. The attributes for the new...
-
Give an example of a requirement on a computer printer.
-
Briefly describe the distinction between requirements and specification.
-
Give an example of a requirement on a digital still camera.
Study smarter with the SolutionInn App