Think YOU can solve this Dart/Flutter Code Challenge? || The Longest Word || Learn Dart & Flutter

Опубликовано: 29 Март 2023
на канале: FlutterED - Learn Flutter and Dart
153
5

Code & Notes:
https://fluttered.substack.com/p/dart...

Dart Coding Challenge 4

The Challenge:
It’s time to tantalize your senses with a coding challenge for Dart called “Longest Word.” As you may be expecting, the gist of this coding challenge is quite simple, to capture a body of text from the user via the command line. Your job is to determine what the longest word is and display it to the user.

Project Specifications:
Obtain a body of text from the user via the command line.
The text must include ONLY alphanumeric characters.
The text must include at least three words and 1 sentence. Look at Coding Challenge 3 if you are having any problems with this!
If any of the above criteria are not met, prompt the user for input again with a message indicating the problem.
Once you have valid input, your job is to figure out the longest word in the body of text and display back to the user which word is the longest and how many characters it is.
If there are two words of the same length, return the last one that occurs in the sentence!

Other Coding Challenges Playlist:
   • DART Coding Challenges  

Chapters:
00:00 Introduction
00:26 Challenge Specifications
01:34 Pause and Take the Challenge
01:36 Hints
02:39 Solution 1
11:10 Solution 2
19:07 Final Thoughts


Смотрите видео Think YOU can solve this Dart/Flutter Code Challenge? || The Longest Word || Learn Dart & Flutter онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь FlutterED - Learn Flutter and Dart 29 Март 2023, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 153 раз и оно понравилось 5 людям.