Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

solve it with C language Exercise 3 - String operations in pinters 14 marks Exercise Objectives Pointer operations and pointer arithmetic with strings Strings as

solve it with C language
image text in transcribed
Exercise 3 - String operations in pinters 14 marks Exercise Objectives Pointer operations and pointer arithmetic with strings Strings as references Using pointers to loop through string elements Performing string operations pointers Passing strings to functions as references Problem. Description run program that Wahintepis.com DE.create another super repl/project and came it "lab 1643. Use this project to write Use the symbolic constant to define the size of a string (ID array of chars of 50 Dectare a variables named mycity of the specified size Prompt the user to read mycity array Declare the following functions as prototype and implement them after the main function (NEVER USE String functions PrintChars), a function that receives a chaine Use ONLY pointer arithmetic to print mycity characters Strength), a function that receives a chaine Use ONLY pointer arithmetic to get mycity length VowelsCount), a function that receives a chapter Use ONLY pointer arithmetic to get the number of vowels in mycity (Note: you need to deal with the character cases here, le uppercase and lowercase of vowels Convert ToUpprcase), a function that receives shat pointer. Use ONLY pointer arithmetic to convert mycity characters into uppercase. StrReverse function that receives a cha pointer Uwe ONLY pointe arithmeck to convert mycity characters into uppercase Hint define another pointe variable that points to the last element then move backward with this pointer. You need to call Strength) to reach the end of the array In the main function Prompt the user to input mycity Print mycity characters by calling PrintChart function Call Strength for mycity and display the length Cal VowelsCount for mycity, and display the result Call ConvertTopptasel for mycity, then print mhobby Call Streversel for mycity, then print mycity Page 4 of 5 Organize the output to appear as shown in the sample output below Download your project as zip lie and keep it within your file system (Desktop for example) Upload the project to the learning platform Sample Output input your city A Printing mycity character by character The length of mycity-5 Number of vowel characters Converting mycity to uppercase AMMAN Reversing mycity becomes NAMMA

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

Beginning C# 2005 Databases

Authors: Karli Watson

1st Edition

0470044063, 978-0470044063

More Books

Students also viewed these Databases questions

Question

6. Is all Internet training the same? Explain.

Answered: 1 week ago