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

Okay, my code works 70% right now. However, my inputs keep screwing up. We aren\

ID: 3655463 • Letter: O

Question

Okay, my code works 70% right now. However, my inputs keep screwing up. We aren't supposed to need ASCII for this program, but I can't think of a way without it while following the problem specifications. Can anyone help? 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 //#include using namespace std; void capit(char *ptr){ *ptr=toupper(*ptr); return; } int main(){ char a,b, *A,*B, wait; couta>>b; A=&a; B=&b; capit(A); capit(B); 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