Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please program this in c++ The game starts by asking the user about the level of difficulty (1-3) and based on the difficulty level it

Please program this in c++ image text in transcribed
image text in transcribed
The game starts by asking the user about the level of difficulty (1-3) and based on the difficulty level it would choose a random word from the array of words. The program should show an error if the difficulty level is not a valid number by showing "Please enter a valid difficulty level!". The users have 4 chances to guess any given word.If they win they will be shown You have lost -" and if they lose they will be shown" You have WON -". After each round the user should be asked if they are interested play again or not. The words list need to be stored in a single global array. The index of the words is associate with its difficulty.In other words, a word with index of 5 in the array is more difficult than a word with index of 1. Words List Difficulty 1 fun car test book class Difficulty 2 mouse notepad keyboard computer blackboarcd Difficulty 3 Kayak Oxygen Awkward Memento Bagpipes Notes: . Minimum of one function should be used to create this program (not including main) . Use the given dictionary of words. . Please submit a copy of the source code as well as the output of the programs

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems For Advanced Applications 18th International Conference Dasfaa 2013 Wuhan China April 22 25 2013 Proceedings Part 2 Lncs 7826

Authors: Weiyi Meng ,Ling Feng ,Stephane Bressan ,Werner Winiwarter ,Wei Song

2013th Edition

3642374492, 978-3642374494

More Books

Students also viewed these Databases questions