Question: I need help with this assignment in flowgorithm how would I be able to loop these questions and what would the index be for the
I need help with this assignment in flowgorithm how would I be able to loop these questions and what would the index be for the outputs?
Main This example shows how to declare and populate the arrays, and how to presenta question and its choices, for the Final Project Integer SVE, index SIZE = 4 Five parallel arrays String Array questions[SIZE) choiceA[SIZE), choiceB[SIZE] choiceC[SZE), answers(SIZE) In this example the arrays are populated one question at a time: question[0] choiceAlo). choiceB[0].choicecco answers[0] then move on to the next question question[1]. choiceAll choice (1) choiceC(1). answers[1] etc. questions[0] - "A yelow light at a traffic signal means... questions[0] = "A yellow light at a traffic signal means choiceA[0] = "a) slam on the brakes" choiceB[0] = "b) do not enter the intersection" choiceC[0] = "c) turn left on red" answers[0] = "b" questions[1] = "Prior to making a left turn a motorist should." choiceA[1] = "a) wait until oncoming traffic is close enough so no cars can follow them through the intersection" choiceB[1] = "b) drift to thier right in order to make a wide arcing turn" choiceC[1] = "c) put on thier turn signal at least 100 feet before turning" answers[1] - "C" questions[2] = "When making a right turn on red." choiceA[2] = "a) slow down a little and take a quick look to your left before entering the intersection" choiceB[2] = "b) come to a full stop and check for traffic before proceeding" choiceC[2] - "c) go slowly after making the turn so that everyone knows you are a safe driver answers[2] = "b" questions[3] = "What is a safe following distance when travelling at 50mph?" choiceA[3] = "a) 100 yards - everyone behind you will respect you for being a safe driver" choiceB[3] = "b) Close enough to see the color of thier eyes in thier rear view mirror" choiceC[3] = "c) 10 car lengths" answers[3] = "C" Here is how to present a single question and its choices. Note that you must use a loop structure to present the questions and choices, and get and process the user's responses index=0 choiceB[3] = "b) Close enough to see the color of thier eyes in thier rear view mirror" choiceC[3] = "c) 10 car lengths" answers[3] = "C" Here is how to present a single question and its choices. Note that you must use a loop structure to present the questions and choices, and get and process the user's responses index = 0 Output questions[index] Output choiceA[index] Output choiceB[index] Output choiceC[index] End





Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
