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
Elena-2011 [213]
3 years ago
15

Write a program that reads one or more strings from the standard input and outputs the count of vowels, consonants, and digit ch

aracters found in the stream.
Computers and Technology
1 answer:
Illusion [34]3 years ago
7 0

Answer:

endinput = "no"

mylist = []

vowel = ['a', 'e', 'i', 'o', 'u']

vowelcount = 0

consonantcount = 0

digitcount = 0

string = " "

number = [ str(i) for i in range(0, 10)]

while endinput == "no":

   inputs = input("Enter string value: ")

   mylist.append(inputs)

   endinput = input("Do you want to end input? ( enter no to continue:  ")

for item in mylist:

   txt = item

   print(txt)

   for i in txt:

       if i == string:

           continue

       elif i in vowel:

           vowelcount +=1

       elif i in number:

           digitcount += 1

       else:

           consonantcount += 1  

print("Vowels: ", vowelcount)

print("Digits: ", digitcount)

print("Consonant: ", consonantcount)

Explanation:

The python program receives one or more strings from the standard input and appends it to a list. The algorithm iterates through the list of string values and counts the number of vowels, consonants, and digits.

You might be interested in
The transitions between slides in a presentation are one type of powerpoint ____.
slava [35]
The transitions between slides in a presentation are one of type of power point 
Animation.
Animation is a set of effects which can be applied to objects in power point  so that they will animate in the slideshow power point.motion paths allow objects to move around the slide show.
4 0
3 years ago
(a) Draw a flow chart to a program that will have a servo arm move based on an input from a distance sensor. The sensor values w
Sveta_85 [38]

Answer:

c

Explanation:

got it right

6 0
3 years ago
is there reality in your point of view ? if your answer is yes, is there a couse effect relation ship between reality and appera
zheka24 [161]

Answer: Yes but maybe yes

Explanation: reality does exist pinch yourself

8 0
3 years ago
Read 2 more answers
You are implementing a wireless network in a dentist's office. The dentist's practice is small, so you choose to use an inexpens
Oksana_A [137]

Answer:

You should disable WPS in the access point's configuration.

Explanation:

Encryption is a form of cryptography and typically involves the process of converting or encoding informations in plaintext into a code, known as a ciphertext. Once, an information or data has been encrypted it can only be accessed and deciphered by an authorized user.

Some examples of encryption algorithms are 3DES, AES, RC4, RC5, and RSA.

In wireless access points, the encryption technologies used for preventing unauthorized access includes WEP, WPA, and WPA2.

In this scenario, you notice that an access point supports Wi-Fi Protected Setup (WPS) using a PIN and you are concerned about the security implications of this functionality. Therefore, to reduce this risk you should disable Wi-Fi Protected Setup (WPS) in the access point's configuration.

This ultimately implies that, the wireless access point will operate in an open state and as such would not require any form of password or PIN for use.

3 0
3 years ago
Which of the following statements is true of entrepeneurs
Vanyuwa [196]

Answer:

B. Entrepreneurs often work long hours and must take on the financial responsibilities of the business.

Explanation:

The options:

A. Entrepreneurs generally start their business with the help of many employees who can take on all the day-to-day responsibilities.

B. Entrepreneurs often work long hours and must take on the financial responsibilities of the business.

C. Entrepreneurs usually work standard hours and only have some decision-making authority within the business.

D. Entrepreneurs often have all the responsibilities of managers but rarely deal with legal/safety concerns.

Entrepreneurs certainly work for long hours, and also they take on the financial responsibilities of the business. Other options like they start with the help of many employees is not true certainly. Also, all the decisions are being taken by them, and they always deal with the legal/safety concerns. Hence, B is the correct answer to this question.

8 0
3 years ago
Other questions:
  • Referencing Microsoft Word:1. How can you save a document created using Word 2016 in a PDF format? Explain the process step by s
    10·1 answer
  • Which table option enables you to combine the contents of several cells into one cell?
    9·2 answers
  • A Windows user right-clicks on his desktop. What is he planning to do?
    10·1 answer
  • Consider a Rational class designed to represent rational numbers as a pair of int's, along with methods reduce (to reduce the ra
    15·1 answer
  • 1. Write a SELECT statement that returns these columns: The count of the number of orders in the Orders table The sum of the Tax
    12·1 answer
  • In which view are fields set up in MS Access?
    11·2 answers
  • Please answer that and i'll gave you branlliest
    15·1 answer
  • Which is an example of a natural separation of visitors from employees?
    15·1 answer
  • _____ allows a function or operator to perform different tasks depending on the types of the arguments or operands. Group of ans
    10·1 answer
  • Program _______ graphically present the detailed sequence of steps needed to solve a programming problem.
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!