Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

9. (points) HW3 - Design a state diagram to recognize one floating point literals in C. 3.14159 314159E-5L 510E 2100 .e55 /* Legal */ /*

image text in transcribed

9. (points) HW3 - Design a state diagram to recognize one floating point literals in C. 3.14159 314159E-5L 510E 2100 .e55 /* Legal */ /* Legal */ /* Illegal: incomplete exponent */ /* Illegal: no decimal or exponent */ /* Illegal: missing integer or fraction */ 10. (points) HW3 - Design a state diagram to recognize one floating point literals in Go-Lang. 0. // == 72.40 72.40 072.40 2.71828 1.e+ 6.67428e-11 1E6 .25 .12345E+5 1_5. 0.15e+O_2 // == // == 15.0 15.0 Ox1p-2 0x2.p10 0x1.Fp+0 ox. 8p-0 Ox_1FFFP-16 0x15e-2 // == 0.25 // =- 2048.0 // == 1.9375 // == 0.5 // == 0.1249847412109375 // == 0x15e - 2 (integer subtraction) Ox.pl 1p-2 0x1.5e-2 1_.5 1._5 1.5_el 1.5e_1 1.5el_ // invalid: mantissa has no digits // invalid: p exponent requires hexadecimal mantissa // invalid: hexadecimal mantissa requires p exponent // invalid: - must separate successive digits // invalid: - must separate successive digits // invalid: must separate successive digits // invalid: - must separate successive digits // invalid: - must separate successive digits 9. (points) HW3 - Design a state diagram to recognize one floating point literals in C. 3.14159 314159E-5L 510E 2100 .e55 /* Legal */ /* Legal */ /* Illegal: incomplete exponent */ /* Illegal: no decimal or exponent */ /* Illegal: missing integer or fraction */ 10. (points) HW3 - Design a state diagram to recognize one floating point literals in Go-Lang. 0. // == 72.40 72.40 072.40 2.71828 1.e+ 6.67428e-11 1E6 .25 .12345E+5 1_5. 0.15e+O_2 // == // == 15.0 15.0 Ox1p-2 0x2.p10 0x1.Fp+0 ox. 8p-0 Ox_1FFFP-16 0x15e-2 // == 0.25 // =- 2048.0 // == 1.9375 // == 0.5 // == 0.1249847412109375 // == 0x15e - 2 (integer subtraction) Ox.pl 1p-2 0x1.5e-2 1_.5 1._5 1.5_el 1.5e_1 1.5el_ // invalid: mantissa has no digits // invalid: p exponent requires hexadecimal mantissa // invalid: hexadecimal mantissa requires p exponent // invalid: - must separate successive digits // invalid: - must separate successive digits // invalid: must separate successive digits // invalid: - must separate successive digits // invalid: - must separate successive digits

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

Intelligent Information And Database Systems Asian Conference Aciids 2012 Kaohsiung Taiwan March 2012 Proceedings Part 2 Lnai 7197

Authors: Jeng-Shyang Pan ,Shyi-Ming Chen ,Ngoc-Thanh Nguyen

2012th Edition

3642284892, 978-3642284892

More Books

Students also viewed these Databases questions

Question

Humanistic psychology.

Answered: 1 week ago