Details of this Paper

Assignment 3: Complete the seven steps of solution development and a data dictionary in preparing your solution.

Description

solution


Question

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, you?ve 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.;Problem Statement;This program is to prompt user for 5 questions and get answer of each. Validate answer of each question and at the end display user total correct and incorrect answers.;Analysis;The program will use two arrays ? one to hold questions and one to hold correct answers. A loop will be used to display all questions one at a time. Then the user will be prompted to input an answer. If the answer is correct it will be display to user and is the answer is wrong, user will be displayed correct answer. After all five questions, a summary of total correct and incorrect answers will be displayed.;A boolean method is used to validate the user answer whether the answer is from the given options or not. If it is not, the user will be prompted again and again to input a valid answer.

 

Paper#70860 | Written in 18-Jul-2015

Price : $27
SiteLock