Z Score,T Score, Percential Rank and Box Plot Graph
Compose Camp Slide Deck Template.pptx
1. This work is licensed under the Apache 2.0 License
Camp Composed
Session 1 - Intro to Kotlin
September 19th
2. This work is licensed under the Apache 2.0 License
Navaneeth K U
GDSC CCE App Development Lead
Session Lead
3. This work is licensed under the Apache 2.0 License
Welcome App Developers!
4. This work is licensed under the Apache 2.0 License
Kotlin is an open-source statically typed
programming language that targets the JVM,
Android, JavaScript and Native. It's developed
by JetBrains. It can be used on multiple
platforms
What is Kotlin?
5. This work is licensed under the Apache 2.0 License
It has a much simpler and shorter code than
Java's code for the same problem. As this
makes the language more human-readable, it
becomes easy to debug. Kotlin's code is much
smaller and streamlines the programming process,
in comparison to Java. It has null safety feature
built-in.
Why Kotlin?
6. This work is licensed under the Apache 2.0 License
The size of the Kotlin app takes less size as
compared to Flutter. Since Flutter is a UI tool,
so it needs third-party libraries and tools to
bridge a connection with the native
environment. It does not require third-party
libraries and tools to bridge a connection with
the native environment. Kotlin has better
performance than Flutter
Why Kotlin over Flutter?
8. This work is licensed under the Apache 2.0 License
println()
println(), print() are the printing
statements in Kotlin.
print() for just printing on the screen
println() for appending a newline
at the end
9. This work is licensed under the Apache 2.0 License
Variables
In computer programming, there's the concept of
a variable, which is a container for a single piece
of data. You can envision it as a box that contains
a value.
The box has a label, which is the name of the
variable. By referring to the box by its name, you
have access to the value it holds.
10. This work is licensed under the Apache 2.0 License
Variable format
11. This work is licensed under the Apache 2.0 License
Use
Variables are used as placeholders in an
app which are replaced by information
You must declare a variable before using
it!
12. This work is licensed under the Apache 2.0 License
Example:
Here, { Name } is a variable
These article cards are made
By populating the variables
With useful data!
13. This work is licensed under the Apache 2.0 License
Data Types in Kotlin
14. This work is licensed under the Apache 2.0 License
Variables
You can use variables in a string using
string interpolation
Output
15. This work is licensed under the Apache 2.0 License
Variable coding convention
16. This work is licensed under the Apache 2.0 License
Comments
When coding, another good practice to follow is to add
comments that describe what the code is intended to do.
Comments can help people who read your code follow it
more easily. Two forward slash symbols, or //, indicate that
the text after it on the rest of the line is considered a
comment, so it isn't interpreted as code.
It's common practice to add a space
after the two forward slash symbols.
17. This work is licensed under the Apache 2.0 License
Comments
Single Line
Multi Line
18. This work is licensed under the Apache 2.0 License
Functions
• A function is a block of code which
only runs when it is called. You can
pass data, known as parameters, into
a function. Functions are used to
perform certain actions, and they are
also known as methods.
19. This work is licensed under the Apache 2.0 License
Functions
• Syntax
20. This work is licensed under the Apache 2.0 License
Functions
• Syntax
21. This work is licensed under the Apache 2.0 License
Functions
• Example Output
22. This work is licensed under the Apache 2.0 License
• Function with return type
23. This work is licensed under the Apache 2.0 License
Parameter Passed
24. This work is licensed under the Apache 2.0 License
Example
25. This work is licensed under the Apache 2.0 License
Variables
• var is used when you expect the
variable to change
• val is used when you do not expect
the variable to change
There are increment, decrement
operators just like in C language
26. This work is licensed under the Apache 2.0 License
THANK YOU!