-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
284 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>elchin</title> | ||
</head> | ||
<body> | ||
<script src="index.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// 1 | ||
// let salary =prompt("please input your salary. for example 1540.50"); | ||
// let array=salary.split("."); | ||
// console.log(`${array[0]} dollar ${array[1]} coin`); | ||
|
||
|
||
// 2 | ||
// let salary= prompt("please input your salary. for example 1540.50"); | ||
// let array= salary.split("."); | ||
// let result=Number(array[0])-Number(array[0])*0.13; | ||
// console.log(result); | ||
|
||
|
||
// 3 | ||
// let userInformation=prompt("ad ve soyadi ata adi daxil edin meselen ilkin kerimov ilham"); | ||
// let array=userInformation.split(" "); | ||
// console.log(array[1]+" "+array[0][0]+" "+array[2][0]); | ||
|
||
|
||
|
||
// 4 | ||
// const emenanetinMeblegi = prompt("Əmanətin Məbləğini daxil edin:"); | ||
// const emanetMuddeti = prompt("Əmanətin Müddətini daxil edin:"); | ||
// const faizd = prompt("Əmanətin faiz dərəcəsini daxil edin:"); | ||
// const faiz = (+emanetMuddeti * +faizd) / 12; | ||
// const gelir = (Number(emenanetinMeblegi) * faiz) / 100; | ||
// console.log(`${emanetMuddeti} aydan sonra əmanət qazancınız ${gelir} azn olacaq`); | ||
|
||
// const il = prompt("İl sayını daxil edin:"); | ||
// const ilAy = 12; | ||
// const gelirIl = Number(emenanetinMeblegi) * (1 + Number(emanetMuddeti) / ilAy) * ilAy * il; | ||
// console.log(`Investisya gəliri : ${gelirIl}`); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Document</title> | ||
</head> | ||
<body> | ||
<script src="main.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// İstifadəçidən qiyməti daxil etmək | ||
var qiymet_str = prompt("Qiyməti daxil edin (nümunə: 530.90): "); | ||
|
||
// Daxil edilmiş qiyməti ondalıq nöqtəsindən ayırmaq | ||
var parts = qiymet_str.split('.'); | ||
var manat = parseInt(parts[0]); | ||
var qepik = parseInt(parts[1]); | ||
|
||
// Qiyməti formatlı şəkildə çıxarmaq | ||
console.log(manat + " manat " + qepik + " qəpik"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Document</title> | ||
</head> | ||
<body> | ||
<script src="script.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
var emekHaqqi = prompt("Əmək haqqınızı daxil edin: "); | ||
var vergisizEmekHaqqi = emekHaqqi * (1 - 0.13); | ||
|
||
// Hesablanmış əmək haqqını konsola çıxarmaq | ||
console.log("Vergi nəzərə alınmadan əmək haqqı: " + vergisizEmekHaqqi.toFixed(2)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Document</title> | ||
</head> | ||
<body> | ||
<script src="main.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
const fullName = prompt("Soyad, Ad, Ata adi qeyd edin:") | ||
|
||
const fullNameArray = fullName.split(" ") | ||
|
||
const surname = fullNameArray[0] | ||
const firstLetterOfName = fullNameArray[1][0] | ||
const firstLetterOfParanomic = fullNameArray[2][0] | ||
|
||
const newFullName = `${surname} ${firstLetterOfName}. ${firstLetterOfParanomic}.` | ||
|
||
console.log(newFullName); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Document</title> | ||
</head> | ||
<body> | ||
<script src="main.js"></script> | ||
</body> | ||
</html> |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
|
||
// ### Qiyməti mətn halına salan proqram tərtib edin. | ||
|
||
// let input = prompt("Zəhmət olmasa '530.90' formatında qiymət daxil edin:"); | ||
// let cashFullName = input.split("."); | ||
// console.log(`${cashFullName[0]} manat ${cashFullName[1]} qəpik`); | ||
|
||
// ### Vergi nəzərə alınmadan əmək haqqı məbləğini hesablayan proqram tərtib edin. | ||
|
||
// let inputSalary = prompt("Maaşınızı daxil edin:"); | ||
// let netSalary = Number(inputSalary) - Number(inputSalary)*13/100; | ||
// console.log(netSalary); | ||
|
||
// ### İstifadəçidən soyad, ad və ata adını istəyən, soyadı və baş hərfləri konsola çıxaran proqram tərtib edin. | ||
|
||
|
||
// let inputFullName = prompt("Soyad, Ad və Ata adınızı daxil edin:") | ||
// let getFullName = inputFullName.split(" "); | ||
// console.log(`${getFullName[0]} ${getFullName[1][0]} ${getFullName[2][0]}`); | ||
|
||
// ### Depozitdən mənfəətin hesablanması üçün proqram yazın. | ||
|
||
// let depositAmount = prompt("Əmanət məbləğini daxil edin:"); | ||
// let depositPeriod = prompt("Əmanətin müddətini daxil edin:"); | ||
// let depositPercent = prompt("Əmanətin faizini daxil edin:"); | ||
// let gain = (Number(depositAmount)*(Number(depositPercent)/100/12)*Number(depositPeriod)); | ||
// alert(`${depositPeriod} aydan sonra əmanətdən qazancınız ${gain}`); | ||
// console.log(gain); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Document</title> | ||
</head> | ||
<body> | ||
<script src="./JS/index.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<!-- ### Qiyməti mətn halına salan proqram tərtib edin. | ||
İstifadəçidən «530.90» formatında qiymət daxil etməyi xahiş edən və qiyməti «530 manat 90 qəpik» formatında konsola çıxaran proqram tərtib edin. --> | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Document</title> | ||
</head> | ||
<body> | ||
<script src="./js/main.js"> | ||
|
||
</script> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
// // ### Qiyməti mətn halına salan proqram tərtib edin. | ||
// //İstifadəçidən «530.90» formatında qiymət daxil etməyi xahiş edən və qiyməti «530 manat 90 qəpik» formatında konsola çıxaran proqram tərtib edin. | ||
|
||
|
||
|
||
// let sum = prompt('Qiymet daxil edin','530.90'); | ||
// sum = sum.split('.'); | ||
// console.log(`${sum[0]} manat ${sum[1]} qepik`); | ||
|
||
|
||
// // ### Vergi nəzərə alınmadan əmək haqqı məbləğini hesablayan proqram tərtib edin. | ||
// // Vergi nəzərə alınmadan əmək haqqı məbləğini hesablayan proqram tərtib edin. Proqram istifadəçidən əmək haqqı məbləğin soruşur və 13% vergi istisna olmaqla məbləği konsola çıxarır. | ||
|
||
|
||
// let salary = prompt(`Maaşınızı daxil edin: `,`400`); | ||
// let salaryWithoutTaxes = +salary - Number(salary)*0.13; | ||
// // console.log(salaryWithoutTaxes); | ||
|
||
|
||
// // ### İstifadəçidən soyad, ad və ata adını istəyən, soyadı və baş hərfləri konsola çıxaran proqram tərtib edin. | ||
// // İstifadəçidən soyad, ad və ata adını istəyən, soyadı və baş hərfləri konsola çıxaran proqram tərtib edin. | ||
// // Məsələn, «İvanov Pyotr Sergeevich» — «İvanov P.S.». | ||
|
||
// let fullName = prompt(`Soyad, ad, ata adı daxil edin: `,`İvanov Pyotr Sergeevich`); | ||
// fullName = fullName.split(` `); | ||
// let firstName = fullName[1]; | ||
// let lastName = fullName[0]; | ||
// let fatherName = fullName[2]; | ||
// // console.log(`${lastName} ${firstName.split(``)[0]},${fatherName.split(``)[0]}.`); | ||
|
||
|
||
|
||
// // ### Depozitdən mənfəətin hesablanması üçün proqram yazın. | ||
// // Proqram istifadəçidən əmanətin məbləğini, müddətini və faiz dərəcəsini daxil etməsini istəyir və gözlənilən mənfəəti hesablayır. | ||
|
||
// let depositSum = prompt(`Əmanətin məbləği: `); | ||
// let depositMonth = prompt(`Əmanətin ayların sayı: `); | ||
// let annualInterest = prompt(`İllik faiz dərəcəsi: `); | ||
// let gain = (Number(depositSum) * (Number(annualInterest)/(12*100)))*Number(depositMonth); | ||
// // alert(`${depositMonth} aydan sonra əmanətdən qazancınız ${gain} olacaq`); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Document</title> | ||
</head> | ||
<body> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// task 1 | ||
// let netvalue = prompt(" write 530.90") | ||
// let netarr = netvalue.split('.') | ||
// console.log(`${netarr[0]} + manat , ${netvalue[1]}`) | ||
|
||
// task 2 | ||
|
||
// let netsalary = prompt(" without tax ") | ||
// let salarywithtax = +netsalary*87/100 | ||
// console.log(salarywithtax) | ||
|
||
|
||
// task 3 | ||
|
||
// let fullname = prompt('write fullname') | ||
// let namearr = fullname.split(" ") | ||
// console.log(`Fullname is : ${ namearr[0]} ${ namearr[1].charAt(0)} ${namearr[2].charAt(0)}`) | ||
|
||
//task 4 | ||
|
||
// const count = prompt ("Emanetini count daxil edin") | ||
// const time = prompt ("Emanetini time daxil edin") | ||
// const faizdey = prompt ("Emanetini faiz daxil edin") | ||
// const faiz = (+time * +faizdey ) / 12 | ||
// const menfeet = (Number(count) * faiz) / 100 | ||
// console.log(`${time} aydan sonra emanet qazanc ${menfeer} azn olacaq `) | ||
// const il = prompt("il sayin daxil edin") | ||
// const vuruq = 12 | ||
// const menfeetIL = Number(count) * (1 + Number(time) / vuruq) * vuruq * il | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
//TASK 1 | ||
const num = prompt("Rəqəm daxil edin məsələn <<530.90>>"); | ||
const num1 = num.split('.'); | ||
console.log(`${num1[0] + " " + 'manat'} ${num1[1] + " " + 'qəpik'}`); | ||
|
||
//TASK 2 | ||
const price = prompt("əməkhaqqı məbləğini daxil edin"); | ||
const salary = price - (price * 13)/100; | ||
console.log(salary); | ||
|
||
//TASK 3 | ||
const fullName = prompt("Soyad,ad və ata adı daxil edin"); | ||
const name = fullName.split(" "); | ||
console.log(`${name[0]} ${name[1].slice(0,1)}.${name[2].slice(0,1)}.`); | ||
|
||
|
||
//TASK 4 | ||
const mebleg = prompt("Əmanətin Məbləğini daxil edin:"); | ||
const muddet = prompt("Əmanətin Müddətini daxil edin:"); | ||
const faizdey = prompt("Əmanətin faiz dərəcəsini daxil edin:"); | ||
const faiz = (+muddet * +faizdey) / 12; | ||
const menfeet = (Number(mebleg) * faiz) / 100; | ||
console.log(`${muddet} aydan sonra əmanət qazancınız ${menfeet} azn olacaq`); | ||
|
||
const il = prompt("İl sayını daxil edin:"); | ||
const vurug = 12; | ||
const menfeetIl = Number(mebleg) * (1 + Number(muddet) / vurug) * vurug * il; | ||
console.log(`Investisya gəliri : ${menfeetIl}`); |