Starting Out With C++: Early Objects (10th Edition)
Starting Out With C++: Early Objects (10th Edition)
10th Edition
ISBN: 9780135235003
Author: Tony Gaddis, Judy Walters, Godfrey Muganda
Publisher: PEARSON
bartleby

Videos

Textbook Question
Book Icon
Chapter 12, Problem 17PC

I before e except after c

A friend of yours who is an educator is conducting research into the effectiveness of teaching the spelling rule “I before e except after c” to students. She wishes to analyze writing samples from two groups of students, only one of which was taught the rule. Write a program that will take a file containing a writing sample and print a list of all words in the file that contain at least one of the strings “ie” or “ei”.

Blurred answer
Students have asked these similar questions
Need to write a program.
Q: Create a program, longest.py, that has a function that takes one string argument and prints a sentence indicating the longest word in that string. If there is more than one word print only the first. Your print statement should read: “The longest word is x” Where x = the longest word. The word should be all lowercase. I have the correct code, but the out put should only print: "The longest word is x". In my case it asks me an input first which I don't need. string = input('Enter string:'). My question is to remove the 'Enter string:' from my code, so that I get the correct working prints with only: "The longest word is x". I tried to remove that, but could print. Thanks  ------------------------------------------------------------------------------ def longestWord():    length = 0     x: longestWord() = '' for word in string.split():   if len(word) > length:   length = len(word)   x = wordreturn x*****string = input('Enter string:')  **** (want to remove this part)    x =…
exercise3.py x 1 Your code goes here... Guide Collapse Strings -> Coding Exercises - Strings Exercise 3 Exercise 3 Problem Write a program that accepts input from the user. Create another string that contains either a u, 1, or for each character of the original string. Use u when the character is uppercase, and use I when the character is lowercase. If the character is neither uppercase or lowercase, use. Print the second string. Important, do not put a prompt when asking for user input. Just use input(). Adding a prompt will cause your program to not pass the tests. Expected Output • If the user inputs cat, then the output will be: cat 111 • If the user inputs HouSE, then the output will be: HouSE ulluu Code Visualizer TRY IT Reminder, do not put a prompt when collecting user input. Just use input Check It! (1 left)

Chapter 12 Solutions

Starting Out With C++: Early Objects (10th Edition)

Ch. 12.3 - Prob. 12.11CPCh. 12.3 - Prob. 12.12CPCh. 12.4 - What is the output of the following program?...Ch. 12 - A(n)___________is represented in memory as an...Ch. 12 - The____________ statement is required before the...Ch. 12 - A(n)____________is written in your program as a...Ch. 12 - Prob. 4RQECh. 12 - The______________ is used to mark the end of a...Ch. 12 - Prob. 6RQECh. 12 - Prob. 7RQECh. 12 - Prob. 8RQECh. 12 - Prob. 9RQECh. 12 - Prob. 10RQECh. 12 - Prob. 11RQECh. 12 - Prob. 12RQECh. 12 - Prob. 13RQECh. 12 - Prob. 14RQECh. 12 - Prob. 15RQECh. 12 - Prob. 16RQECh. 12 - Prob. 17RQECh. 12 - Prob. 18RQECh. 12 - Write a function whose prototype is char...Ch. 12 - #inc1ude iostream using namespace std; int main()...Ch. 12 - #include iostream using namespace std; int main()...Ch. 12 - #include iostream using namespace std; int main()...Ch. 12 - #inc1ude iostream #inc1ude string using namespace...Ch. 12 - #inc1ude iostream #inc1ude cstring using namespace...Ch. 12 - #inc1ude iostream using namespace std; int main()...Ch. 12 - #inc1ude iostream #inc1ude string using namespace...Ch. 12 - #include iostream #inc1ude cstring using namespace...Ch. 12 - #include iostre4m #inc1ude cstring using namespace...Ch. 12 - Each of the following programs or program segments...Ch. 12 - Soft Skills 30. You are a member of a...Ch. 12 - Prob. 1PCCh. 12 - Prob. 2PCCh. 12 - Prob. 3PCCh. 12 - Prob. 4PCCh. 12 - Name Arranger Write a program that asks for the...Ch. 12 - Prob. 6PCCh. 12 - Prob. 7PCCh. 12 - Prob. 8PCCh. 12 - Prob. 9PCCh. 12 - Password Verifier Imagine you are developing a...Ch. 12 - Prob. 11PCCh. 12 - Check Writer Write a program that displays a...Ch. 12 - Prob. 13PCCh. 12 - Dollar Amount Formatter Modify Program 12-13 by...Ch. 12 - Word Separator Write a program that accepts as...Ch. 12 - Prob. 16PCCh. 12 - I before e except after c A friend of yours who is...Ch. 12 - User Name Write a program that queries its...Ch. 12 - String Splitter Write a function vectorstring...Ch. 12 - Palindromic Numbers A palindromic number is a...

Additional Engineering Textbook Solutions

Find more solutions based on key concepts
Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning
Text book image
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Computer Programming for Beginners | Functions, Parameters & Arguments | Ep24; Author: Programming With Avelx;https://www.youtube.com/watch?v=VXlh-qJpfw0;License: Standard YouTube License, CC-BY