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 27th letter
The last letter
The length of the string
The variable in all UPPERCASE
The variable in all lowercase
Instructions for #7
Start a new program named "StringTest" containing the standard main method
Between the curly brackets of the main method
Declare and initialize 7 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 27th 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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!