The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Jul 2017 |
| Last Sign in: | 304 Weeks Ago, 1 Day Ago |
| Questions Answered: | 15833 |
| Tutorials Posted: | 15827 |
MBA,PHD, Juris Doctor
Strayer,Devery,Harvard University
Mar-1995 - Mar-2002
Manager Planning
WalMart
Mar-2001 - Feb-2009
a separate C file containing a function to convert any uppercase letters in a string to lowercase. The string may contain characters other than uppercase characters, so your code should check whether a character is uppercase or not before converting. Here is an example of a string that your function should be able to handle:
Input string: Abc123$#@
Output string: abc123$#@
Your C source file should follow appropriate naming guidelines as discussed in class. An example is:
doe_john_3_1.c
As noted in class, please use bitwise operation(s) to convert the case. Not doing so could affect your score.
You may not use an existing C library function in the implementation.
Â
main file:
/*
* File: convert_case_main.c
* Author:
The
teacher
*
* Created
on August
23,
2017,
12:39
PM
*/
#include
<stdio.h>
#include
<stdlib.h>
void
convertCase(char
*);
/*
*
*/
int
main(int
argc,
char**
argv)
{
char
aString[]
= "Abc123$#@";
printf("aString
= %sn",
aString);
convertCase(aString);
printf("aString
now
equals
%sn",
aString);
return
(EXIT_SUCCESS);
}
Â
Â
note that it should be modified to cover other cases.
----------- Â ----------- H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly