Question: Write in C programming. Two files, one for part one and part two. Make sure the array is manual input by the user not randomly

Write in C programming. Two files, one for part one and part two. Make sure the array is manual input by the user not randomly generated.
Character Arrays vs. Pointers 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 ts in this array is: 0 The transformed string: aswflwaswdf Please enter a group of no more than 50 characters: tatarsauce The number of ts in this array is: 2 The transformed string: tawarwauwe Please enter a group of no more than 50 characters: topcheddar The number of ts in this array is: 1 The transformed string: towchwddwr
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
