Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I'm having a hard time wrapping my head around how this program should be written. I've gone through my textbook several times but I just

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

I'm having a hard time wrapping my head around how this program should be written. I've gone through my textbook several times but I just don't know where to start. my first thought is to use if else statements but I'm not sure thatll work. Any and all help is appreciated!

Program Magic Mark's is a Magic shop that only lets the highy skilled magician's into their shop. At the door they are given a code word, if they reply with the correct response, they are allowed in. The code words are read from a text file list of words and the responses are not saved for security purposes. Write a program that will read a text file, tell the user the code word, and if the user gives the proper response, allows access Welcome to Magic Mark's Magic Shop, 1. Please enter the correct password to the passphrase to enter. 2. Quit Ok, your passphrase is: TWELVE Answer: 6 Congratulations, welcome! Welcome to Magic Mark' s Magic Shop, 1. Please enter the correct password to the passphrase to enter. 2. Quit 1 Ok, your passphrase is: TEN Answer: 5 Sorry, that is the incorrect answer Welcome to Magic Mark's Magic Shop, 1. Please enter the correct password to the passphrase to enter

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

Step: 3

blur-text-image

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

Visual C# And Databases

Authors: Philip Conrod, Lou Tylee

16th Edition

1951077083, 978-1951077082

More Books

Students also viewed these Databases questions