Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

it's C++ please can put the answer as typing style so i can copy the answer. not a picture or screenshot Project 5 Write a

image text in transcribed

it's C++

please can put the answer as typing style so i can copy the answer. not a picture or screenshot

Project 5 Write a program that reads in a line of text and replaces all four-letter words with the word "love". For example, the input string I hate you, you dodo! should produce the output I love you, you love! Of course, the output will not always make sense. For example, the input string John will run home should produce the output Love love run love. If the four-letter word starts with a capital letter, it should be replaced by "Love", not by "love". You need not check capitalization, except for the first letter of a word. A word is any string consisting of the letters of the alphabet and delimited at each end by a blank, the end of the line, or any other character that is not a letter. Your program should repeat this action until the user says to quit

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Publishing With Filemaker Pro On The Web

Authors: Maria Langer

1st Edition

0201696657, 978-0201696653

More Books

Students also viewed these Databases questions