Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hi, I need help with a coding assignment in C. Can you guys write this out for me? Please see below for what the code

Hi, I need help with a coding assignment in C. Can you guys write this out for me? Please see below for what the code is supposed to do.

Part 1

In your main() function, asks the user to enter their full name. Ensure that you can successfully store their name in a single character array, with the space. Ensure you do not have a rogue character in the array. Make sure that you can handle a reasonable name.

Part 2

Pass a pointer of your character array into a function that outputs the number of characters stored in your character array. This function will need to also return this integer back to your main function. Youll need this value later.

Part 3

Pass a pointer of your character array into a function this displays the reverse. For example, my name of Barbara Myers would be output as: sreyM arabraB

Part 4

Again, passing a pointer to your array, inform the user which character is the space in your name. For example, for Josh Stroschein, my function would output: 4, since the 5th element of my array would be the space (remember element vs element number). This function will need to also return this integer back to your main function. Youll need this value later.

Part 5

Within your main function, after youve called the other functions, reverse your name. For example, my name would be outputted as: Myers Barbara

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases And Information Systems 25th European Conference Adbis 2021 Tartu Estonia August 24 26 2021 Proceedings Lncs 12843

Authors: Ladjel Bellatreche ,Marlon Dumas ,Panagiotis Karras ,Raimundas Matulevicius

1st Edition

3030824713, 978-3030824716

More Books

Students also viewed these Databases questions

Question

Advance warning and an explanation for the layoff.

Answered: 1 week ago