1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
mr_godi [17]
3 years ago
15

Write a function called changeCharacter that takes three parameters – a character array, its size, and the replacement character

– to change every third character in the array to its replacement character
(C++ coding)
Computers and Technology
1 answer:
ser-zykov [4K]3 years ago
3 0

Method explanation:

  • Defining a method "changeCharacter" that takes three parameters that are "character array", and two integer variable "s, k" in its parameters.
  • Inside the method, a for loop is declared that takes array value and defines a conditional statement that checks the 3rd character value in the array, is used to the array that holds its key-value.
  • Please find the full program in the attachment.

Method description:

void changeCharacter(char* ar, int s, int k)//defining a method changeCharacter that takes three parameters

{

  for(int j = 1; ar[j]!='\0'; j++)//defining a for loop for 3rd character value in array  

  {

      if(j%3== 0)//use if block that check 3rd character value in array  

      {

          ar[j-1] = k; //Changing the 3rd character in array

      }

  }

}

Learn more:

Program: brainly.com/question/12975989

You might be interested in
It's not necessary in a field to have .
ozzi

it's not necessary in a field to have .

6 0
3 years ago
A digital footprint is .
BlackZzzverrR [31]

Your digital footprint is the trail of 'electronic breadcrumbs' you leave behind when you use the internet. It can include the websites you visit, the photos you upload and your interactions with other people on social networks.

3 0
3 years ago
Do you believe that OOP should be phased out and we should start working on some alternative(s)?
AlekseyPX

Answer:

Explanation:

The OOP or object-oriented programming can be used in day to day situations, and can be more simple to understand for the programmer and for the user, for beginners is easier to learn with a visual interface, and even we can improve our imagination with objects, colors and aesthetic models, we can reuse, and we have a structure to hide our code, OOP It is not an obsolete technology yet.

5 0
4 years ago
what ribbon command on the Home tab can you use to change a cell's fit color automatically, based on the value of the cell
Lerok [7]

The ribbon command on the Home Tab that can be used to change a cell's font color automatically based on the value of the cell is by using the Ctrl+Shift+F (Font Color Command).

<h3>What is Font Color Command? </h3>

The font color command is used in the formatting of the font colors of cells on an Excel Sheet. The ribbon command Ctrl+Shift+F can be used or follow the process below.

To use the Font Color Command, simply follow the process:

  • Identify and select the text that you need to change.

Now, On the Home tab, select:

  • Font group,
  • In the arrow next to Font Color, click on the color to change the cell's font color.

Learn more about the Font Color command here:

brainly.com/question/5605472

<h3></h3>
6 0
3 years ago
What service provides realtime delivery of voice or streaming media?
k0ka [10]
YouTube, Twitch, and Beam are media that you can stream on.
(If that's what you are looking for.)
8 0
4 years ago
Other questions:
  • Why do the holes at the top of parachutes make it go slower
    12·1 answer
  • The position of a _____ is a nontechnical position responsible for defining and implementing consistent principles for setting d
    15·1 answer
  • Your company leases a very fast internet connection and pays for it based on usage. You have been asked by the company president
    8·1 answer
  • Cual es la constante de proporcionalidad de la función f(x)= 4x-6 ​
    7·1 answer
  • Write a function that simulates the roll of a six-sided dice. The name of the function is rollDice. The function accepts no para
    8·1 answer
  • The cost of a postsecondary education increases with the length of time involved in the program.
    10·1 answer
  • PLSS HELP ASAP ILL GIVE BRAINLIEST THANKS
    15·2 answers
  • Being technologically literate requires being able to ______. a. use advanced graphics manipulation tools (adobe photoshop) b. u
    6·1 answer
  • To assist a user, a help desk technician is able to take advantage of a Windows proprietary network protocol that allows the tec
    8·1 answer
  • View the contents of the /root/.bash_profile file. type cat /root/.bash_profile at the prompt to answer the question. what is th
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!