| | |
how to make typing tutor software in c
![]() |
Well if you ask someone to type "please", and they type in "plz", do you tell them they're right or wrong?
http://www.catb.org/~esr/faqs/smart-...html#writewell
Which operating system and compiler are you using?
What sort of C programming skill do you already have?
http://www.catb.org/~esr/faqs/smart-...html#writewell
Which operating system and compiler are you using?
What sort of C programming skill do you already have?
you have "no clue" ??
okay, well first thing: how is this typing tutor supposed to work? what's your plan?
I'd think theres a few overall requirements....
(1) print some text to the screen that the person should type.
(2) start a timer, and begin collecting typed input.
(3) once they indicate they have stopped typing, stop the timer
(4) calculate total (elapsed) time, and the number of errors in their typed text.
(5) print results, allow them to try again or exit
then maybe draw a diagram of some functions, describe what task each function should do, use pseudo code to describe the functions inputs/outputs/return values, and indicated dependency direction of the functions.
and finally, start here:
Once you've got it filled out enough so that you can ask a reasonably specific and coherent question... come back here and post your code.
In the meantime, please ask your instructor why (s)he insists on using such a piece of crap compiler (Turbo C), as it is 15+ years out of date, employs non-standard C libraries, and virtually NO ONE in the industries of the modern world ever uses it???
write down their answer, then post it here please.
thanks.
.
okay, well first thing: how is this typing tutor supposed to work? what's your plan?
I'd think theres a few overall requirements....
(1) print some text to the screen that the person should type.
(2) start a timer, and begin collecting typed input.
(3) once they indicate they have stopped typing, stop the timer
(4) calculate total (elapsed) time, and the number of errors in their typed text.
(5) print results, allow them to try again or exit
then maybe draw a diagram of some functions, describe what task each function should do, use pseudo code to describe the functions inputs/outputs/return values, and indicated dependency direction of the functions.
and finally, start here:
c Syntax (Toggle Plain Text)
int main() { // insert code here }
In the meantime, please ask your instructor why (s)he insists on using such a piece of crap compiler (Turbo C), as it is 15+ years out of date, employs non-standard C libraries, and virtually NO ONE in the industries of the modern world ever uses it???
write down their answer, then post it here please.
thanks.
.
Last edited by jephthah; Jun 1st, 2008 at 4:05 am.
How about beginning with something simple like
Print out a sentence for the user to type in, say
"type in this line"
Then read a line of input from the user, say
"ttpe in tjis line"
Then what are you supposed to do (read your assignment)
- compare the line for errors?
- provide info that say "y" and "t" are close together on the keyboard as an explanation for the mistakes
- time how long it took to type in
- provide some kind of "speed and accuracy" output?
Maybe try simple programming exercises like
Press a key in 5 seconds
You pressed a key in 4.34 seconds.
Print out a sentence for the user to type in, say
"type in this line"
Then read a line of input from the user, say
"ttpe in tjis line"
Then what are you supposed to do (read your assignment)
- compare the line for errors?
- provide info that say "y" and "t" are close together on the keyboard as an explanation for the mistakes
- time how long it took to type in
- provide some kind of "speed and accuracy" output?
Maybe try simple programming exercises like
Press a key in 5 seconds
You pressed a key in 4.34 seconds.
•
•
Join Date: Sep 2006
Posts: 327
Reputation:
Solved Threads: 22
The default position for a person's fingers are ASDF with the left hand
and JKL; with the right hand. All other keys
are reached from there, so you can start by making the user learn off those keys first.
Display variations of ASDF first, then variations of JKL;
Then mix them and advance to the rest of the 2nd row.
Then the user learns off the first row, finally followed by the third, keeping in mind where the user needs to reach from to get to those keys.
and JKL; with the right hand. All other keys
are reached from there, so you can start by making the user learn off those keys first.
Display variations of ASDF first, then variations of JKL;
Then mix them and advance to the rest of the 2nd row.
Then the user learns off the first row, finally followed by the third, keeping in mind where the user needs to reach from to get to those keys.
Last edited by Colin Mac; Jun 1st, 2008 at 8:03 am.
•
•
Join Date: May 2008
Posts: 7
Reputation:
Solved Threads: 0
hi,
sir i have asked my instructor why they compel us to use such an obselete compiler so she says it is the most easier one and if we learnt c on this compiler we will be able to learn any other language easily.well sir thanks for your guidance but prob is that i have just started studying c coding in my institution and have reached till array yet. i even dont know any thing abut graphics.the major prob is coding for typing tutor in c .secondly for my project wht features i proposed to my teacher is that there would be a keypad for typing as keyboard we have in typing tutor which guides us where we hve to put our finger .and another thing was paragraph drill and alphabet bubbles which has to be typed within given time.last thing was accuracy speed and duration.
these are the features which has to be there in my program.but i dont know how to implement them in my coding.
thanks for ur interest.
sir i have asked my instructor why they compel us to use such an obselete compiler so she says it is the most easier one and if we learnt c on this compiler we will be able to learn any other language easily.well sir thanks for your guidance but prob is that i have just started studying c coding in my institution and have reached till array yet. i even dont know any thing abut graphics.the major prob is coding for typing tutor in c .secondly for my project wht features i proposed to my teacher is that there would be a keypad for typing as keyboard we have in typing tutor which guides us where we hve to put our finger .and another thing was paragraph drill and alphabet bubbles which has to be typed within given time.last thing was accuracy speed and duration.
these are the features which has to be there in my program.but i dont know how to implement them in my coding.
thanks for ur interest.
your instructor is smoking crack. learning to code on Turbo C will only hinder you, by teaching you non-standard C that will not ever work on any compiler used by the real world. you'll have to UNLEARN half the stuff you learn. Oh well, I'm going to drop the issue.
your program, considering your skills, i think is too ambitious to try and tackle all at once. make a smaller program to do simple tasks, and don't even think about graphics.
repeating what i said earlier, i think the following requirements would be a good start, and give you some simple functionality that you could build more complex functions into later:
(1) print some text to the screen that the person should type.
(2) start a timer, and begin collecting typed input from user.
(3) once the user indicates they have stopped typing, stop the timer
(4) calculate total (elapsed) time, and the number of errors in their typed text compared to the original text.
(5) print test results, allow them to try again or exit
technically this is more of a "typing test" than a "tutor", but all of the functions that you will have to code for this example, are functions that will be needed by a more complex typing tutor, so you won't be wasting your time.
it would be a good place to start, and would give you something tangible to show when completed.
.
your program, considering your skills, i think is too ambitious to try and tackle all at once. make a smaller program to do simple tasks, and don't even think about graphics.
repeating what i said earlier, i think the following requirements would be a good start, and give you some simple functionality that you could build more complex functions into later:
(1) print some text to the screen that the person should type.
(2) start a timer, and begin collecting typed input from user.
(3) once the user indicates they have stopped typing, stop the timer
(4) calculate total (elapsed) time, and the number of errors in their typed text compared to the original text.
(5) print test results, allow them to try again or exit
technically this is more of a "typing test" than a "tutor", but all of the functions that you will have to code for this example, are functions that will be needed by a more complex typing tutor, so you won't be wasting your time.
it would be a good place to start, and would give you something tangible to show when completed.
.
Last edited by jephthah; Jun 2nd, 2008 at 2:28 pm.
![]() |
Other Threads in the C Forum
- Previous Thread: regarding usage of const static var, const volatile var,
- Next Thread: String stuff
| Thread Tools | Search this Thread |
#include adobe ansi api array asterisks binarysearch changingto char character cm copyimagefile cprogramme creafecopyofanytypeoffileinc createcopyoffile csyntax database directory dynamic execv feet fgets file fork forloop frequency function getlasterror givemetehcodez global grade graphics gtkgcurlcompiling hacking hardware highest histogram i/o include incrementoperators infiniteloop input interest kernel keyboard kilometer license linked linkedlist linux linuxsegmentationfault list locate logical_drives looping loopinsideloop. lowest match matrix meter microsoft motherboard mqqueue mysql number odf opensource owf pattern pdf performance pointer posix probleminc process program programming radix recursion recv repetition research reversing scanf segmentationfault sequential shape socket socketprograming standard string systemcall threads turboc unix user voidmain() wab windows.h windowsapi






