Computers and Technology
Computers and Technology, 23.04.2022 14:00, vjmfghhh

Develop an algorithm which will ask the user to enter a character in a string they would like to replace, and then to also enter the character they would like it replaced with. Use two variables called find and replace for the inputs.

The string which is being modified is already written for you.

Output the following information:

The original word is schoolbook
The character to be replaced is o
The character to replace it with is 0
The changed word is sch00lb00k
The items above in bold will vary depending on the input from the user

using System;

class Program{
static void Main(){
string originalWord = "";
originalWord = Console. ReadLine();

//Write your code below this line

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 04:00, ittmanny6138
Laire writes a letter to her grandmother, in which she describes an amusement park she visited last week. she adds pictures of that place in her letter. which feature of a word processing program will claire to remove unwanted parts of the pictures?
Answers: 3
image
Computers and Technology, 24.06.2019 14:00, makaylahunt
Text or graphics that print at the bottom of every page are called footings footers headers headings
Answers: 1
image
Computers and Technology, 24.06.2019 16:00, alexisbeasley2
Which of the following characters is acceptable to use in a filename? ? / – %
Answers: 1
image
Computers and Technology, 24.06.2019 20:30, michell200428
Drums installed, you would apply clicks of the parking brake to obtain a slight drag on both rear wheels
Answers: 1
Do you know the correct answer?
Develop an algorithm which will ask the user to enter a character in a string they would like to rep...

Questions in other subjects: