Write a simple trivia quiz game

Assignment Help Computer Engineering
Reference no: EM131951361

Problem

Write a simple trivia quiz game. Start by creating a Trivia class that contains information about a single trivia question. The class should contain a string for the question, a string for the answer to the question, and an integer representing the dollar amount the question is worth (harder questions should be worth more). Add appropriate constructor and accessor functions. In your main function create either an array or a vector of type Trivia and hard-code at least five trivia questions of your choice. Your program should then ask each question to the player, input the player's answer, and check if the player's answer matches the actual answer. If so, award the player the dollar amount for that question. If the player enters the wrong answer your program should display the correct answer. When all questions have been asked display the total amount that the player has won.

Reference no: EM131951361

Questions Cloud

Examine some notably successful software-intensive systems : Examine some notably successful or unsuccessful software-intensive systems. To what extent was success or failure due to architectural issues.
What are the key determinants of success and failure : What are the key determinants of success and failure for each system? As an architect, how would these determinants change your approach to concept formulation.
Discuss about the national infrastructure protection plan : Create 3-5 page professional memo about your assessment of what needs to be done to meet the standards based on the National Infrastructure Protection Plan.
Consult one or more of references for software heuristics : Consult one or more of the references for software heuristics. Extract several heuristics and use them to evaluate a software-intensive system.
Write a simple trivia quiz game : Write a simple trivia quiz game. Start by creating a Trivia class that contains information about a single trivia question.
Why has supply chain management : Why has Supply Chain Management become a much more important topic in today's study of International operations management than 20 years ago?
What are the differences between emrs and ehrs : What are the differences between EMRs and EHRs? What challenges have they presented for health care managers? And, what challenges does the future proffer?
Write a function to compare two c-strings for equality : Write a function to compare two C-strings for equality. The function should return true if the strings are equal and false if they are not.
How will your plans affect the business : How will they affect the balance between securing the systems, and allowing the business enough breathing room to function effectively?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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