2. Write a Java program for a keyboard typing practice. (9 pts) Your program will display...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
2. Write a Java program for a keyboard typing practice. (9 pts) Your program will display three random letters in lower case (a – z) at a time, and the users should type them correctly on the computer keyboard as fast as they can. Users have 1-minute practice. After 1 minute, the program will display a practice summary, including the total practice attempts the users have completed, the numbers of correct and incorrect attempts, and the percentage correctness in their practice. Execution Example: --jGRASP exec: java TypingPractice Welcome to the typing practice! Type what you see as fast as you can. We will see how many you can score in one minute! Ready? Hit the enter key on your keyboard to begin the practice. Please type: ciu ciu Please type: jfk jfk Please type: hhu hhu Please type: zns zns Please type: dxb dxb Please type: ypt ypt Please type: rse rse Please type: flh fks Please type: pbm pbm Please type: wxr WXr Please type: olh olh Please type: zal zal Please type: kgl kg1 Please type: ogw ogw Congratulations! In one minute you tried 14 questions, with 13 correct and 1 incorrect. That is 93% in correctness rate. 2. Write a Java program for a keyboard typing practice. (9 pts) Your program will display three random letters in lower case (a – z) at a time, and the users should type them correctly on the computer keyboard as fast as they can. Users have 1-minute practice. After 1 minute, the program will display a practice summary, including the total practice attempts the users have completed, the numbers of correct and incorrect attempts, and the percentage correctness in their practice. Execution Example: --jGRASP exec: java TypingPractice Welcome to the typing practice! Type what you see as fast as you can. We will see how many you can score in one minute! Ready? Hit the enter key on your keyboard to begin the practice. Please type: ciu ciu Please type: jfk jfk Please type: hhu hhu Please type: zns zns Please type: dxb dxb Please type: ypt ypt Please type: rse rse Please type: flh fks Please type: pbm pbm Please type: wxr WXr Please type: olh olh Please type: zal zal Please type: kgl kg1 Please type: ogw ogw Congratulations! In one minute you tried 14 questions, with 13 correct and 1 incorrect. That is 93% in correctness rate.
Expert Answer:
Related Book For
Accounting Information Systems
ISBN: 978-0133428537
13th edition
Authors: Marshall B. Romney, Paul J. Steinbart
Posted Date:
Students also viewed these programming questions
-
Find dy dx dx y= 5 5x 7x-4
-
You must decide whether to buy, build or lease a building for your business needs over the next 10 years. If you decide to build, you must determine if it is better to buy an existing building and...
-
You have now been asked to work with a textile startup business that your firm has just taken on as a client. The business is particularly in need of support and guidance with budgeting and how it...
-
Guido is calculating his personal income tax. He has the following expenses, and wants to know what he can claim on his tax return. The following expenses are all related to Guido's personal...
-
The wave number of the fundamental vibrational transition of 79BrB1Bris 323.2 cm-1, Calculate the force constant of the bond (mC9Br) = 78.9183 u, m(8IBr) = 80.9163 u).
-
For the network of Fig. 5.159: a. Determine re. and βre. b. Find Zi and Z0. c. Calculate Av. 16 V 270 k p 110 0 Zi 2.7 k2
-
Water flows in a 10-m-wide open channel with a flowrate of \(5 \mathrm{~m}^{3} / \mathrm{s}\). Determine the two possible depths if the specific energy of the flow is \(E=0.6 \mathrm{~m}\).
-
The wireless phone manufacturing division of a consumer electronics company uses activity-based costing. For simplicity, assume that its accountants have identified only the following three...
-
Why thin film on a glass surface can remove completely reflections at certain light wavelength? Magnesium fluoride (n = 1.38) is used as coating on nonreflecting glass. How thin coating is enough to...
-
Consolidation related simulation example: Millennium Capital Management, Inc., (MCM) acquired a 90% interest in NextGen, Inc. MCM's Financial Manager, Matthew Steven, has prepared a draft memo to the...
-
You are required to find an article in the field of business and critically evaluate the different sections and methodology used. You will need to critically discuss each section and then provide...
-
Consider the following class. public class Person (private String name; public Person(String name) { this.name = } name; @Override public String tostring() { return this.getClass().getName() +...
-
A company has current assets of $200 (cash of $65 and inventory of $135) and current liabilities of $120. At year end, management uses cash of $60 to repay accounts payable. After the repayment, what...
-
The Income and Expense Statement for September shows a food budget for $105,221. The actual food usage was $113,359. What would be the percent variance in food cost for September? The listed reasons...
-
A joint taxpayer, both aged over 65, receive a combined $54,000 in pension income, and $22,500 in Social Security income. Up to what amount of their Social Security is considered taxable?
-
25% Rate x Income before Income Taxes is $118,875, Income Before Income Taxes is $475,500 and Total Income is $689,500. What is net income and net income%?
-
What is virtualization? Explain in details.
-
The Taylor's series expansion for cosx about x = 0 is given by: where x is in radians. Write a user-defined function that determines cosx using Taylor's series expansion. For function name and...
-
There is an old saying: Crime doesnt pay. However, for David Miller crime paid for two Mercedes-Benz sedans; a lavish suburban home; a condominium at Myrtle Beach; expensive suits; tailored and...
-
Your university hires you to implement a database system for the library network. You have interviewed several librarians, and the following summarizes these discussions: ¢ The librarys main...
-
You are a consultant advising a firm on the design and implementation of a new system. Management has decided to let several employees go after the system is implemented. Some have many years of...
-
To correct the vision of a near-sighted patient, an optician needs to make a pair of eyeglasses using -3.0-diopter lenses. The lenses are plano-concave, and the front surface (that is, the surface...
-
A lens has an index of refraction of 1. 50 . Its left side curves outward with an absolute value of radius of curvature of \(0.15 \mathrm{~m}\), and its right side curves inward with an absolute...
-
You have a thin lens that is convex on both surfaces. The material of which the lens is made has index of refraction \(n=1.40\), and the radii of curvature are \(\left|R_{1} ight|=300 \mathrm{~mm}\)...
Study smarter with the SolutionInn App