Coding Challenge in Dart - Palindrome || Flutter & Dart Tutorials || Learn Flutter & Dart

Published: 22 March 2023
on channel: FlutterED - Learn Flutter and Dart
94
2

See the solutions and the code on my Substack:
https://fluttered.substack.com/publis...

Are you ready to challenge yourself once more? We're back with the second edition of our Dart coding challenge, and this one's going to be a little trickier than the first. But don't worry, if you aced the first one, you'll find this a breeze!

This time around there’s a little more fun in the mix. We want you to enter a sequence of letters, numbers, or both, and then programmatically determine if the characters are a palindrome . Sound intriguing? We thought so too!

So what are you waiting for? Get your thinking cap on and let's see if you have what it takes to crack this one!

Below are the application specifications. Read them over and then try to build the application on your own. If you find yourself stuck, several hints are provided below. Two solutions to this problem are available if you are unable to solve it on your own, or have already solved it and want to see my solution!

Project Specifications
- Use the Dart Create function to create this project.
- Ask the user, through the command-line terminal, to enter a single sequence of numbers or letters. It can be random or a word.
- No spaces or special characters are allowed.
- There must be more than 6 characters and less than 20.
- Then, using any coding method that you see fit, check and see if the characters are a palindrome. As a reminder a palindrome is a word or sequence of characters that is the same backwards and forwards.
- Display back to the user whether or not their number is a palindrome.
- If the user inputs a number with less than 6 digits prompt them again with a custom message.
- If the user inputs a number with less than 50 digits prompt them again with another custom error message.
- If the user enters a non valid character alert them and ask for input again.
- Use individual functions where appropriate.
- Write tests where appropriate!

You’ve got this! Get to work and solve the challenge!

Chapters:
00:00 - Introduction
00:59 - About This Challenge
03:10 - Challenge Specifications
04:50 - Hints
06:37 - Solution 1
10:46 - Solution 2


Watch video Coding Challenge in Dart - Palindrome || Flutter & Dart Tutorials || Learn Flutter & Dart online without registration, duration hours minute second in high quality. This video was added by user FlutterED - Learn Flutter and Dart 22 March 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 94 once and liked it 2 people.