Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

10. (points) HW3 - Design a state diagram to recognize one floating point literals in Go-Lang. // == 72.40 0. 72.40 072.40 2.71828 1.e+ 6.67428e-11

image text in transcribed

10. (points) HW3 - Design a state diagram to recognize one floating point literals in Go-Lang. // == 72.40 0. 72.40 072.40 2.71828 1.e+ 6.67428e-11 1E6 .25 .12345E+5 1_5. 0.15e+0_2 11 == 15.0 11 - 15.0 Oxlp-2 0x2.p10 Ox1.Fp+0 ox. 8p-0 ox_1FFFP-16 Ox15e-2 // = 0.25 // == 2048.0 // == 1.9375 // -- 0.5 // == 0.1249847412109375 // Ox15e - 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 10. (points) HW3 - Design a state diagram to recognize one floating point literals in Go-Lang. // == 72.40 0. 72.40 072.40 2.71828 1.e+ 6.67428e-11 1E6 .25 .12345E+5 1_5. 0.15e+0_2 11 == 15.0 11 - 15.0 Oxlp-2 0x2.p10 Ox1.Fp+0 ox. 8p-0 ox_1FFFP-16 Ox15e-2 // = 0.25 // == 2048.0 // == 1.9375 // -- 0.5 // == 0.1249847412109375 // Ox15e - 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

More Books

Students also viewed these Databases questions

Question

Explain the strength of acid and alkali solutions with examples

Answered: 1 week ago

Question

Introduce and define metals and nonmetals and explain with examples

Answered: 1 week ago