CCExtractor Development

Rust: Bob

(this exercise comes from the fantastic website )

Bob is a lackadaisical teenager. In conversation, his responses are very limited.

Bob answers 'Sure.' if you ask him a question, such as "How are you?".

He answers 'Whoa, chill out!' if you YELL AT HIM (in all capitals).

He answers 'Calm down, I know what I'm doing!' if you yell a question at him.

He says 'Fine. Be that way!' if you address him without actually saying anything.

He answers 'Whatever.' to anything else.

Bob's conversational partner is a purist when it comes to written communication and always follows normal rules regarding sentence punctuation in English.

When you are done with the exercise, send us a link to the repository on gitHub.

Note: This is a Rust exercise, no submissions of any other programming language are allowed (so no Python, C++, ...)!

Task tags

  • rust

Students who completed this task

_anushka_, A_Jain, suyashmittal

Task type

  • code Code