Question: Write a complete program that will read in 10 characters, each character will be either a w - for a win, or a l -

Write a complete program that will read in 10 characters, each character will be either a w - for a win, or a l - for a loss. The program will compute and report the longest winning streak For Example: l l w w l w w w l w will output 3 w l w l w l w l w l will output 1 l l l l l l l l l l will output 0 w w w w l w w w l w will output 4 We have not gone into advanced stuff, keep it simple however we have learned functions. Please type the program out- no handwritten pictures. THANKS!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!