Dec 9, 2020 at 9:42am UTC
Hey guys, can somebody help me to do a program that can randomly capitalize a letter that you put in. there must be no consecutive identical capitalize the letter.
[ThIs Is ThE eXaMpLe OuTpUt.]
Thank you in advance.
Dec 9, 2020 at 11:00am UTC
Please state the actual problem, not your interpretation of it.
Your example simply capitalises every second letter - that's not random.
Dec 9, 2020 at 11:10am UTC
@lastcahnce
ThE PrOgRaM iS lIkE rAnDoM bUt ThE aCtUaL cOdE iS jUsT cApITaLiZiNg EvErY LeTtEr On EvErY WoRd.
Dec 9, 2020 at 11:16am UTC
Try again. Answer my question.
Dec 9, 2020 at 12:05pm UTC
@lastchance
The Program looked like randomization of the capital words but the actual code is just capitalizing every letter on every word.
PS: idk what the f my professor says because my classmate said to me that there an activity
Dec 9, 2020 at 12:10pm UTC
That suggests you have an actual program, but it isn't working as you want.
You need to post it.
Dec 9, 2020 at 12:27pm UTC
Update: My friend just trolled me wth. sorry guys for your effort.
Dec 9, 2020 at 2:13pm UTC
Now write the inverse program! :)
(Unfortunately not possible in general)
Last edited on Dec 9, 2020 at 2:18pm UTC