C++ programming language
Write a program that contains following function:
A function that receives a string of character, the function return true if the string contains letter c or C, otherwise, return false.
c++ code:
#include <iostream>
#include <string>
using namespace std;
//function returns true, if c/C found
bool characterFound(string str)
{
//check all characters in the string
for(int i=0;i<str.length();i++){
if(str[i]=='c' || str[i]=='C')
return true; //true if found
}
//false if no c/C found
return false;
}
int main()
{
string str;
//prompt for string
cout<<"Enter string: ";
cin>>str;
//call function and print the result
if(characterFound(str))
cout << "string contains letter c or C." << endl;
else
cout << "string does not contain letter c or C" <<
endl;
return 0;
}
output:

//for any clarification please do comments. if you found this solution useful, please give me thumbs up
C++ programming language Write a program that contains following function: A function that receives a string...
C++ programming language Write a program that contains following function: A function that receives a string of character, the function returns the number of letter c's or C's in the string the function receives
c++ language Write a program that contains the following functions, i. A function isVowel that takes in a character and returns true if it is a vowel and false otherwise ii. A function that request from the user to enter in a sequence of characters, and outputs the number of vowels entered. (Use Function in a) to assist you, a sentinel value can be used to specify the end of the user input iii. A function that reads 3 test...
[C Programming Language] Write a function that accepts a string (a pointer to a character) and deletes all the trailing spaces at the end of the string.
Using the programming language Java or C++, Write a function that takes an integer as input. Return true if this integer is a palindrome integer; false otherwise;
Write the code in python programming Language String Statistics: Write a program that reads a string from the user and displays the following information about the string: (a) the length of the string, (b) a histogram detailing the number of occurrences of each vowel in the string (details provided below), (c) the number of times the first character of the string occurs throughout the entire string, (d) the number of times the last character of the string occurs throughout the...
Haskell Functional Programming Language: Write a function nestedParens that takes a string argument and returns true if it is a nesting of zero or more pairs of parentheses, e.g. "((()))" should return True ; "()()" or "(()))" should return False . Use recursion for this problem. nestedParens :: String -> Bool
Python Programming Assignment: Write a function to take a string S that returns True if the letters are in ascending order and False otherwise. To do this go over each letter and check that it is less than the letter that precedes it. Then write a function main that gets one input from the user, then if passing that input to the function above returns True, then show "String is in order", otherwise show " String is unordered".
In C Programming Language, write a program Character Pointers and Functions. Keyboard input to enter one character string. Using a single dimension array, populate the array with the character string, call a function using pointers to reverse order the character string, pass back to the main the output and total_count_of_characters. (maybe use a global variable for the total count). Print display the reversed char string and total_count.
In C Programming Language, write a program Character Pointers and Functions. Keyboard input to enter one character string. Using a single dimension array, populate the array with the character string, call a function using pointers to reverse order the character string, pass back to the main the output and total_count_of_characters. (maybe use a global variable for the total count). Print display the reversed char string and total_count.
Python Programming Assignment: Write a function to take a string S that returns True if the letters are in ascending order and False otherwise. To do this go over each letter and check that it is less than the letter that precedes it.