Question

Design a state diagram, floating point literals

can someone plz help me! thx.here my problem:Design a state diagram to recognize the floating pointleterals in c++. write the code to implement the statediagram
0 0
Add a comment Improve this question Transcribed image text
Answer #1
please rate- thanks


#include <iostream.h>
#include <string.h>
using namespace std;
int main()
{ int state=1;
char ch;
do
{cout<<"enter digit or .";
cin>>ch;
cout<<"In state"<<state<<endl;
}while(isdigit(ch));
cout<<". entered going tostate 2"<<endl;
state=2;
do
{cout<<"enter digit or .";
cin>>ch;
cout<<"In state"<<state<<endl;
}while(isdigit(ch));
return 0;
}



answered by: ~{_joelyz_}~ NEED HELP NOW!
Add a comment
Know the answer?
Add Answer to:
Design a state diagram, floating point literals
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
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