Question: what did I do wrong? I can not figureout what I did wrong. can someone please help me figureout where i went wrong. Es My

what did I do wrong?
what did I do wrong? I can not figureout what I did
wrong. can someone please help me figureout where i went wrong. Es
My barys 1301 Computer Science Thome 520 LAB Court characters yBooke catalog
He/FAQ 5.20 LAB: Count characters Wirte a program who is a chance
I can not figureout what I did wrong. can someone please help me figureout where i went wrong.

Es My barys 1301 Computer Science Thome 520 LAB Court characters yBooke catalog He/FAQ 5.20 LAB: Count characters Wirte a program who is a chance and string and whose indicates the number of times the character appears in the ring the output should include the character and use the form of the number of times the characters appears is not Exif the input is Monday the outs Exif the inputs Today is Monday the output is Be the input is It's a sunny day the output is Case matters s My library CSCI 1301: Computer Science I home > 5 20 LAB. Count characters zyBooks catalog Help/FAQ Makita Me Exif the input is t Nobody the output is n is different than N 0710 LAD ACTIVITY 5.20 1 LABCount characters LabProgram java Load default template 1.1/java code 2 import java.util.Scanner: 4. public class LabProgram 5 public static void main(String[] args) { 6 Scanner input new Scanner(System.in); 7 Systen.out.println("Enter character and string": 8 char chirput.next().charAt(0);// to read character 9 String Sinput.nextLine();// to read string 10 int count- 11 int lens.length}//find length of string 12 for(int -e; lente) 13 14 if(ch.charAt(1))//character matches chart index count 16 3 17 1fCcount-1) System.out.println(count.ch): System.out.println(count.ch.'\"s"): 21 1 1. Compare output 012 Output differs. See highlights below. Special character legend Input in Monday Your output Enter character and string: ine Expected output 2. Compare output 0/2 Output differs. See highlights below. Special character legend Input 2 Today is Monday Your output Enter character and string: O" Expected output 0/2 3. Compare output Output differs. See highlights below. Special character omd Input It's a sunny day Enter character and string 2n" Your output on books in new tab Expected output 4. Compare output 072 Output differs. See highlights below Special character legend Input t this is a sentence with many t's Your output Enter character and string: 4ts Expected output 4 tts 5. Compare output A 0/2 Output differs. See highlights below. Special character legend Input X X Your output Enter character and string:- Ox" Expected output 0x'a 5 previous submissions 11:28 AM on 3/3/21 0/10 View 11:28 AM on 3/3/21 0/10 View in a new tab 11:27 AM on 3/3/21 0/10 View

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!