Question: Program in C #Include Part 1 - Arrays: Write a program array_vs_ptr.c that prompts the user to input a string of letters (a-z), with a

 Program in C #Include Part 1 - Arrays: Write a program Program in C #Include

Part 1 - Arrays: Write a program array_vs_ptr.c that prompts the user to input a string of letters (a-z), with a maximum length of 50. Your program must read these characters into an array, and then perform the following tasks on the array: 1. Count the number of 't's in the array 2. Change every third character to a 'w Lastly, your program should print the array, skipping over all remaining spaces. Part 2 - Pointers: Write a program array_vs_ptr_2.c that performs exactly the same as the program from part 1, however apart from the array declaration and initialization, you CANNOT use square brackets in your code (i.e.(). Example input/outputs (underline is user input, bold is calculated/created by the program): Please enter a group of no more than 50 characters: asdflnasddf The number of t's in this array is: 0 The transformed string: aswflwaswdf Please enter a group of no more than 50 characters: tatarsauce The number of t's in this array is: 2 The transformed string: tawarwsawce Please enter a group of no more than 50 characters: topcheddar The number of t's in this array is: 1 The transformed string: towcwedwar

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!