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

Published: 29 March 2023
on channel: FlutterED - Learn Flutter and Dart
148
5

Code & Notes:


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:


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


Watch video Think YOU can solve this Dart/Flutter Code Challenge? || The Longest Word || Learn Dart & Flutter online without registration, duration 19 minute 34 second in high hd quality. This video was added by user FlutterED - Learn Flutter and Dart 29 March 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 148 once and liked it 5 people.