Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using Python don't use while True: in any of your code. In addition, you cannot use any sequences (0.9., lists, tuples, dicts, sets) - First

image text in transcribed
image text in transcribed
Using Python don't use "while True:" in any of your code. In addition, you cannot use any sequences (0.9., lists, tuples, dicts, sets) - First you will print the instructions and walt for the user to press ENTER: "Welcome" "On each trial you will see a color name and then quickly press a letter on the keyboard." "If the color is Red, press U, if the color is Green, pressi" "If the color is Blue, press O, if the color is Yellow, press P" "Press ENTER to continue" - Your experiment will present stimuli in 2 trial blocks (block 1 and then block 2). Each block will contain exactly 10 trials. - At the start of each block, show this string and wait until the user presses ENTER: "Press ENTER to Start Block X" (where X is the block number) - On each trial you will randomly pick a number from 1 to 4. If you pick 1, the color is Red. Likewise, 2 - Green, 3 = Blue, and 4 - Yellow. - On each trial show this string and wait for the users's response: "X" (where X is one the trial's stimulus color) - If the participant enters a response other than u, i, o, or p. show this string "X (choose U, I, O, or P)" (where X is one the trial's stimulus color) and then wait for their response again. Continue doing this until they enter a valid letter. - Once you have a valid response, move on to the next trial. - Once you have presented 10 trials, the block is over. If this happens, move on to the next block. - Once you have presented 2 trial blocks, the experiment is over. Show this message and halt. "The Experiment is Over. Thanks For Your Participation!" Here is an example run: Welcome To Our Experiment! On each trial you will see a color name and then quickly press a letter on the keyboard. If the color is Red, press U, if the color is Green, press If the color is Blue, press O, if the color is Yellow, press P Press ENTER to continue Press ENTER to Start Block 1 Yellow Green i Blue o Green i Press ENTER to Start Block 2 Blue O Red u Red Yellow The Experiment is Over. Thanks For Your Participation

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

Next Generation Databases NoSQLand Big Data

Authors: Guy Harrison

1st Edition

1484213300, 978-1484213308

More Books

Students also viewed these Databases questions

Question

1. What is meant by Latitudes? 2. What is cartography ?

Answered: 1 week ago

Question

What is order of reaction? Explain with example?

Answered: 1 week ago

Question

Why do HCMSs exist? Do they change over time?

Answered: 1 week ago