computer

posted by .

Create a new project Lab05e, and write a program that asks the user to enter a line. The program must find the one or more words between quotation marks (“”) characters and print them as follows:

Please enter a line: She “does not” go to the “school” very often, but “she has to!”

  • computer -

    You may find h elp under these tutorials:

    http://search.yahoo.com/search?fr=mcafee&p=computer+programming+tutorial

    Sra

  • computer -

    Enter the line as a string, and scan character by character for quotation marks, '"'. Count the number of quotes you found. If the number is odd, echo the following characters, if the number of quotations is even, stop echoing.

    In the example given:
    She “does not” go to the “school” very often, but “she has to!”
    you would start echoing after the first " and echo does not, and stop echoing until "school" when the same actions repeat.

    Post your trial code if you have problems.

Respond to this Question

First Name
School Subject
Your Answer

Similar Questions

  1. C Programming

    Write a program that prompts the user to enter a temperature, followed by a letter representing Celsius (C) or Fahrenheit (F). Then prompt the user for the conversion type and print the results to the screen with one decimal point. …
  2. l;k

    Write a program that asks the user to enter the student’s name (first and last), and his/her first exam grade of three students, and then display them in a neat format. After that the program will find the average of the three grades, …
  3. programming

    user to enter the student’s marks on four exams (use double and one exam is over 20). The Write a program that asks the program should display the four exam’s marks, the sum and the average.(Use also the header file iomanip)
  4. Computer (Programming with Python)

    Problem 1: Multiplication Drill Computers can perform calculations extremely quickly and accurately, but it's often handy to calculate with the computers we carry around inside our heads. Write a program to drill you in multiplication …
  5. 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 …
  6. Programming in c++

    Draw a flow-chart and Write a program that asks the user to enter students grades. The program should stop reading when the use enters ‘*’. In addition, your program should print the number of students got each grade. The grades …
  7. C programming

    Build a program that allows a user to select one of the following four menu options: enter new integer value, print pointer address, print integer address, and print integer value. For this program you will need to create two variables: …
  8. computer science programming

    Elements – sequence-series outputting Write a program that prints the following elements: 1, 3, 5, 7, 9, 11, 13, 15, 17, 19, (hereto referred to as elements) etc., up till a user-entered value. The program should not print more than …
  9. java programming

    Your boss at Ruritania Weather Center (RWC) has asked you to write a small program for center. The specification are as follows: a. the program asks a user to enter a number between 1 and 12 inclusive representing the months January …
  10. computer programing

    : Build a program that allows a user to select one of the following four menu options: enter new integer value, print pointer address, print integer address, and print integer value. For this program you will need to create two variables: …

More Similar Questions