Complete the program below which counts the number of capital letters in word? count = 0 for char in word: count = count + 1

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter8: Arrays
Section: Chapter Questions
Problem 4GZ
icon
Related questions
Question
Question
1
Complete the program below which counts the number of capital letters in word?
count
Not yet
for char in word:
answered
Marked out of
3.00
count
count + 1
P Flag
question
if char.upper():
if word.isupper():
if char >= "A" and char <= "z" :
if char.islower():
if char.isupper():
Transcribed Image Text:Question 1 Complete the program below which counts the number of capital letters in word? count Not yet for char in word: answered Marked out of 3.00 count count + 1 P Flag question if char.upper(): if word.isupper(): if char >= "A" and char <= "z" : if char.islower(): if char.isupper():
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Methods of StringBuilder class
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
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT