Write a C++ function using basic c++ techniques, for example no pointers to solve the question below. the function must

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Write a C++ function using basic c++ techniques, for example no pointers to solve the question below. the function must

Post by answerhappygod »

Write a C++ function using basic c++ techniques, forexample no pointers to solve the question below.
the function must randomly selects a puzzle in that categoryfrom the array of Puzzle structs. Since a puzzle in any categorycan be randomly selected, it is important to repeatedly generaterandom numbers until a puzzle in the desired category is found.After selecting the puzzle, it is displayed to the player with theletters “blanked off”. The character ‘#’ is used to hide theletters. If there are spaces or dashes (‘-‘) in the puzzle, theseare revealed to the player.
for example, the puzzle “FULL-LENGTH WALL MIRROR” would bedisplayed as follows: ####-###### #### ######
struct Puzzle{ string category; char puzzle[80]; };
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply