问题 问答题

考虑一个根据以下简单规则确认输入数有效性的应用程序: ■输入数由数字、符号“+”或“-”开始。 ■该数字或符号后面可接任意位数的数字。 ■这些数字可以有选择地后接用英文句号表示的小数点。 ■如果有一个小数点,则小数点后面应该有两位数字。 ■任何输入数,不管是否有小数点,都应该以空格结束。

请根据以上处理规则:

画出相应的状态转换图。

答案

参考答案:

单项选择题
阅读理解

B

Listen carefully,working people! We would like to tell you something that could save your precious time and money! Best of all, it is free!

It’s“no”.What do you ask? We’ll say it again:“No”,a sweet and simple“no”.Say“no” at your office and see how quickly that pile of work on your desk disappears.

“Saying ‘no’ to others means you are saying ‘yes’ to yourself. Time is precious.People are spending money buying time。And yet we are willing to give up our time because we can’t say ‘no’.”said Leslie Charles,a professional speaker from East Lansing,Michigan.Susie Watson,a famous writer,said people who always say “yes” need to say “no” without guilt(内疚)or fear of punishment.“I would rather have someone give me a loving‘no’ than all obligated(强制的)‘yes’,”she said.She feels “no” need to give an explanation when she says “no” either socially or professionally.Does she feel guilty about it?“Not at all,”said Watson,who is director of advertising and public relations at Timex Corp in Middlebury.Connecticut.“Most people are afraid of saying ‘no’.My advice is to say ‘yes’ only if you don’t mean ‘no’.”Watson said “no” is the most effective weapon against wasting time.“Every year there are more demands on your time.Other people are happy to use up your time.”Watson said.Time saving appears to be “no’s” greatest friend.

“No” can be your new friend.a powerful tool to take back your life.“No” may even take you further in the business world than “yes”.“No” is power and strength.“No” now seems completely correct.

“Saying ‘no’ isn’t easy.But finally it’s greatly liberating,”Charles said.But,he added,a “no” project needs to be worked on every day because it is hard to change long-term

habit.But.he also warns:“Don’t go to extremes.Don’t find yourself saying ‘no’ to everything. In return you should learn to hear ‘no’.”

45.The underlined part “you are saying ‘yes’ to  yourself” probably means that          .

A.you can have more time to play with others

B.you needn’t mind  other’s feeling when happy

C.you are selfish and may treat others rudely

D.you can do with your business as planned

46.When you say “no” to others,you should say it          .

A. secretly    B.politely    C.proudly D.guiltily

47.In Watson’s opinion,people can save much time if they          .

A.1earn to refuse    B. refuse as much as possible

C.fear to refuse     D. refuse without hesitation

48.If you say “no” to everything.you’11          .

A.make a lot of money   B.enjoy a more wonderful life

C.face difficulty in life  D. forget to say “yes” in the end