Midterm description: COP 2030 - Fall 2023 Due: 10/04/2023 - 1159 pm. Submit your source file...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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. 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.
Expert Answer:
Answer rating: 100% (QA)
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 the full answer
Related Book For
Business Intelligence And Analytics Systems For Decision Support
ISBN: 9781292009209
10th Global Edition
Authors: Efraim Turban, Ramesh Sharda, Dursun Delen, Pearson Education Limited, Dennis G. Zill
Posted Date:
Students also viewed these programming questions
-
Conventional accounting practice allows sales revenue to be included in an accounting period than the one in which cash relating to the sale is received. This is risky because debtors may not always...
-
1 7-find (+3+ 3x dx In(x3+x2)-Inx-en 99 dx 8- find Inex e(x+1)
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Consider the utility function U(x 1 , x 2 ) = x 1 x 2 with budget constraint p 1 x 1 + p 2 x 2 = c. (a) Show that the maximum of U(x 1 , x 2 ) subject to the budget constraint is equal to c 2 /(4p 1...
-
State the frequentist interpretation of probability.
-
A more complicated model of the armature-controlled motor is shown in Figure 6.51, in which the rotor is connected to an inertial load through a flexible and damped shaft. \(K_{\mathrm{m}}\) and...
-
2. YOU BE THE JUDGE WRITING PROBLEM An off-duty, out-of-uniform police officer and his son purchased some food from a 7-Eleven store and were still in the parking lot when a carload of teenagers...
-
Condensed financial data of Lemere Inc. follow. Additional information:1. New plant assets costing $100,000 were purchased for cash during the year.2. Old plant assets having an original cost of...
-
Your firm has earnings before interest and taxes of $160,000. Both the book and the market value of debt is $300,000. Your unlevered cost of equity is 12% while your cost of debt is 8%. The tax rate...
-
You are an Examiner for the Refund Integrity Program in the GST/HST Audit Division of the Canada Revenue Agency (CRA). Using sophisticated analytical tools, you are able to identify GST/HST returns...
-
Entries for Notes Payable A business issued a 60-day, 5% note for $96,000 to a creditor on account. Journalize the entries to record (a) the issuance of the note and (b) the payment of the note at...
-
during which step in the STP marketing process is a value proposition defined and an action p;lan developed?
-
Develop a DH table for the figure and set up it in MATLAB ai d 05 COCO OCE 11 a
-
1.) You go to see your financial advisor and they tell you that as you get older you should shift your retirement portfolio to a more conservative mixture of stocks and bonds. They tell you that over...
-
In light of recent accounting and financial scandals (Enron, Tyco, Adelphia Communications), can or should investors solely rely on financial statements? Can investors have confidence in analysts...
-
C. a. Which descriptions about elastic deformation of materials are true: (a) Elastic recovery of material is a result of the return of inter-atomic bonds to its lowest-energy status; (b) elastic...
-
how could the historical data, number of bookings, climate and weather, function type be used to estimate the number of dessert serves or dessert products to be prepared for a dinner service period
-
Differentiate. y = ln(3x + 1) ln(5x + 1)
-
In the company identified in the previous question, illustrate their main products and style of BI and discuss the main tools used. Data from previous Question Search the Web for a company that uses...
-
One of the application areas where Big Data and analytics promise to make a big difference is arguably the field of politics. Experiences from the recent presidential elections illustrated the power...
-
Enter google.com/scholar and search for articles that talk about Big Data versus data warehousing. Find at least five articles. Read and summarize your findings.
-
What information appears on Form W-2, the employee's Wage and Tax Statement?
-
Workers compensation provides insurance for employees who (a) are unemployed due to a layoff. (b) are unemployed due to a plant closing. (c) are underemployed and need additional compensation. (d)...
-
The journal entry at the end of the year that recognizes an additional premium owed under workers compensation insurance will include a (a) debit to Workers Compensation Insurance Expense. (b) debit...
Study smarter with the SolutionInn App