Question: Step 1 to implement a text-based calculator as a hands-on programming application of course concepts. Tasks To see sample program behaviors, you can use a

Step 1 to implement a text-based calculator as a hands-on programming application of course concepts.

Tasks

To see sample program behaviors, you can use a Python terminal on any OS. An online Linux terminal with python support is hereLinks to an external site.. (Type "q" to quit.).

You cannot use built-in or 3rd party functionalities that recognize numbers or build/interpret regular expressions, grammar, etc. You need to implement the tasks from scratch.

Recognize Python decimal integer literals .Links to an external site. For simplicity, you can assume the input strings length <=20. Your program should ask for user input as a string, and check if it can be a valid decimal integer or not. You also need to include your NFA design (with unlimited digits allowed - you can break this into a few smaller NFA's so it's not one humongous machine) drawn using JFlapLinks to an external site.. (Please submit the .jff files.)

Expand your program to recognize Python octal and hexadecimal integer literals.For simplicity, you can assume the input strings length <=20. Your program should ask for user input as a string, and check if it can be a valid decimal integer or not. You also need to include your NFA design (with unlimited digits allowed - you can break this into a few smaller NFA's so it's not one humongous machine) drawn using JFLAP.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!