Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C program, please help no int variables .1 T-Mobile Wi-Fi 1:44 PM a drive.google.com PF Lab10.pof Sign In Lab 10 Strings Wine a program with

C program, please help no int variables image text in transcribed
.1 T-Mobile Wi-Fi 1:44 PM a drive.google.com PF Lab10.pof Sign In Lab 10 Strings Wine a program with the file name lab10 peobleml.e hat reads from the uner some sest ina ing e that can hold amasimm of 40 characters and thes it splits the saring into Twe oer strings as ollows l the even gesition characters are oopied into a string called even and al the odd-position chaes wre cogied into a string called odd. The program shouild then pist out the even and odd strings You propam shwld use char . varuhk.pwwr to char, tetravme the ngs str, even and odd The program should behave as ollows (iems underlined are ntered by the we Enter a atring (40 characters maximum) abedefg The even string is aceg The odd string iss bdf Algorithm design preces Declae your vishles Strings ste, even, odd comider what the sines souild be how many cu charactors+the NULL r character tring even)or tring oddl) Another poiner p start may be nooded as 2. Read in the saring from the uner. You cn use scant with a speoific coversion specifier th ennures we do not nead more than 40 characters or you can une the code o the lecture o Wnite a for loop that uses a pointer that traverses the str string and oopics the characies into the even and odd aays increment the pointers tha kcep track of the cumont position in the even/odd sring b. Al the end of the for loop do not forgt so add the NULL tminator to the and of the Print the even/odd strings wingprintt Page 1 1

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

Step: 3

blur-text-image

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

Readings In Database Systems

Authors: Michael Stonebraker

2nd Edition

0934613656, 9780934613651

More Books

Students also viewed these Databases questions

Question

What is the basis for Security Concerns in Cloud Computing?

Answered: 1 week ago

Question

Describe the three main Cloud Computing Environments.

Answered: 1 week ago