You are on page 1of 3

Programming Logic- Assignment # 3 Assignmement # 3

Complete the seven steps of solution development and a data dictionary in preparing your solution. (This will have two sets of documents.) Scenario: Your Company is creating a program which will be used to quiz clients on various products. As a part of prototype delivery to your client, youve been asked to create the program logic for one of the quizzes. The particular quiz contains questions on 5 different soft drink products. Quiz Requirements:

Each question has the possibility of 4 answers. Verify if the respondent provides a valid response. If not then prompt them for it. When a valid response is provided, determine if it is the correct answer. If it is correct, display correct, otherwise, display The correct answer is and the correct answer. After the user answers all questions, display the number of correct and incorrect answers.

This should be constructed as a series of nested decisions. Inputs from Programming Lead: Remove the nested decisions by using an array. Create a parallel array with the correct answer for each question. Solution:Problem Analysis Given Data Required Results Solution Alternatives

Programming Logic- Assignment # 3 This is a quiz program which will contain At the end of the quiz, the use can know NA five questions and there will be four how many questions he has answered choices to answer. The answers will be correct and how many wrong. known immediately after the quiz.

Interactivity Chart.

QUIZ

Answer the question

Verification of answer

Display results

Programming Logic- Assignment # 3 1. Start. 2. Display Question. 3. Select any answer. 4. Verify the answer. 5. Display results. 6. End. Start.
Start

3 Display the questions. Select answer choice given. Verify the answer. Verify the answer. Print final output. Display results. from 1. Start 2. Transfer to display questions. 3. Transfer to verify the answers. 4. Transfer to display final results. 5. Transfer to print result/output.

Display Question. Select any answer.

Display Question

Select an answer

End.

Verify answer

Display results

End

Testing the Solution Examine the results which are displayed finally. According to these results, the final solution can be tested.

You might also like