Currency conversion program

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Just starting out

    Currency conversion program

    I am very new to C code and I'm having a lot of trouble with a homework
    assignment.

    This program is supposed to take the amount of Euros that the user
    enters and convert it to US dollars.

    It runs fine if the user enters a number, but if the user enters a
    letter it loops.

    I have been working on this for 3 hours now, trying different things
    left and right. I'm sure it has something to do with the isdigit
    function. So, I tried adding in a char cResponse and switching the
    value to fResponse after checking for a number.

    I am fried, please help!

    ---------------------------------------

    #include <stdio.h>
    #include <system.h>
    #include <ctype.h>

    main ()

    {

    //set variables
    float fUSD, fEUR, fResponse;

    //initialize variables
    fUSD = 0;
    fEUR = 0;
    fResponse = 0;

    //set values
    fUSD = 1.00;
    fEUR = .7435;


    //print headers for output screen
    printf("\n***Cu rrency Conversion***\n ");
    printf("\nConve rts Euro into US dollar\n");
    printf("\nPleas e enter the amount in Euro: ");

    //get user input
    scanf("%f", &fResponse);

    //check for number greater than zero
    while (fResponse<=0.0 ) {
    if (isdigit(fRespo nse)) {
    printf("\nThe number you entered is invald.\n");
    printf("Please enter a number larger than zero: ");
    scanf("%f", &fResponse);
    }
    if (isdigit(fRespo nse)==0)
    printf("\nYou entered a letter.\n");
    printf("Please enter a number larger than zero: ");
    scanf("%f", &fResponse);

    }

    printf("\nThe value of the Euro you entered converts to $%.2f US
    dollars.\n", (fUSD/fEUR) * fResponse);

    printf("\n\nPre ss any key to close this window. . .");

    //getch function to leave results on screen until any key is chosen
    getch ();

    }

  • kernelxu@hotmail.com

    #2
    Re: Currency conversion program

    Just starting out wrote:
    [color=blue][color=green]
    >>I am very new to C code and I'm having a lot of trouble with a homework
    >>assignment.[/color][/color]

    [color=blue][color=green]
    >>This program is supposed to take the amount of Euros that the user
    >>enters and convert it to US dollars.[/color][/color]

    [color=blue][color=green]
    >>It runs fine if the user enters a number, but if the user enters a
    >>letter it loops.[/color][/color]
    why it loops almostly is due to the loop conditions, focus on the
    conditions to check out what's the key point of the problem by
    unfolding your loop statement.
    [color=blue][color=green]
    >>I have been working on this for 3 hours now, trying different things
    >>left and right. I'm sure it has something to do with the isdigit
    >>function.[/color][/color]
    maybe, but, I dont's think it is indispensable.[color=blue][color=green]
    >> So, I tried adding in a char cResponse and switching the
    >>value to fResponse after checking for a number.[/color][/color]

    [color=blue][color=green]
    >>I am fried, please help![/color][/color]


    ------------------------------­---------

    [color=blue]
    >#include <stdio.h>
    >#include <system.h>
    >#include <ctype.h>[/color]

    [color=blue]
    >main ()[/color]
    undefined behavior.
    int main(void)
    [color=blue]
    >{[/color]

    [color=blue]
    >//set variables
    >float fUSD, fEUR, fResponse;[/color]

    [color=blue]
    > //initialize variables
    > fUSD = 0;
    > fEUR = 0;
    > fResponse = 0;[/color]
    I think it may be better to initialize like the following:
    fUSD = 0.0;
    fEUR = 0.0;
    fResponse = 0.0;
    or
    fUSD = 0f;
    fEUR = 0f;
    fResponse = 0f;
    [color=blue]
    > //set values
    > fUSD = 1.00;
    > fEUR = .7435;[/color]

    [color=blue]
    >//print headers for output screen
    >printf("\n***C urrency Conversion***\n ");
    >printf("\nConv erts Euro into US dollar\n");
    >printf("\nPlea se enter the amount in Euro: ");[/color]

    [color=blue]
    >//get user input
    >scanf("%f", &fResponse);[/color]

    [color=blue]
    > //check for number greater than zero
    > while (fResponse<=0.0 ) {[/color]
    [color=blue]
    > if (isdigit(fRespo nse)) {
    > printf("\nThe number you entered is invald.\n");
    > printf("Please enter a number larger than zero: ");
    > scanf("%f", &fResponse);
    > }
    > if (isdigit(fRespo nse)==0)
    > printf("\nYou entered a letter.\n");
    > printf("Please enter a number larger than zero: ");
    > scanf("%f", &fResponse);[/color]
    [color=blue]
    >
    > }[/color]
    I think the code fragment "get user input" above could be replaced by
    this one:
    *************** *************** *************** **************
    while(scanf("%f ", &fResponse) == 0)
    {
    printf("\nThe number you entered is invald.\n");
    printf("Please enter a number larger than zero: ");
    getchar();
    }
    *************** *************** *************** ***************
    if "scanf("%f" , &fResponse)" get a digital data, it will return the
    number of data it gets,and return 0 while it gets nothing.in other
    words it gets nothing means the user input the wrong format data.
    getchar() will eat the new-line character left by the previous scanf()
    before the next loop starting.[color=blue][color=green]
    >>[/color][/color]
    printf("\nThe value of the Euro you entered converts to
    $%.2f US[color=blue][color=green]
    >>dollars.\n" , (fUSD/fEUR) * fResponse);[/color][/color]

    [color=blue][color=green]
    >>printf("\n\nP ress any key to close this window. . .");[/color][/color]

    [color=blue][color=green]
    >>//getch function to leave results on screen until any key is chosen
    >>getch (); [/color][/color]

    }

    Comment

    • Stan Milam

      #3
      Re: Currency conversion program

      Just starting out wrote:[color=blue]
      > I am very new to C code and I'm having a lot of trouble with a homework
      > assignment.
      >
      > This program is supposed to take the amount of Euros that the user
      > enters and convert it to US dollars.
      >
      > It runs fine if the user enters a number, but if the user enters a
      > letter it loops.
      >
      > I have been working on this for 3 hours now, trying different things
      > left and right. I'm sure it has something to do with the isdigit
      > function. So, I tried adding in a char cResponse and switching the
      > value to fResponse after checking for a number.
      >
      > I am fried, please help!
      >
      > ---------------------------------------
      >
      > #include <stdio.h>
      > #include <system.h>
      > #include <ctype.h>
      >
      > main ()
      >
      > {
      >
      > //set variables
      > float fUSD, fEUR, fResponse;
      >
      > //initialize variables
      > fUSD = 0;
      > fEUR = 0;
      > fResponse = 0;
      >
      > //set values
      > fUSD = 1.00;
      > fEUR = .7435;
      >
      >
      > //print headers for output screen
      > printf("\n***Cu rrency Conversion***\n ");
      > printf("\nConve rts Euro into US dollar\n");
      > printf("\nPleas e enter the amount in Euro: ");
      >
      > //get user input
      > scanf("%f", &fResponse);
      >
      > //check for number greater than zero
      > while (fResponse<=0.0 ) {
      > if (isdigit(fRespo nse)) {
      > printf("\nThe number you entered is invald.\n");
      > printf("Please enter a number larger than zero: ");
      > scanf("%f", &fResponse);
      > }
      > if (isdigit(fRespo nse)==0)
      > printf("\nYou entered a letter.\n");
      > printf("Please enter a number larger than zero: ");
      > scanf("%f", &fResponse);
      >
      > }
      >
      > printf("\nThe value of the Euro you entered converts to $%.2f US
      > dollars.\n", (fUSD/fEUR) * fResponse);
      >
      > printf("\n\nPre ss any key to close this window. . .");
      >
      > //getch function to leave results on screen until any key is chosen
      > getch ();
      >
      > }
      >[/color]

      I would look at the use of the scanf() function. Did anything actually
      get assigned to fResponse in scanf()?

      Comment

      • Old Wolf

        #4
        Re: Currency conversion program

        Just starting out wrote:[color=blue]
        > I am very new to C code and I'm having a lot of trouble with
        > a homework assignment.
        >
        > This program is supposed to take the amount of Euros that the user
        > enters and convert it to US dollars.
        >
        > It runs fine if the user enters a number, but if the user enters a
        > letter it loops.[/color]

        You need to check whether your scanf() function succeeds or
        fails, and take some action if it fails.

        (Read the manual for 'scanf' to find out how to do this).

        Currently you do no check, so if the user enters a letter then
        the program just carries on merrily as if they had entered
        whatever the fResponse variable already contained.
        [color=blue]
        > //check for number greater than zero
        > while (fResponse<=0.0 ) {
        > if (isdigit(fRespo nse)) {[/color]

        I am not sure if you understand what "isdigit" does. It
        operates on a character, and checks to see if that character
        is a '0', a '1', a '2' , ..., or a '9'.

        fResponse is a float. Checking to see whether it contains
        the integer code for a digit character is not very useful.

        In fact this test can never succeed, because the ASCII
        (I presume) codes for the digits are between 48 and 57, and
        you only enter this test if fResponse is 0 or a negative number.

        Comment

        • Flash Gordon

          #5
          Re: Currency conversion program

          kernelxu@hotmai l.com wrote:[color=blue]
          > Just starting out wrote:
          >[color=green][color=darkred]
          >>>I am very new to C code and I'm having a lot of trouble with a homework
          >>>assignment .[/color][/color]
          >[color=green][color=darkred]
          >>>This program is supposed to take the amount of Euros that the user
          >>>enters and convert it to US dollars.[/color][/color]
          >[color=green][color=darkred]
          >>>It runs fine if the user enters a number, but if the user enters a
          >>>letter it loops.[/color][/color]
          >
          > why it loops almostly is due to the loop conditions, focus on the
          > conditions to check out what's the key point of the problem by
          > unfolding your loop statement.[/color]

          Actually the problem is with scanf. See Old Wolf's reply.
          [color=blue][color=green][color=darkred]
          >>>I have been working on this for 3 hours now, trying different things
          >>>left and right. I'm sure it has something to do with the isdigit
          >>>function.[/color][/color]
          >
          > maybe, but, I dont's think it is indispensable.[/color]

          The use of isdigit is definitely a problem. The OP needs to decide
          whether to read a character at a time (in which case isdigit is usefule)
          or whether to use scanf to read a number in which case the return value
          of scanf should be checked.
          [color=blue][color=green][color=darkred]
          >>>So, I tried adding in a char cResponse and switching the
          >>>value to fResponse after checking for a number.[/color][/color]
          >[color=green][color=darkred]
          >>>I am fried, please help![/color][/color]
          >
          > ------------------------------­---------
          >[color=green]
          >>#include <stdio.h>
          >>#include <system.h>
          >>#include <ctype.h>[/color]
          >[color=green]
          >>main ()[/color]
          >
          > undefined behavior.[/color]

          No. It is perfectly valid (but bad style) on C89 and a constraint
          violation on C99 where implicit int has been removed from the language.
          [color=blue]
          > int main(void)[/color]

          That is correct.
          [color=blue][color=green]
          >>{[/color]
          >[color=green]
          >>//set variables[/color][/color]

          // style comments are only valid in C99, so the OP is not invoking the
          compiler as either a proper C99 or a proper C89 compiler but in some
          other mode. The OP should check the instructions for the compiler to see
          how to make it behave decently.

          Also, // comments are not advisable on news groups because they cause
          problems when the line wraps.
          [color=blue][color=green]
          >>float fUSD, fEUR, fResponse;[/color]
          >[color=green]
          >> //initialize variables[/color]
          >[color=green]
          > > fUSD = 0;[/color][/color]

          You (kernelxu) seem to be inserting spaces at random in front of quote
          characters. This makes it harder to read you post, so please avoid doing
          this.
          [color=blue][color=green]
          > > fEUR = 0;
          > > fResponse = 0;[/color]
          > I think it may be better to initialize like the following:
          > fUSD = 0.0;
          > fEUR = 0.0;
          > fResponse = 0.0;
          > or
          > fUSD = 0f;
          > fEUR = 0f;
          > fResponse = 0f;[/color]

          That will make absolutely no difference. The OP's initialisation is
          perfectly OK.
          [color=blue][color=green]
          > > //set values
          > > fUSD = 1.00;
          > > fEUR = .7435;[/color]
          >
          >
          >[color=green]
          >>//print headers for output screen
          >>printf("\n*** Currency Conversion***\n ");
          >>printf("\nCon verts Euro into US dollar\n");
          >>printf("\nPle ase enter the amount in Euro: ");[/color]
          >
          >
          >[color=green]
          >>//get user input
          >>scanf("%f", &fResponse);[/color][/color]

          You probably want the return value of scanf. Check your text book to see
          what it does with input that does not match the format specifier.
          [color=blue][color=green]
          >> //check for number greater than zero[/color]
          >[color=green]
          > > while (fResponse<=0.0 ) {[/color]
          >
          >[color=green]
          >> if (isdigit(fRespo nse)) {[/color][/color]

          The use of isdigit here is wrong. You use it on characters, not floating
          point numbers, please read that part of your text book again as well.
          [color=blue][color=green]
          >> printf("\nThe number you entered is invald.\n");[/color]
          >[color=green]
          > > printf("Please enter a number larger than zero: ");[/color][/color]

          You need to end with a new line or flush stdout.
          [color=blue][color=green]
          >> scanf("%f", &fResponse);[/color][/color]

          See previour comment on scanf.
          [color=blue][color=green]
          >> }[/color]
          >[color=green]
          > > if (isdigit(fRespo nse)==0)
          > > printf("\nYou entered a letter.\n");[/color]
          >[color=green]
          >> printf("Please enter a number larger than zero: ");[/color][/color]

          You need to end with a new line or flush stdout.
          [color=blue][color=green]
          > > scanf("%f", &fResponse);[/color][/color]

          See previour comment on scanf.
          [color=blue][color=green]
          > > }[/color]
          > I think the code fragment "get user input" above could be replaced by
          > this one:
          > *************** *************** *************** **************
          > while(scanf("%f ", &fResponse) == 0)
          > {
          > printf("\nThe number you entered is invald.\n");
          > printf("Please enter a number larger than zero: ");[/color]

          The text of the second printf might not have been displayed. You either
          need to flush stdout or finish the line with a new line character.
          [color=blue]
          > getchar();
          > }[/color]

          This is still wrong.
          [color=blue]
          > *************** *************** *************** ***************
          > if "scanf("%f" , &fResponse)" get a digital data, it will return the
          > number of data it gets,and return 0 while it gets nothing.in other
          > words it gets nothing means the user input the wrong format data.
          > getchar() will eat the new-line character left by the previous scanf()
          > before the next loop starting.[/color]

          Did you try running your code and entering more than a single bad
          character? scanf stops as soon as ti hits a matching failure, so more
          than one character might be left on the input stream.
          [color=blue]
          > printf("\nThe value of the Euro you entered converts to
          > $%.2f US
          >[color=green][color=darkred]
          >>>dollars.\n ", (fUSD/fEUR) * fResponse);[/color][/color]
          >
          >
          >[color=green][color=darkred]
          >>>printf("\n\n Press any key to close this window. . .");[/color][/color][/color]

          Again with the new line or flushing stdout.
          [color=blue][color=green][color=darkred]
          >>>//getch function to leave results on screen until any key is chosen
          >>>getch ();[/color][/color][/color]

          C does not have a "getch" function.
          [color=blue]
          > }
          >[/color]
          --
          Flash Gordon
          Living in interesting times.
          Although my email address says spam, it is real and I read it.

          Comment

          • kernelxu@hotmail.com

            #6
            Re: Currency conversion program

            Thank you Flash Gordon for pointing out my fault.
            I am a newbie of C too, I love the group very much.
            Sometimes I just can't help myself to join the discussion.
            Please forgive my imperence. I will pay more attention on learning.

            Comment

            • Just starting out

              #7
              Re: Currency conversion program

              I replaced the "get user input" code fragment with the while statement
              you recommended. It's better in that it doesn't loop anymore, but if I
              enter more than one letter it prints the two printf statements that
              many times. (if i enter stop it prints it 4 times)

              I'm looking into how to fix this part now. Thanks for your feedback!

              Comment

              • Just starting out

                #8
                Re: Currency conversion program

                Yes, I've scrapped the whole isdigit function for this program. I have
                a better understanding of that function now and realize it is not
                usable here.

                Thanks for your response!

                Comment

                • Just starting out

                  #9
                  Re: Currency conversion program

                  Flash,

                  Thanks for your feedback!

                  I'm using Miracle C compiler for my assignments.

                  I'm not sure what you mean by ending the printf statement with a new
                  line or flush stdout. I wanted the user input to appear at the end of
                  the "Please enter a number: " line. I checked my book for flush stdout
                  and it looks like I need a new book.

                  I replaced my original scanf with the "while(scanf... " code that
                  kernelxu suggested. The two printf lines both print according to the
                  number of letters the user enters. (ex. user enters STOP, the printf
                  lines both print 4 times).

                  Our class was told to use getch(); function in order to keep the window
                  from automatically closing. Maybe it's a Miracle C thing.

                  Comment

                  • Barry Schwarz

                    #10
                    Re: Currency conversion program

                    On 5 Sep 2005 11:54:12 -0700, "Just starting out"
                    <kelli.pitts@gm ail.com> wrote:
                    [color=blue]
                    >Flash,
                    >
                    >Thanks for your feedback!
                    >
                    >I'm using Miracle C compiler for my assignments.
                    >
                    >I'm not sure what you mean by ending the printf statement with a new
                    >line or flush stdout. I wanted the user input to appear at the end of
                    >the "Please enter a number: " line. I checked my book for flush stdout
                    >and it looks like I need a new book.[/color]

                    You have to provide some context. What code are you talking about.
                    The fact that the google interface is broken means you have to do it
                    manually.

                    The function you want is fflush. What book are you using?
                    [color=blue]
                    >
                    >I replaced my original scanf with the "while(scanf... " code that
                    >kernelxu suggested. The two printf lines both print according to the
                    >number of letters the user enters. (ex. user enters STOP, the printf
                    >lines both print 4 times).
                    >
                    >Our class was told to use getch(); function in order to keep the window[/color]

                    I would be better if you were told to use a standard function like
                    getchar(). Not everyone has non-standard extensions like getch().
                    [color=blue]
                    >from automatically closing. Maybe it's a Miracle C thing.[/color]

                    No, it's a Windows thing. When main() returns, your window may close
                    before you can see its contents. Putting a getchar() prior to the
                    return is intended to insure the window stays open until you hit Enter
                    signifying you are done looking.


                    <<Remove the del for email>>

                    Comment

                    • Flash Gordon

                      #11
                      Re: Currency conversion program

                      Just starting out wrote:[color=blue]
                      > Flash,
                      >
                      > Thanks for your feedback![/color]

                      Provide context otherwise we can't see what you are replying to. I, for
                      one, don't bother to remember every single post I make to news groups
                      and have my reader configured to only show unread posts. Others might
                      not have even seen my post. Check any post by CBFalconer and read his
                      sig for instructions on how to work around the crappy interface Google
                      provide.
                      [color=blue]
                      > I'm using Miracle C compiler for my assignments.[/color]

                      Irrelevant.
                      [color=blue]
                      > I'm not sure what you mean by ending the printf statement with a new
                      > line or flush stdout. I wanted the user input to appear at the end of
                      > the "Please enter a number: " line. I checked my book for flush stdout
                      > and it looks like I need a new book.[/color]

                      You use
                      fflush(stdout);
                      to flush the output. If you don't then the C language does not guarantee
                      that the message will actually be displayed before the user presses
                      return when entering data. It's called line buffering.
                      [color=blue]
                      > I replaced my original scanf with the "while(scanf... " code that
                      > kernelxu suggested. The two printf lines both print according to the
                      > number of letters the user enters. (ex. user enters STOP, the printf
                      > lines both print 4 times).[/color]

                      If I recall correctly I posted comments about the problems with his
                      code. Read up on how scanf works. Of course, since you have not posted
                      or quoted the code I can't see to tell you the specific problems.
                      [color=blue]
                      > Our class was told to use getch(); function in order to keep the window
                      > from automatically closing. Maybe it's a Miracle C thing.[/color]

                      It may well be, but it is not part of the C language.
                      --
                      Flash Gordon
                      Living in interesting times.
                      Although my email address says spam, it is real and I read it.

                      Comment

                      • Peter Nilsson

                        #12
                        Re: Currency conversion program

                        Flash Gordon wrote:[color=blue]
                        > Just starting out wrote:[color=green]
                        > > ...
                        > > I'm not sure what you mean by ending the printf statement with a
                        > > new line or flush stdout. I wanted the user input to appear at the
                        > > end of the "Please enter a number: " line. I checked my book for
                        > > flush stdout and it looks like I need a new book.[/color]
                        >
                        > You use
                        > fflush(stdout);
                        > to flush the output. If you don't then the C language does not
                        > guarantee that the message will actually be displayed before the
                        > user presses return when entering data.[/color]

                        Even using fflush(stdout), the C language won't make that guarantee.
                        [Try redirecting stdout to an old line buffered printer one day.]
                        [color=blue]
                        > It's called line buffering.[/color]

                        Indeed. Whilst the _stream_ can be flushed, there's no guarantee
                        that the 'display device' won't have it's own buffering. Using
                        fflush() will work for 99.999% of consoles, but for the maximum
                        chance of the prompt appearing, it should end with a newline.

                        i.e. use...

                        puts("Enter an integer:");

                        ....over...

                        printf("Enter an integer: ");
                        fflush(stdout);
                        [color=blue][color=green]
                        > > Our class was told to use getch(); function in order to keep the
                        > > window from automatically closing. Maybe it's a Miracle C thing.[/color][/color]

                        No, it's largely a windoze thing. Nonetheless, there are better
                        options,
                        although that discussion is off-topic in clc.

                        --
                        Peter

                        Comment

                        • Keith Thompson

                          #13
                          Re: Currency conversion program

                          "Peter Nilsson" <airia@acay.com .au> writes:
                          [...][color=blue]
                          > Indeed. Whilst the _stream_ can be flushed, there's no guarantee
                          > that the 'display device' won't have it's own buffering. Using
                          > fflush() will work for 99.999% of consoles, but for the maximum
                          > chance of the prompt appearing, it should end with a newline.
                          >
                          > i.e. use...
                          >
                          > puts("Enter an integer:");
                          >
                          > ...over...
                          >
                          > printf("Enter an integer: ");
                          > fflush(stdout);[/color]

                          As much as I'm a fanatic for portable code, I don't agree. Printing a
                          prompt without a newline makes for a much friendlier interactive
                          program. On a system where the printf/fflush form doesn't work, I
                          wouldn't be sure that prompting would work at all.

                          --
                          Keith Thompson (The_Other_Keit h) kst-u@mib.org <http://www.ghoti.net/~kst>
                          San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
                          We must do something. This is something. Therefore, we must do this.

                          Comment

                          • Keith Thompson

                            #14
                            Re: Currency conversion program

                            Barry Schwarz <schwarzb@deloz .net> writes:
                            [...][color=blue]
                            > You have to provide some context. What code are you talking about.
                            > The fact that the google interface is broken means you have to do it
                            > manually.[/color]

                            No, you don't have to do it manually. All you have to do is (all
                            together now):

                            If you want to post a followup via groups.google.c om, don't use
                            the broken "Reply" link at the bottom of the article. Click on
                            "show options" at the top of the article, then click on the
                            "Reply" at the bottom of the article headers.

                            and it will quote the previous article and fill in proper
                            attributions.

                            Google's unforgivable blunder is, first, putting this in a hidden menu
                            rather than making it the default, and second, not fixing it to this
                            day.

                            --
                            Keith Thompson (The_Other_Keit h) kst-u@mib.org <http://www.ghoti.net/~kst>
                            San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
                            We must do something. This is something. Therefore, we must do this.

                            Comment

                            • Gordon Burditt

                              #15
                              Re: Currency conversion program

                              >> Indeed. Whilst the _stream_ can be flushed, there's no guarantee[color=blue][color=green]
                              >> that the 'display device' won't have it's own buffering. Using
                              >> fflush() will work for 99.999% of consoles, but for the maximum
                              >> chance of the prompt appearing, it should end with a newline.
                              >>
                              >> i.e. use...
                              >>
                              >> puts("Enter an integer:");
                              >>
                              >> ...over...
                              >>
                              >> printf("Enter an integer: ");
                              >> fflush(stdout);[/color]
                              >
                              >As much as I'm a fanatic for portable code, I don't agree. Printing a
                              >prompt without a newline makes for a much friendlier interactive
                              >program. On a system where the printf/fflush form doesn't work, I
                              >wouldn't be sure that prompting would work at all.[/color]

                              For whatever it's worth, there are hardcopy printers, some with
                              keyboards, that don't print anything but whole lines. The prompt
                              wouldn't appear as ink on paper until after you'd answered it. There
                              are others where the prompt is printed but the printhead is in
                              the way until the paper has advanced.

                              Gordon L. Burditt

                              Comment

                              Working...