suranthi

posted by .

. Write a program which ask the user to enter a sentence (character by character) and when user press full stop (.) character program should display the full sentence and exit.

  • suranthi -

    I wonder if "suranthi" comes close to being the subject of your post?

  • suranthi -

    sure. create the file suranthi.pl


    system "stty raw";
    while ($_ = getc) {
    last if $_ eq ".";
    }
    system "stty cooked";


    perl suranthi.pl

Respond to this Question

First Name
School Subject
Your Answer

Similar Questions

  1. Programming

    Write a pseudocode program that asks the user for an integer between 1 and 12. The program is to calculate the times table for that number. So for example, if the user enters a 2, then the program has to calculate 2x1 and display the …
  2. Design Logic and programming

    write a program that ask the student to enter an answer to a math problem. The user should enter two values, one at a time, and then ask for an answer. The program should display if the entered answer is correct or not and display …
  3. computer science

    I need to write a program that ask the student to enter an answer to a math problem. The user should enter two values, one at a time, and then ask for an answer. The program should display if the entered answer is correct or not and …
  4. computer science

    You are required to use the Account class to simulate an ATM machine. Create ten accounts in an array with id 0, 1, 2 ...9, and initial balance $50. The system prompts the user to enter an id. If the id is entered incorrectly, ask …
  5. intro to computer programming

    Write a program that asks the user to enter the number of packages purchased. The program should then display the amount of the discount (if any) and the total amount of the purchase after the discount. Your program should use a loop …
  6. c++ programming

    I need some help with my homework please Write a C++ program to prompts the user to enter the first character of shape name (Cycle, Rectangle, or Triangle). Then calculate the area of that shape. „h If the user enters another character …
  7. computer programing

    Little help here please Create a program that performs the following functions: uses character arrays to read a user’s name from standard input, tells the user how many characters are in his or her name, and displays the user’s …
  8. java programming

    1. Time Calculator Write a program that asks the user to enter a number of seconds. • There are 60 seconds in a minute. If the number of seconds entered by the user is greater than or equal to 60, the program should display the number …
  9. Intro to Software Developement

    How do I make a Raptor flowchart program that asks the user to enter a 10 character telephone number in the format XXX-XXX-XXXX, that makes the program display the telephone number with any alphabetic characters that appeared in the …
  10. Computers

    How do I make a Raptor flowchart program that asks the user to enter a 10 character telephone number in the format XXX-XXX-XXXX, that makes the program display the telephone number with any alphabetic characters that appeared in the …

More Similar Questions