NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io



class Hesap(var ad: String, var dersadi: String, var vize: Double, var final: Double, var Bnot: Double)
{
fun dtHesapla() = (vize*0.4+final*0.6)



fun bilgiYaz()
{
println("Adınız: $ad n" +
"Ders Adi $dersadi n"+
"Vize $vize n"+
"Final $final n"+
"Bnot $Bnot"
)
}
override fun toString():String
{
var bilgiler ="isim : $ad, dersadi : $dersadi, vize : $vize, final : $final , başarı notu : $Bnot"
return bilgiler
}
}
fun main(args: Array<String>) {
println("Kişi sayisini girin")
var ks = readLine()!!.toInt()
var bilgi: Array<Hesap> = Array<Hesap>(ks) { Hesap("", "", 0.0, 0.0, 0.0) }

var ad1: String
var dersadi: String
var vize1: Double
var final1: Double
var Bnot1: Double=0.0

for (i in 0..ks - 1) {
println("İsminiz")
ad1 = readLine()!!.toString()
println("Ders Adi Griniz")
dersadi = readLine()!!.toString()
println("Vize notunu griniz")
vize1 = readLine()!!.toDouble()
println("Final notunu griniz")
final1 = readLine()!!.toDouble()


Bnot1 = vize1*0.40+final1*0.60
bilgi[i] = Hesap(ad1, dersadi, vize1, final1, Bnot1)

}


Menu()
var secim: Int = readLine()!!.toInt()
while (secim != 7) {
when (secim) {
1 -> for (i: Int in 0..ks - 1) {

println(bilgi[i].toString())
Menu()
secim = readLine()!!.toInt()

}
2-> {
print("Aradığınız ismi giriniz : ")
var aranan:String = readLine()!!.toString()
var sonuc:Byte=1
for ( i:Int in 0..ks-1)
{
if (bilgi[i].ad.contentEquals(aranan))
{
println(bilgi[i].bilgiYaz())
}
else sonuc=0
}
Menu()
secim = readLine()!!.toInt()
}
3 ->
{
print("Aradığınız dersi giriniz : ")
var aranan:String = readLine()!!.toString()
var sonuc:Byte=1
for ( i:Int in 0..ks-1)
{
if (bilgi[i].dersadi.contentEquals(aranan))
{
println(bilgi[i].bilgiYaz())
}
else sonuc=0
}
Menu()
secim = readLine()!!.toInt()
}
4 ->
{
for ( i:Int in 0..ks-1)
{
println( bilgi[i].toString())
}
Menu()
secim = readLine()!!.toInt()
}
5 ->
{
var max=0
for ( i:Int in 0..ks-1)
{
if(bilgi[i].Bnot > max)
{
max = bilgi[i].Bnot.toInt()
println( bilgi[i].toString())
}

}
Menu()
secim = readLine()!!.toInt()
}
6 ->
{
var min=0
for ( i:Int in 0..ks-1)
{
if(bilgi[i].Bnot < min)
{
min = bilgi[i].Bnot.toInt()
println( bilgi[i].toString())
}

}
Menu()
secim = readLine()!!.toInt()
}
}
}
}

fun ort(bilgi: Array<Hesap>)
{
var vtoplam:Double=0.0
var ftoplam:Double=0.0
var bntoplam:Double=0.0


for (i in 0..bilgi.size-1) {
vtoplam += bilgi[i].vize
ftoplam += bilgi[i].final
bntoplam += bilgi[i].Bnot
}
println("vize ortalaması :"+(vtoplam/bilgi.size))
println("vize ortalaması :"+(ftoplam/bilgi.size))
println("vize ortalaması :"+(bntoplam/bilgi.size))
}


fun Menu() {
println("Listeleme: 1")
println("Ad ile arama: 2")
println("Ders Adına Gore Arama: 3")
println("Vize Final başarı ortalaması: 4")
println("En büyük Vize Final Başarı : 5")
println("En Küçük Vize Final Başarı : 6")
println("Çıkış : 7")
print("Bir seçim yapınız :")

}
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.