Create the pseudocode for a game application

Assignment Help Data Structure & Algorithms
Reference no: EM13727002

Question: Create the pseudocode for a game application that contains an array of five (5) multiple-choice questions related to your favorite hobby. Each question contains four answer choices - A..., B..., C..., D... (the ...'s are your potential answers including the correct answer). All four (4) choices for each question should be stored in a parallel array. Also create another parallel array that holds the correct answer to each question-A, B, C, or D. NOTE: all arrays are single-dimension.

When a player starts (launches) this game app, pass each question to a method that displays the question and accepts the player's answer (A, B, C, or D). If the player does not enter a valid (not necessarily a correct) answer choice, force the player to reenter the choice until the player enters a valid (might not be a correct answer) value of A, B, C or D. Return the player's valid (but not necessarily correct) answer to the main program. After the player's answer is returned to the main program, pass it and the correct answer to a method that determines whether the values are equal and displays an appropriate message. After the player answers all five questions, display the number of correct and incorrect answers that the player chose. Be sure to use the concepts of this chapter where appropriate - arguments/parameters, return values, void, etc.

Reference no: EM13727002

Questions Cloud

Calculating the average value of five sample measurements : Factors that should be considered when selecting Six Sigma projects include the following EXCEPT. Calculating the average value of 5 sample measurements of door width is an example of
Discusses the requirements of external audit : What is their share in the market? Which is your target market? What external sources may influence our operations
What are the structural differences in the plans : What are the structural differences in the plans? Address the following items for each plan: number of branches of government, Number of houses in the Congress of each plan and congressional members chosen by whom.
Problem related pseudocode for a game application : Create the pseudocode for a game application that contains an array of five (5) multiple-choice questions related to your favorite hobby. Each question contains four answer choices - A..., B..., C..., D...
Create the pseudocode for a game application : Create the pseudocode for a game application that contains an array of five (5) multiple-choice questions related to your favorite hobby.
How much would a canadian dollar : Assume the inflation rate in Canada to be 5 percent per year for the indefinite future. How much would a Canadian dollar, at the end of 10 years, be worth in terms of today's dollar?
Power point presentation on data warehouse tasks : Ppt data warehouse tasks: First Style  1-Dimensions 2- The fact table 3- Browse the cube
Why is play differentiated from other activity : Examine Huizinga's "Play Theory." Why is "play" differentiated from other activity? What makes play "play" and not just another activity one does in the day?
What role do you believe government regulation : What role do you believe government regulation should play to ensure ethical conduct by businesses

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Calculate best and worst-case speedup for centralized scheme

Suppose that it doesn't take any time to allot work to process, calculate best- and worst-case speedup for centralized scheme for dynamic mapping with two processes.

  Create a java program to arithmetic expression

Create a Java program that takes as input an infix arithmetic expression then transforms to a postfix expression and based on binary tree, it evaluates that expression.

  Modify algorithm to always select president of company

How would you modify your algorithm to always select the president of the company (regardless of his fun rating or the consequences on the overall amount of fun we can achieve)?

  Design systems with less complexity algorithms

Complexity of the algorithms so that we can write the programs with out sacrificing the other aspects like speed, qualit y and other related thing.

  Write down an algorithm draw a flow chart and write a java

question write an algorithm draw a flow chart and write a java program to accept quiz 10 midterm 30 project 15

  Determine the impedances of elements in laplace domain

Redraw the schematics with the impedance of each of the element shown in Laplace domain. Then determine the overall impedance of the entire circuit between the two ends of the shown circuit and express it in Laplace domain as a ratio of two polyno..

  Different levels of a dbms

Recognize the level within a database system user and designer of the DBMS software at which each of the following concerns or activities happen,

  Program for stack by using dynamically allocated array

Write a C++ class which implements stack by using a dynamically allocated array. Initial size of particular stack must be determined when it is created.

  Write a xml schema for the validation of the document notes.

write a XML schema for the validation of the document notes.xml. Write the schema according to the following three approaches;1.- Based on the document structure2.- Structured (bottom-up design)3.- Type-based (top-down design)

  Give an algorithm that returns the position

Give an algorithm that returns true if a string contains properly nested and balanced parentheses, and false if otherwise. Hint: At no time while scanning a legal string from left to right will you have encountered more right parentheses than left..

  Creating database for charity event

Your Project is to organize a charity event. You must use at least two events, one of which must be a Windows program such as Word, WordPad, or Paint.

  Design adatabase to keep track of all students at university

Discuss how you would design a database to keep track of all students at a university. Explain tables, Primary Keys, Foreign Keys, relationships, attributes, Candidate Keys.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd