Question

3. In some programming languages, binary constants are indicated by letter B following the binary string, and hexadecimal constants (i.e., base-16 numbers) by letter X following the hexadecimal string (the additional hexadecimal digits are denoted by letters A to F, A repre- senting 10, and F representing 15, so 2FX denotes the hexadecimal number 2*16+15-47). All such constants must begin with a digit (for example, 0) to distinguish them from iden- tifiers. Observe that strings 20B or 1A5 are incorrect. Design a deterministic finite automaton which accepts (by different final states) correct binary, decimal and hexadecimal constants Note: Observe that 10 is a decimal number, 10B is a binary number and 10BX is a hexidecimal one

0 0
Add a comment Improve this question Transcribed image text
Answer #1

21 0 ,3-9 AB,C,D CA 0 0-9 4,B,C,D, Jaiial fate A inal statas i, Dec, Hex followed.-by-A.B fdas ninben e, tanbael yea.ti ec

Add a comment
Know the answer?
Add Answer to:
3. In some programming languages, binary constants are indicated by letter B following the binary string,...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • 1. (p. 2-3.) Which of the following is NOT a reason for studying concepts of programming...

    1. (p. 2-3.) Which of the following is NOT a reason for studying concepts of programming languages according to Sebesta? a. Increased capacity to express ideas. b. Improved background for choosing appropriate languages. c. Increased ability to design new languages. d. Increased ability to learn new languages. 2. (p. 5-6.) What programming language has dominated scientific computing over the past 50 years? a. FORTRAN b. ALGOL c. SNOBOL d. PL/I 3. (p. 6.) What programming language has dominated artificial intelligence...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT