SlideShare a Scribd company logo
1 of 3
TUGAS STRUKTUR DATA
NAMA

: NUR SUMIATI

KELAS/SMT

: KARY/2

1.

program konversi_detik_ke_jam;
uses wincrt;
var
detik:real;
jam:real;
begin
write('masukkan detik=');
readln(detik);
jam:=detik/3600;
writeln('jam=',jam:10:2);
end.
2.

uses wincrt;
type jam =record
hh:longint;
mm:longint;
ss:longint;
end;
var
J :jam;
totaldetik :longint;
begin
write ('Jam : '); readln (J.hh);
write ('menit : '); readln (J.mm);
write ('detik : '); readln (J.ss);
totaldetik:= (J.hh*3600) + (J.mm*60) + J.ss;
write ('totaldetik= ', totaldetik);
end.
3.

Program Koordinat_Titik_Tengah;
uses wincrt;
var
x1, x2, y1, y2, a, b, titik_tengah_x, titik_tengah_y:real;
begin
write('masukkan nilai x1 =');readln(x1);
write('masukkan nilai x2 =');readln(x2);
write('masukkan nilai y1 =');readln(y1);
write('masukkan nilai y2 =');readln(y2);
titik_tengah_x:=((x1+x2)/2);
titik_tengah_y:=((y1+y2)/2);
writeln('titik_tengah_x=',titik_tengah_x:10:2);
writeln('titik_tengah_y=',titik_tengah_y:10:2);
end.

More Related Content

Viewers also liked

Young and beautiful
Young and beautifulYoung and beautiful
Young and beautifulShan3009
 
O que é movecash para dashboard
O que é movecash para dashboardO que é movecash para dashboard
O que é movecash para dashboardMovecash
 
Decreto 59967 2013 amplia prazo de recolhimento do icms sp
Decreto 59967 2013 amplia prazo de recolhimento do icms spDecreto 59967 2013 amplia prazo de recolhimento do icms sp
Decreto 59967 2013 amplia prazo de recolhimento do icms spCelso Daví Rodrigues
 
Solicitud Campamento El Joven y la Crisis Final 2016
Solicitud Campamento El Joven y la Crisis Final 2016Solicitud Campamento El Joven y la Crisis Final 2016
Solicitud Campamento El Joven y la Crisis Final 2016LiderazgoJAAPO
 
11.2. comentario de texto. la constitución de cádiz. curso 2013-14
11.2.  comentario de texto. la constitución de cádiz. curso 2013-1411.2.  comentario de texto. la constitución de cádiz. curso 2013-14
11.2. comentario de texto. la constitución de cádiz. curso 2013-14jesus ortiz
 
Robotica - cinematica
Robotica - cinematicaRobotica - cinematica
Robotica - cinematicaMarc Llanos
 

Viewers also liked (12)

διαγωνισμα α τετραμηνου
διαγωνισμα α τετραμηνουδιαγωνισμα α τετραμηνου
διαγωνισμα α τετραμηνου
 
Young and beautiful
Young and beautifulYoung and beautiful
Young and beautiful
 
O que é movecash para dashboard
O que é movecash para dashboardO que é movecash para dashboard
O que é movecash para dashboard
 
Curriculum&space hazal&cem&ezgi 12_nov
Curriculum&space hazal&cem&ezgi 12_novCurriculum&space hazal&cem&ezgi 12_nov
Curriculum&space hazal&cem&ezgi 12_nov
 
Marc Taeger
Marc TaegerMarc Taeger
Marc Taeger
 
Ficha#4
Ficha#4Ficha#4
Ficha#4
 
Decreto 59967 2013 amplia prazo de recolhimento do icms sp
Decreto 59967 2013 amplia prazo de recolhimento do icms spDecreto 59967 2013 amplia prazo de recolhimento do icms sp
Decreto 59967 2013 amplia prazo de recolhimento do icms sp
 
Solicitud Campamento El Joven y la Crisis Final 2016
Solicitud Campamento El Joven y la Crisis Final 2016Solicitud Campamento El Joven y la Crisis Final 2016
Solicitud Campamento El Joven y la Crisis Final 2016
 
11.2. comentario de texto. la constitución de cádiz. curso 2013-14
11.2.  comentario de texto. la constitución de cádiz. curso 2013-1411.2.  comentario de texto. la constitución de cádiz. curso 2013-14
11.2. comentario de texto. la constitución de cádiz. curso 2013-14
 
Robotica - cinematica
Robotica - cinematicaRobotica - cinematica
Robotica - cinematica
 
Xampp Portatil
Xampp PortatilXampp Portatil
Xampp Portatil
 
