as the title implies i need to write a program that will asked the user to enter string then change the cap of the string "computer", count the number of appearances of the word computer in the entered string.
first i made a if else statement for password verification, then it will come up into a new line that will asked the user to enter a sentence or a phrase. if the word computer is detected in the entered sentence or phrase the computer word will be capitalized.
now this is my problem every time i entered a phrase or sentence every words are capitalized.
ex.
i entered:
i love computer
this is my output:
I LOVE COMPUTER
the output should be:
i love COMPUTER
i still don't know what is the correct code. the program is in string, in strupr. i cant show off the code cause it was made from scratch and i am shy

New Topic/Question
Reply




MultiQuote




|