Question
Kiddy Dennis separated the wheels of the same model toy cars from their bodies and threw them into the toy basket. Some parts of the
Kiddy Dennis separated the wheels of the same model toy cars from their bodies and threw them into the toy basket. Some parts of the basket were lost during the move. A whole toy car requires four wheels and a body. All parts in the basket are stored in a character string as 'T' for wheels and 'G' for bodies. According to the number of character array and element in the basket name sent to it; Write the function named kacTane that finds out how many whole toy cars can be built in total, in accordance with the C program below. (NOTE: The values in the basket are examples. The values can be changed, decreased, increased. The function should also work according to the changes made. You do not need to rewrite the main function. Do not forget to write a prototype)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started