Starting Out with Programming Logic and Design (4th Edition)
Starting Out with Programming Logic and Design (4th Edition)
4th Edition
ISBN: 9780133985078
Author: Tony Gaddis
Publisher: PEARSON
Question
Book Icon
Chapter 12.2, Problem 12.6CP
Program Plan Intro

Inserting or deleting characters in a string:

Library function or modules are provided by the programming languages to perform insert and delete.

Inserting:

The pseudocode library modules that are used to insert the values is :

insert (string1,position,string2)

  • The above function will insert the “string 2” to the “string1” at the “position” specified.
  • “string1” and “string2” is string
  • “Position” is an integer.

Deleting:

The pseudocode library modules that are used to insert the values is

delete (string1,start,end)

  • The above function will delete the strings that are specified from the start to the end.
  • “Start” and “End” is integer that specifies the beginning position and end position.
  • “String” is string.

Blurred answer

Chapter 12 Solutions

Starting Out with Programming Logic and Design (4th Edition)

Knowledge Booster
Background pattern image
Recommended textbooks for you
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education