subject
Computers and Technology, 05.05.2020 20:25 kosta42

Run CountLetters and enter a phrase, that is, more than one word with spaces or other punctuation in between. It should throw an , because a non-letter will generate an index that is not between 0 and 25. It might be desirable to allow non-letter characters, but not count them. Of course, you could explicitly test the value of the character to see if it is between ‘A’ and ‘Z’. However, an alternative is to go ahead and use the translated character as an index, and catch an if it occurs. Since you want don’t want to do anything when a nonletter occurs, the handler will be empty. Modify this method to do this as follows:
§ Put the body of the first for loop in a try.
§ Add a catch that catches the exception, but don’t do anything with it.
Compile and run your program.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 23:00
In a file-oriented information system, a work file stores relatively permanent data about an entity is created and saved for backup and recovery purposes stores records that contain day-to-day business and operational data is a temporary file created by an information system for a single task
Answers: 1
question
Computers and Technology, 22.06.2019 06:30
Plz 40 points what are raster vectors? a bitmap image a vector file a type of printing press a small projector
Answers: 1
question
Computers and Technology, 23.06.2019 18:30
Janice recently received her college degree and is looking for a job. she is worried that since she just finished school, she will be required to repay her perkins and direct subsidized loans immediately. janice pulls out the paperwork she signed and reviews it again for repayment information. after reading all of the information, janice discovers that
Answers: 2
question
Computers and Technology, 23.06.2019 21:00
Uget brainliest if accurate mary has been given the responsibility of hiring a person for the position of a software testing officer. which management function would mary achieve this responsibility?
Answers: 1
You know the right answer?
Run CountLetters and enter a phrase, that is, more than one word with spaces or other punctuation in...
Questions
question
Mathematics, 23.10.2019 19:00
question
Mathematics, 23.10.2019 19:00
question
Mathematics, 23.10.2019 19:00