Question: Write a program that prints the following in the variable UVI The first letter The tenth letter The 2 7 th letter The last letter
Write a program that prints the following in the variable "UVI"
The first letter
The tenth letter
The th letter
The last letter
The length of the string
The variable in all UPPERCASE
The variable in all lowercase
Instructions for #
Start a new program named "StringTest" containing the standard main method
Between the curly brackets of the main method
Declare and initialize variables
UVI
firstLetter
tenthLetter
twentySeventhLetter
lastLetter
upper
lower
Assign the following statement to the UVI variable
The University of the Virgin Islands is a Land Grant University.
Print the first letter in UVI
Print the tenth letter in UVI
Print the th letter in UVI
Print the last letter in UVI
Print the length of the UVI variable
Print variable UVI in all UPPERCASE
Print variable UVI in all lowercase
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
