Giter VIP home page Giter VIP logo

form-validation's Introduction

form-validation

This project represents 2 exercise to learn Kotlin. Jetpack compose used

1: A recursive function written in Kotlin that will determine the number of steps it takes for a given positive number to reach 1 according to the Collatz conjecture.

2: There will be 4 input fields.

Input field 1: Text that contains only letters, without any numbers or special characters, can be entered.
Input field 2: A positive integer can be entered.
Input field 3: A positive integer can be entered.
Input field 4: Plain text.

Button: It will trigger the validation, and whether the validation is successful or not will be reflected on the screen with a toaster or something similar.

Validation:

No input field can be left empty. An error message will be written under the ones left empty.

Input field 1. It will be checked whether the first letter of each word in the text entered in the first input field is capitalized and the rest of the letters are lowercase.
Input field 2. It will be checked whether the sum of the numbers from 1 to the number entered in the second input field, including the number itself, is less than the number entered in the third input field; if it is less, the validation for the second input field will be considered successful.
Input field 3. It will be checked whether a positive integer has been entered in the third input field.
Input field 4. Input field: It will be checked whether it is a palindrome or not. If it is a palindrome, the validation will be considered successful.

form-validation's People

Contributors

abdurrahmanbulut avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.