International Programmers’ Day Accuracy and Speed Build a typing tester (Java Language) Show the user a randomized block

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

International Programmers’ Day Accuracy and Speed Build a typing tester (Java Language) Show the user a randomized block

Post by answerhappygod »

International Programmers’ Day
Accuracy and Speed
Build a typing tester (JavaLanguage)
Show the user a randomized block of text, and then challenge theuser to type that block of text — while timing them and scoringthem on for accuracy..
Have the option to for
- number 1 as (Letting the user racewith the time and try to finish the whole block of text before timeruns (About 30 seconds) and not letting the user continue typing +printing the results of their accuracy and how fast their were.
AND or let the user choose
- Number 2 as finishing the wholerandomized block of text and then print out their results.
Please use comments explaining your work, do not copy otherprogrammers work.
Thank you.
.
.
Example for the above javaproject:
import java.util.*;
public class TypingTester {
public static void main(String[] args) {// TODO: 1.Create a Scanner object to read input from thekeyboardScanner input = new Scanner(System.in);// TODO: 2.Generate a random number between 0 and the number ofwords in the file// TODO: 3.Read the file and store the words in an array// TODO: 4.If the user wants to play against the clock, start thecountdown timer// TODO: 5.Display the word to be typed// TODO: 6.Read the word from the keyboard and store it in avariable// TODO: 7.Compare the word typed with the word in the array// TODO: 8.If they match, score a point// TODO: 9.If they don't match, display the correct word// TODO: 10.If the user wants to play until they finish the file,keep going until all the words have been typed// TODO: 11.When the user has finished typing all the words,display the total score
}
}
Explanation:
This program is a typing tester that allows the user to type ablock of text and then calculates their accuracy and speed. Theuser has the option to play against the clock or to finish thewhole block of text. If the user plays against the clock, they havea certain amount of time to finish the text and their score isbased on how many words they were able to type correctly. If theuser chooses to finish the whole block of text, their score isbased on how many words they typed correctly out of the totalnumber of words.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply