Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a C++ program that asks for two lowercase characters. Pass the two entered

ID: 3655589 • Letter: W

Question

Write a C++ program that asks for two lowercase characters. Pass the two entered characters, using pointers, to a function named capit (). The capit () function should capitalize the two letters and return the capitalized values to the calling function through its pointer arguments. The calling function should then display all four letters.

Explanation / Answer

#include //io headerfile using namespace std; void capit(char *letter){ //void fxn takes char pointer if((*letter>='a')&& (*letter>ch2; //read in two characters CH1=&ch1; //assign CH1 to point to address of ch1 CH2=&ch2; //assign CH2 to point to address of ch2 capit(CH1); //call capit with CH1 capit(CH2); //call capit with CH2 cout
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote