Write a script named ifthen that prompts the user with >> and reads a string of text from the user. If the user enters a nonnull string, the script displays You entered: followed by the string; otherwise it displays Where is your input?. Use an if...then...else control structure (Sobell, page 439) to imple- ment the two-way branch in the script. Use the test (Sobell, pages 435 and 1011) builtin to determine if the user enters a null string. What do you have to do to avoid getting an error message when you prompt with >>? (There are several ways to construct the test statement.)

What will be an ideal response?


Computer Science & Information Technology

You might also like to view...

A data entry form is usually a(n) ____________________ form that displays data from the fields in its record source.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

When debugging, to execute the highlighted instruction, you can use either the Debug menu's Step Into option or the ____ key on your keyboard.

A. F2 B. F6 C. F8 D. F12

Computer Science & Information Technology

The item marked 1 in the accompanying figure is a Flash movie placeholder.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

How does C S S allow an analyst to produce output?

What will be an ideal response?

Computer Science & Information Technology