FORUM PORTUGAL ENERGY POWER: "Aproveitamento de Biomassa na Região Centro"
FORUM PORTUGAL ENERGY POWER: "Aproveitamento de Biomassa na Região Centro"FORUM PORTUGAL ENERGY POWER: "Aproveitamento de Biomassa na Região Centro"
FORUM PORTUGAL ENERGY POWER: "Aproveitamento de Biomassa na Região Centro"
 

Similar to TUGAS STRUKTUR DATA NAMA NUR SUMIATI KELAS/SMT KARY/2

Similar to TUGAS STRUKTUR DATA NAMA NUR SUMIATI KELAS/SMT KARY/2 (20)

Kumpulan contoh-program-pascal-121209073936-phpapp01
Kumpulan contoh-program-pascal-121209073936-phpapp01Kumpulan contoh-program-pascal-121209073936-phpapp01
Kumpulan contoh-program-pascal-121209073936-phpapp01
 
Kumpulan contoh-program-pascal
Kumpulan contoh-program-pascalKumpulan contoh-program-pascal
Kumpulan contoh-program-pascal
 
Kumpulan program pascal
Kumpulan program pascalKumpulan program pascal
Kumpulan program pascal
 
I os 06
I os 06I os 06
I os 06
 
week-3x
week-3xweek-3x
week-3x
 
Elastic response pseudo spectrum in c programming
Elastic response pseudo spectrum in c programmingElastic response pseudo spectrum in c programming
Elastic response pseudo spectrum in c programming
 
Timers in Unix/Linux
Timers in Unix/LinuxTimers in Unix/Linux
Timers in Unix/Linux
 
Modify the Time classattached to be able to work with Date.pdf
Modify the Time classattached to be able to work with Date.pdfModify the Time classattached to be able to work with Date.pdf
Modify the Time classattached to be able to work with Date.pdf
 
Systemprogramming Lab Manual
Systemprogramming Lab ManualSystemprogramming Lab Manual
Systemprogramming Lab Manual
 
2Bytesprog2 course_2014_c1_sets
2Bytesprog2 course_2014_c1_sets2Bytesprog2 course_2014_c1_sets
2Bytesprog2 course_2014_c1_sets
 
2Bytesprog2 course_2014_c2_records
2Bytesprog2 course_2014_c2_records2Bytesprog2 course_2014_c2_records
2Bytesprog2 course_2014_c2_records
 
Sysprog 12
Sysprog 12Sysprog 12
Sysprog 12
 
Sysprog 12
Sysprog 12Sysprog 12
Sysprog 12
 
C PROGRAMS
C PROGRAMSC PROGRAMS
C PROGRAMS
 
Oop assignment 02
Oop assignment 02Oop assignment 02
Oop assignment 02
 
Lab 1 izz
Lab 1 izzLab 1 izz
Lab 1 izz
 
Functions
FunctionsFunctions
Functions
 
C++ L07-Struct
C++ L07-StructC++ L07-Struct
C++ L07-Struct
 
Final Design Project - Memo (with GUI)
Final Design Project - Memo (with GUI)Final Design Project - Memo (with GUI)
Final Design Project - Memo (with GUI)
 
C lab programs
C lab programsC lab programs
C lab programs
 

Recently uploaded

ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomnelietumpap1
 
Q4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxQ4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxnelietumpap1
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYKayeClaireEstoconing
 

Recently uploaded (20)

ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
 
Q4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxQ4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptx
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptxYOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
 

TUGAS STRUKTUR DATA NAMA NUR SUMIATI KELAS/SMT KARY/2

  • 1. TUGAS STRUKTUR DATA NAMA : NUR SUMIATI KELAS/SMT : KARY/2 1. program konversi_detik_ke_jam; uses wincrt; var detik:real; jam:real; begin write('masukkan detik='); readln(detik); jam:=detik/3600; writeln('jam=',jam:10:2); end.
  • 2. 2. uses wincrt; type jam =record hh:longint; mm:longint; ss:longint; end; var J :jam; totaldetik :longint; begin write ('Jam : '); readln (J.hh); write ('menit : '); readln (J.mm); write ('detik : '); readln (J.ss); totaldetik:= (J.hh*3600) + (J.mm*60) + J.ss; write ('totaldetik= ', totaldetik); end.
  • 3. 3. Program Koordinat_Titik_Tengah; uses wincrt; var x1, x2, y1, y2, a, b, titik_tengah_x, titik_tengah_y:real; begin write('masukkan nilai x1 =');readln(x1); write('masukkan nilai x2 =');readln(x2); write('masukkan nilai y1 =');readln(y1); write('masukkan nilai y2 =');readln(y2); titik_tengah_x:=((x1+x2)/2); titik_tengah_y:=((y1+y2)/2); writeln('titik_tengah_x=',titik_tengah_x:10:2); writeln('titik_tengah_y=',titik_tengah_y:10:2); end.