1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Allisa [31]
3 years ago
14

Write a functiongetNumber()that takes an upper case letter and returns thenumber according to the international standard above.W

rite a test program that prompts the user to enter a phone number as a string.The input number may contain letters. The program translates a letter (uppercaseor lowercase) to a digit and leaves all other characters intact.Here are sample runs of the program:Enter a string: 1-800- Flowers1 -800 -3569377Enter a string: 1800 flower
Computers and Technology
1 answer:
nataly862011 [7]3 years ago
5 0

Answer / Explanation:

To properly answer this question, we will utilize the python programming language.

The Python programming language is a general purpose and high level programming language. You can use Python for developing desktop GUI applications, websites and web applications. Also, it allows you to focus on core functionality of the application by taking care of common programming tasks.

Now, moving forward to write the program, we have:

def string_test(s):

   d={"UPPER_CASE":0, "LOWER_CASE":0}

   for c in s:

       if c.isupper():

          d["UPPER_CASE"]+=1

       elif c.islower():

          d["LOWER_CASE"]+=1

       else:

          pass

   print ("Original String : ", s)

   print ("No. of Upper case characters : ", d["UPPER_CASE"])

   print ("No. of Lower case Characters : ", d["LOWER_CASE"])

string_test('Enter Phone Number')

You might be interested in
a certain kind of fish in the ocean eats only algae. a seal eats this fish a bear eats the seal .when the bear dies,it’s recycle
STatiana [176]

Answer:seal

Explanation:

4 0
3 years ago
The spoken version of your company's purpose is called
beks73 [17]

Answer:

The answer to this question is given below in the explanation section. The correct answer is A

Explanation:

The spoken version of the company's purpose is also called an elevator pitch. because it has to be short enough to fit into a conversation that takes place on an elevator.

however the other options are not correct that tells the purpose of a company, because the vision statement shows what you will be at what stage in next coming year (in terms of growth, product /services etc). Your values are about what uniqueness you have in your product/service etc that you are providing to your customers/clients. While differentiation is not a spoken version of your company.

7 0
4 years ago
Which types of information and resources are usually available on government websites?A.locations and maps
Marta_Voda [28]
Information on government websites are usually things like Locations, Maps, Laws and Regulations. I don't know if you are allowed to answer multiple but, multiple of these are in government websites. I would go with E. Just because I feel like that is the safest bet. Although they do provide maps and locations. Good luck! I hope I helped! :)
3 0
3 years ago
Read 2 more answers
While their rational of a drug user's mind knows that they shouldn't use it again, another part of the brain overrides such warn
Levart [38]
I'm unsure in What it is you're asking.

While their rational of a drug user's mind???
this alone makes no direct sense.

also I'm unsure what Computers and Technology have to do with drug user's or their brains.

I can leave you with this a drug addict is and addict hence the name it's an addiction so there is no rationality or distinctiveness in knowing not to use again until one truly wants to get help and change for the better of self.

hope this helps
4 0
3 years ago
What are the core scripting and coding technolies used to build ai platforms?
boyakko [2]
<span>Artificial Intelligence is a huge field. </span>
4 0
3 years ago
Other questions:
  • What are some ways social media networks make money from users
    10·1 answer
  • Write a method isSorted that returns true if the list is in sorted (nondecreasing) order and returns false otherwise. An empty l
    12·1 answer
  • A computer _________ is a set of self-replicating program instructions that surreptitiously attaches itself to a legitimate exec
    9·1 answer
  • Assume you're running a query on your orders in the past year. You want to see how many orders were placed after May. What type
    5·1 answer
  • To access WordPad, Jill will click on Start, All Programs, Accessories, and WordPad. To access Notepad, Karl will click on Start
    14·1 answer
  • Maximum number of character symbols represented by Unicode
    6·1 answer
  • What describes a relationship between edge computing and cloud computing?
    6·1 answer
  • What are the advanced file and folder search commands?PLEASE GUYS ITS IMPORTANT
    12·1 answer
  • ...............is a personal computer that fits on desk.​
    5·2 answers
  • Which wireless technology will John use to provide wide-range cellular service that focuses on indoor coverage, low cost, long b
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!