Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I\'m in java one. can some body with this code please. thank you. Programming Co

ID: 3668275 • Letter: I

Question

I'm in java one. can some body with this code please. thank you.

Programming Concepts 1. Logical Operators 2. Compound if-Statements 3. while loops Assignment Description For this assignment, you will create a loop, in which you will continuously ask the user to enter a character. You will count how many of each type of character they entered, and display the results at the end Assignment Requirements 1. You must use if/else-if/else statements; no switch statements are allowed. 2. Do not have a condition for every character (i.e. don't have 94 if statements. You should only have about 4 or 5) Do not count the 3. character itself as an 'other' character. Assignment Suggestions Each character is attributed to a numerical value, otherwise known as an "ASCII value." Look at the website http://www.asciitable.com. On the website, there are 4 different columns that describe information about the ASCII value, which are "Dec" "Hx", "Oct", "Html", and "Chr". The only columns that we are interested in are "Dec" and "Chr". "Chr" means char, which is the character that the user entered "Dec" means decimal, which is the decimal value (decimal, meaning base 10, so we are talking about int), of the character. Each character has an jnt value. For example, the character 'K' has an jntt value of 75. The character '5' has an int value of 53. The character 'p' has an int value of 112. The character '+ has an int value of 43 To determine if the user entered in a digit, we can use the code: char C- ) .sharat (0) // Increase the DumDigits counter by one.

Explanation / Answer

import java.io.*; class CountMachine { static String n; static int l; public static void main(String args[]) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); // Read the String System.out.print("Enter a String : "); n = br.readLine(); l = n.length(); find(); } public static void find() { int a=0,b=0,c=0,d=0,e=0; char ch; for(int i=0;i=65 && ch='a' && ch ='0' && ch
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote