Sale!

C101 Homework #12 solved

Original price was: $35.00.Current price is: $35.00. $17.50

Category: You will receive a download link of the .ZIP file upon Payment

Description

5/5 - (1 vote)

This assignment will give you some experience in dealing with C++ strings, which are null
terminating character arrays.
Write and test the following string functions. DO NOT use any of the functions in the string.h
library, cannot use “strlen” function.
void Upcase( char S[] )
* Upcase will change each character of S array to its uppercase equivalent, if there is one. Non- alphabetic characters remained unchanged. —————————————————————————————————————- void DeleteFirst( char S[] )
* Function will delete the first character of the array S
—————————————————————————————————————- void InsertBlank(char S[], int Pos)
* Function inserts a blank in position, Pos, of array S
* Should “insert” not “overwrite”. —————————————————————————————————————-
int Position(char Ch, char S[] )
* Function returns the first position of the occurrence of Ch in array S. For example,
S = “Hello There”, then Position(‘o’,S), would return 5. If Ch is not found in S array then
a -1 should be returned, i.e. “return -1;”
—————————————————————————————————————- * I have written most of a “driver” program that you can and should use to test the functions.
The program contains a complete main, function stubs and one completed test driver functions to
test the above four functions. Using this driver program could save you many hours of work.
This program will run the way it is. It is found on my website under “a13shell.cpp” in the
homework link. You only need to actually write four functions.
*Be sure to carefully comment the functions and the code as well. Make sure to finish the
comments in the functions you need to write.
*Turn in only the four functions that you write, don’t turn the whole complete program, -3 points
if you do. And of course turn in output to verify algorithm.