Question: In IntelliJ Java (Azul Zulu version) I need to code a program that counts punctuation symbols in a String. (Below are the instructions and example

In IntelliJ Java (Azul Zulu version) I need to code a program that counts punctuation symbols in a String.
(Below are the instructions and example output. Please ignore the other conversion options and help me make a program that does # 1 conversion option)
In IntelliJ Java (Azul Zulu version) I need to code a program
that counts punctuation symbols in a String. (Below are the instructions and

4. The first three of the above options will be implemented in separate methods. Refer to the following information in implementing the methods described below. To count the number of punctuation marks in a corpus of text, perform the following steps: - Create integer variables named periods (.), questions (?), commas (,), exclamations (!), apostrophes ('), semicolons (;), and backslashes ( ). Initialize each to zero. - For each character in the String of Lext (from left to right): - Retrieve the character at the current index. - Ir the character is equal to a certain punctuation mark, increment its counter. - Print each counter variable along with a description followed by a new line. When the comter is 1, the singular version of the deseription should be used. Otherwise, the plural version should be used. Example Program Execution User input is indicated as bold text. Copying apostrophes from below will cause an error. - - Conversions Menu - - Enter '1' to count punctuation symbols in a String. Enter ' 2 ' to convert characters to binary. Enter ' 3 ' to convert 8-bit binary to a character. Enter '4' to exit. 1 Enter a few sentences: You may talk o' gin and beer \When you're quartered safe out 'ere, \An' you're sent to penny-fights an' Aldershot it; You entered 0 periods, 0 question marks, 1 comma, 0 exclamations marks, 6 apostrophes, 1 semicolon, and 2 backslashes

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!