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

  Implement a method to delete every node from your bst

Implement a method to delete every node from your BST that contains a word that is 3 or fewer letters long (note that you must explicitly make these deletions, not fail to insert these words in the first place).

  Create algorithm to calculate union of two input sets-array

Create algorithm to calculate union of two input sets given as arrays, both of size O(n). The output must be array of distinct elements that form union of the sets.

  Design benefits election system-service request from huffman

Individual project for this course is in form of Service Request from Huffman Trucking. It is essential for student to access Service Request: SR-ht-001. Design a Benefits Election System.

  Homogeneous array

Assume that a homogeneous array with six rows and eight columns, is stored in row major order starting at address 20. If each entry in the array requires only one memory cell.

  Binary search tree adt

Write a client method that returns a count of the number of nodes in a binary search tree that contain a value less than or equal to the argument value.

  Open addressing with double hashing where second hash funcn

Given the input {3810, 8832, 8653, 2863, 3580, 8440, 1941, 4290, 8805, 7400}

  Studying in major paralegal

Make a Microsoft Word document which includes a table and hyperlinks to Web sites helpful to someone studying in your main Paralegal.

  Part 1 mining information from sales data is a common task

part 1 mining information from sales data is a common task in both traditional and online stores. past sales

  Problem 1nbsp what-if and goal-seeking analysis george is

problem 1nbsp what-if and goal-seeking analysis george is planning to set up a new hair salon in a trendy inner city

  Read in a height in feet and inches

Write a program that will read in a height in feet and inches (feet should be an integer, while inches should be a float) and will output the equivalent height in meters (as a float). Use at least three functions

  Give algorithm-correctness proof-time complexity for tree

Determine the minimum number of nodes in tree to remove so that the tree is separated into subtrees of sizes at most k. Give the algorithm, the correctness proof and the time complexity.

  Describe the key components in requirements elicitation

Analyze and describe functional and nonfunctional requirements in software engineering and describe the key components in requirements elicitation and analysis and use technology and information resources to research issues in software engineering.

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