Write a program that takes a string as input and outputs the string in all capital letters and the length of the string. The output should follow the format from the example below. Example: Enter a DNA strand: aAtc DNA strand: AATC Length: 4 Tip: make use of the .upper() method, the len() function, and the ‘\t’ escape character to add tabs.

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter7: Characters, Strings, And The Stringbuilder
Section: Chapter Questions
Problem 12RQ
icon
Related questions
Question

Write a program that takes a string as input and outputs the string in all capital letters and the length of the string. The output should follow the format from the example below.

Example:
Enter a DNA strand: aAtc
DNA strand: AATC
Length: 4
Tip: make use of the .upper() method, the len() function, and the ‘\t’ escape character to add tabs.

Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
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