Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

EET-118 Mr. Shepherd Lab #9 ABC123 You are a master detective investigating a murder. A clue found at the scene indicates that the license plate

image text in transcribed

EET-118 Mr. Shepherd Lab #9 ABC123 You are a master detective investigating a murder. A clue found at the scene indicates that the license plate of the killer's car consisted of 6 characters, all from the set of characters A, B, C, 1, 2, 3. The clue did not indicate whether or not any of the characters were repeated within the 6 character total. Your task is to deduce the correct license plate number in fewer than 20 guesses. However, each guess you try aracters even though the actual number may use only 5, 4, 3, 2, or 1 of the 6 characters. With each guess, the program will tell you whether you are right or wrong. If you guess correctly and/or you enter a guess with duplicate characters, the program will exit. If the license number is correctly guessed, your program will also print out the raw data from which the license number was generated (see below) Proceed as follows: Use a random number generator that will produce integers in the range of 00- 99. Use the random number generator 6 times to generate the 6 characters by this formula A 00-19 20-39 2=75-89 C 40-59 3-90-99 1 60-74 Display a license number initially as As each character is correctly determined, replace the corresponding value with the correct value in that position. For example, if an A in the third position was correctly determined, the display would then show**A. Demonstrate your working program for the Instructor. Include a commented listing with your report. Name Course - Section Grade EET-118 Mr. Shepherd Lab #9 ABC123 You are a master detective investigating a murder. A clue found at the scene indicates that the license plate of the killer's car consisted of 6 characters, all from the set of characters A, B, C, 1, 2, 3. The clue did not indicate whether or not any of the characters were repeated within the 6 character total. Your task is to deduce the correct license plate number in fewer than 20 guesses. However, each guess you try aracters even though the actual number may use only 5, 4, 3, 2, or 1 of the 6 characters. With each guess, the program will tell you whether you are right or wrong. If you guess correctly and/or you enter a guess with duplicate characters, the program will exit. If the license number is correctly guessed, your program will also print out the raw data from which the license number was generated (see below) Proceed as follows: Use a random number generator that will produce integers in the range of 00- 99. Use the random number generator 6 times to generate the 6 characters by this formula A 00-19 20-39 2=75-89 C 40-59 3-90-99 1 60-74 Display a license number initially as As each character is correctly determined, replace the corresponding value with the correct value in that position. For example, if an A in the third position was correctly determined, the display would then show**A. Demonstrate your working program for the Instructor. Include a commented listing with your report. Name Course - Section Grade

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

Understanding Oracle APEX 5 Application Development

Authors: Edward Sciore

2nd Edition

1484209893, 9781484209899

Students also viewed these Databases questions

Question

Describe the basic differences between an RRSP and a RRIF.(5 marks)

Answered: 1 week ago

Question

What is RAM as far as telecommunication is concerned?

Answered: 1 week ago

Question

Question 1: What is reproductive system? Question 2: What is Semen?

Answered: 1 week ago

Question

Describe the sources of long term financing.

Answered: 1 week ago

Question

The two reporters (ran after) every lead enthusiastically.

Answered: 1 week ago