Recent

Author Topic: Year 11 assessment help  (Read 2600 times)

XIX_NAPALMER

  • Newbie
  • Posts: 2
Year 11 assessment help
« on: March 11, 2021, 08:02:12 am »
Hi all, Got an assessment due on the 16th of March and was wondering if anyone could help me code it in pascal. Aim is to create a reaction time test with multiple runs, also a scoreboard. For example https://humanbenchmark.com/tests/reactiontime
Any sort of help with this would  be very much appreciated.

MarkMLl

  • Hero Member
  • *****
  • Posts: 6676
Re: Year 11 assessment help
« Reply #1 on: March 11, 2021, 08:29:38 am »
Yes, people will help. But it would be considered good form- both by the people here and by your lecturer who is probably reading this- if you roughed something out yourself first.

Also please let us know what OS you're running etc.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

XIX_NAPALMER

  • Newbie
  • Posts: 2
Re: Year 11 assessment help
« Reply #2 on: March 11, 2021, 10:35:53 am »
Yeah good point.
I've got some things roughed out so far as in I know how to make it grab time, using sysutils and such, just not sure how to get it to use screen elements and detect when you click and how long after a blip. I have spoken quite a bit with my lecturer about the nature of this and he's given me some pointers but due to it being a formal assessment task he is not allowed to help us all that much.

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2020
  • Former Delphi 1-7, 10.2 user
Re: Year 11 assessment help
« Reply #3 on: March 11, 2021, 10:49:47 am »
You still haven't told us what Operating System you are using which Mark asked above.

You also need to explain what your program does so far and what you envision it doing.

As for detecting the time between a blip (whatever that is: sound? visual?) and a mouse click, a TTimer component as described with example at that link would be a useful avenue to pursue.

ASBzone

  • Hero Member
  • *****
  • Posts: 678
  • Automation leads to relaxation...
    • Free Console Utilities for Windows (and a few for Linux) from BrainWaveCC
Re: Year 11 assessment help
« Reply #4 on: March 11, 2021, 05:03:14 pm »
I have spoken quite a bit with my lecturer about the nature of this and he's given me some pointers but due to it being a formal assessment task he is not allowed to help us all that much.

This will apply to others as well.  You will be best served by providing as much detail as possible (code always helps) and then folks will almost certainly provide some assistance and suggestions.
-ASB: https://www.BrainWaveCC.com/

Lazarus v2.2.7-ada7a90186 / FPC v3.2.3-706-gaadb53e72c
(Windows 64-bit install w/Win32 and Linux/Arm cross-compiles via FpcUpDeluxe on both instances)

My Systems: Windows 10/11 Pro x64 (Current)

MarkMLl

  • Hero Member
  • *****
  • Posts: 6676
Re: Year 11 assessment help
« Reply #5 on: March 11, 2021, 05:22:33 pm »
I've got some things roughed out so far as in I know how to make it grab time, using sysutils and such, just not sure how to get it to use screen elements and detect when you click and how long after a blip. I have spoken quite a bit with my lecturer about the nature of this and he's given me some pointers but due to it being a formal assessment task he is not allowed to help us all that much.

Things to be considered: you mention "screen elements" and "click" which implies Lazarus, but we REALLY need to know more about your target environment. For precise timing you should be able to use something like https://sourceforge.net/projects/lazarus-ccr/files/EpikTimer/ (watch out for wrong link on that page) or most OSes make a precise time-of-day clock available (in the case of Linux, of the order of a uSec).

Finally, how are you acquiring input? If you're collecting it via USB you'll need to allow for finite latency and that this might be non-deterministic.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

Bart

  • Hero Member
  • *****
  • Posts: 5275
    • Bart en Mariska's Webstek
Re: Year 11 assessment help
« Reply #6 on: March 11, 2021, 06:03:19 pm »
Show us the code you have so far.
Then we can help.
We're simply not going to write it for you.

Bart

cdbc

  • Hero Member
  • *****
  • Posts: 1026
    • http://www.cdbc.dk
Re: Year 11 assessment help
« Reply #7 on: March 11, 2021, 06:34:47 pm »
Hi
Just to get you going with 'Clicking', consider this:
Code: Pascal  [Select][+][-]
  1. procedure TForm1.Button1Click(Sender: TObject);
  2. begin
  3. // do your stuff here... :-P
  4. end;
  5.  
HTH
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE5 -> FPC 3.2.2 -> Lazarus 2.2.6 up until Jan 2024 from then on it's: KDE5/QT5 -> FPC 3.3.1 -> Lazarus 3.0

 

TinyPortal © 2005-2018