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
AveGali [126]
4 years ago
13

Write a program that asks users to enter letter grades at the keyboard until they hit enter by itself. The program should print

the number of times the user typed A on a line by itself.

Computers and Technology
1 answer:
OlgaM077 [116]4 years ago
4 0

Answer:

The complete code in Python language along with comments for explanation and output results are provided below.

Code with Explanation:

# the index variable will store the number of times "A" is entered

index = 0

while True:

# get the input from the user

   letter = input('Please enter letter grades: ')

# if the user enters "enter" then break the loop

   if letter == "":

       break

# if user enters "A" then add it to the index

   if letter == "A":

       index = index + 1

# print the index variable when the loop is terminated

# the str command converts the numeric type into a string

print("Number of times A is entered: " + str(index))

Output:

Please enter letter grades: R

Please enter letter grades: A

Please enter letter grades: B

Please enter letter grades: L

Please enter letter grades: A

Please enter letter grades: A

Please enter letter grades: E

Please enter letter grades:

Number of times A is entered: 3

You might be interested in
IT professionals recognize that successful systems must be user-oriented, and users need to be involved, formally or informally,
elixir [45]

Answer: True

Explanation:

System development is the process in which a system is developed,planned, designed,tested, modified etc. Analysis of design,internal structure and external factors is done for implementation to creation of system.

  • An IT professional is responsible for performing various tasks in system development.He/she has to analyze and detect that the developed system is convenient for user.
  • Involvement of user also plays an important part in system development through various ways such as improvement in system, smooth implementation,innovation,enhancing quality etc.
  • So, user can be involved in official or unofficial manner for betterment of system development.
  • Thus, the given statement is true.
3 0
3 years ago
The database cannot be migrated to a different engine because sql server features are used in the application’s net code. The co
Nezavi [6.7K]

Answer:

Explanation:

B is correct

3 0
2 years ago
Write a short note on Computer<br>impact on<br> our society?​
Vesna [10]

well not a note but here are some few points

Explanation:

1 Computers can have the huge impact on employment of people like job and other stuff.

2 lots of human can be jobless or unemployed

3 it can cuz impact on the health of peoples

4 it also can make us lazy and and lack of self knowledge

8 0
3 years ago
Read 2 more answers
I love science its my favorite subject
Charra [1.4K]

Answer:

Nice!

Explanation:

i like physics and biology :)

4 0
3 years ago
Read 2 more answers
What is the output of the following code segment?
Aliun [14]

Answer:

o

Explanation:

8 0
3 years ago
Other questions:
  • Which of the following is important to do when downloading a game to your
    8·1 answer
  • There are two activities on your schedule, which are: 1) install server in lab 2) move server into the data center. however, the
    6·1 answer
  • Charlie is taking his slide presentation to a meeting at a remote location. He saves his presentation as a package on a CD. Char
    15·2 answers
  • What do developers do to support software products? explain to users which development process model was used to make the produc
    8·1 answer
  • As an improvement of the ATX form factor over AT, shorter wires made it easier to shield them and made them capable of handling
    6·1 answer
  • Someone asks you for help with a computer that hangs at odd times. You turn it on and work for about 15 minutes, and then the co
    10·1 answer
  • Which of the following countries have mixed-market economy
    5·1 answer
  • ¿Que es la energía? (una sola respuesta es la correcta)
    11·1 answer
  • Why can't this app have people ask riddles.
    8·1 answer
  • Please help me on this match all this up i’ll give you brainlist
    13·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!