Computers and Technology, 01.12.2020 16:20 cvhufjbvbcxx2406
Write a function called upperLower that inputs a line of text into char array s[100]. Output the line in uppercase letters and in lowercase letters
This is what I have so far:
void * upperLower (const char * s) {
char *word[sizeof(s)];
for(int i = 0; i < sizeof(s); i++){
*word[i] = s[i];
}
word = strtok(word, " ");
int counter = 0;
while(word != NULL){
if(counter % 2 == 0){
word[counter] = toupper(word);
printf("%s ", word);
}
else{
word[counter] = tolower(word);
printf("%s ", word);
}
counter++;
word = strtok(NULL, " ");
}
}
The method cannot be changed. Must use void * upperLower (const char * s) {
The output should be like THIS is A test
Answers: 3
Computers and Technology, 24.06.2019 08:30
Why might you choose to create a functional resume
Answers: 1
Computers and Technology, 24.06.2019 12:30
Nikki sent flyers in the mail to all houses within the city limits promoting her computer repair service what type of promotion is this and example of
Answers: 1
Computers and Technology, 24.06.2019 13:00
Which one of the following functions is not available on the autosum tool? sum average if max
Answers: 3
Write a function called upperLower that inputs a line of text into char array s[100]. Output the lin...
Mathematics, 01.12.2020 18:40
English, 01.12.2020 18:40
English, 01.12.2020 18:40
History, 01.12.2020 18:40
Mathematics, 01.12.2020 18:40
Mathematics, 01.12.2020 18:40
Mathematics, 01.12.2020 18:40
Social Studies, 01.12.2020 18:40
Health, 01.12.2020 18:40
Biology, 01.12.2020 18:40
Computers and Technology, 01.12.2020 18:40
Biology, 01.12.2020 18:40
Mathematics, 01.12.2020 18:40
History, 01.12.2020 18:40