Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

verview Pro involves Backspace typing. You are curious how much effort it t to type a C program (or a paper for your English class,

image text in transcribed

verview Pro involves Backspace typing. You are curious how much effort it t to type a C program (or a paper for your English class, or whatever). This project assumes you are a touch typist. It captures the keystrokes that ab Enter each stwhentingersandoci midtextrand prints E LLE o some basic statistics regarding your typing. The diagram at the right shows what fingers are used for each of the different keys. For our projec assumptions: t, we will make a couple of simplifying . We will never use the Caps-Lock or . We ignore white space. We assume there is a single space or tab or newline between tokens/strings, but we When entering a capital letter (or any punctuation character that uses the Shift key), then you count two fingers TAB or Ctrl or Alt or Backspace keys. do not count this in our totals (since we do not know what finger you used to generate the white space) in action (two keystrokes - the finger pressing that key plus the pinky finger of the other hand). For example, typing a # is two keystrokes-the left middle finger (for the 3 key) and the right pinky (for the Shift key) For this program, you need to identify the number of keystrokes that each finger performed when typing a block of text. Two sample executions of the program are shown below (input in red, expected output in blue). You can assume that no one single token/string in the input will ever be l than 50 characters The Quick Brown FOX jumps over the lazy old zebra or cat or moon or pool or DOG control-d # include int main (void) printf( "Roll Tide " ) return 0 18 strings entered, 63 total characters control-d 2 typed using only the left hand 2 typed using only the right hand 13 strings entered, 61 total characters 72 total keystrokes 0 typed using only the left hand 1 typed using only the right hand 15-Left index 8- Left middle 3 Left ring 8Left pinky 10 - Right index 2 Right middle 17 - Right ring 74 total keystrokes 11- Left index 9-Left middle 1Left ring 11 Left pinky 10 - Right index 8 -Right middle

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Graph Databases In Action

Authors: Dave Bechberger, Josh Perryman

1st Edition

1617296376, 978-1617296376

More Books

Students also viewed these Databases questions