Question: Midterm description: COP 2030 - Fall 2023 Due: 10/04/2023 - 1159 pm. Submit your source file (.java) on canvas. Hemant Pendharkar, PhD This assignment
Midterm description: COP 2030 - Fall 2023 Due: 10/04/2023 - 1159 pm. Submit your source file (.java) on canvas. Hemant Pendharkar, PhD This assignment will help develop problem solving skills using the contral structures and programming paradigms (00) as needed. You may use any number of methods in your program or write an Object orieted solution, as you may deem fit. Your program output must match my sample run, copied below. Please note, sample run covers all the possible cases, but you should test your program for more inputs. What this assignment requires your program to do: Accept an input from your user. Your program counts the number of vowels, and separately, each kind of vowel. It calculates the probability of findding a vowel in that input using the formula probability of a vowel = number of vowels/number of characters in the input It separately calculates the probablity of each vowel using the formula: probability of (x-vowel) = number of times x-vowel occurs/number of characters in the input, where x-a, e, i, o, u Your probability should be printed as in the sample run and with exactly two decimal places. Your program then visualizes this analysis for the user by printing a horizontal and vertical histogram for vowels in the input.
Step by Step Solution
3.49 Rating (149 Votes )
There are 3 Steps involved in it
To accomplish the task described in your assignment you can write a Java program Heres a sample Java program that accepts user input counts the number ... View full answer
Get step-by-step solutions from verified subject matter experts
