SlideShare a Scribd company logo
Tugas II / Algoritma dan Pemrograman Dasar 1
TUGAS 2 !
Nama : Zahrotul Fitrya
Prodi : Teknik Informatika – B
Semester : 1 ( 2015 – 2016)
Mata Kuliah : Algoritma Dan Pemrograman Dasar
PROGRAM PERHITUNGAN NILAI RATA-RATA SISWA
SINTAX :
#include <iostream.h>
#include <conio.h>
#include <windows.h>
int main ()
{
char nama [30];
float nilai1, nilai2, nilai3, rata;
system ("color 1e") ;
cout<<"n" ;
cout<<" UNIVERSITAS MERDEKA PASURUANn" ;
cout<<" FAKULTAS TEKNOLOGI INFORMASIn" ;
cout<<"n" ;
cout<<"n" ;
cout<<"n" ;
cout<<"Nama : Zahrotul Fitryan" ;
cout<<"Prodi : Teknik Informatika - Bn" ;
cout<<"Semester : 1 ( 2015-2016)n" ;
cout<<"n" ;
cout<<"n" ;
cout<<"n" ;
cout<<" PROGRAM PERHITUNGAN NILAI RATA-RATA SISWAn" ;
cout<<"n" ;
cout<<"n" ;
cout<<"Masukkan Nama Siswa : ";
cin>>nama;
cout<<"n" ;
cout<<"Masukkan Nilai Pertandingan 1 (0-100) : ";
cin>>nilai1;
cout<<"n" ;
cout<<"Masukkan Nilai Pertandingan 2 (0-100) : ";
cin>>nilai2;
cout<<"n" ;
cout<<"Masukkan Nilai Pertandingan 3 (0-100) : ";
cin>>nilai3;
cout<<"n" ;
cout<<"n" ;
Tugas II / Algoritma dan Pemrograman Dasar 2
cout<<"=======================================================================nn" ;
rata = (nilai1+nilai2+nilai3) / 3;
cout<<"Siswa Yang Bernama : "<<nama<<endl ;
cout<<"n";
cout<<"Memperoleh nilai rata-rata : "<<rata; cout<<" dari hasil perlombaan yang diikutinyann";
cout<<"Hadiah yang didapat adalah : ";
if(rata>=85)
{
cout<<"Seperangkat Komputer P4nnnnnnnn";
}
else
if (rata>=70)
{
cout<<"Seperangkat Uang Sebesar Rp.500.000.,nnnnnnnn";
}
else
{
cout<<"Mendapat Hadiah Hiburannnnnnnnn";
}
return 0;
}
PRINT SCREEN :
Tugas II / Algoritma dan Pemrograman Dasar 3
PROGRAM PERHITUNGAN NILAI AKHIR SISWA
SINTAX :
#include <iostream.h>
#include <conio.h>
#include <windows.h>
int main ()
{
char nama[30];
double NK, NT, NU, NA, N1, N2, N3;
system ("color 4e") ;
cout<<"n" ;
cout<<" UNIVERSITAS MERDEKA PASURUANn" ;
cout<<" FAKULTAS TEKNOLOGI INFORMASIn" ;
cout<<"n" ;
cout<<"n" ;
cout<<"n" ;
cout<<"Nama : Zahrotul Fitryan" ;
cout<<"Prodi : Teknik Informatika - Bn" ;
cout<<"Semester : 1 ( 2015-2016)n" ;
cout<<"n" ;
cout<<"n" ;
cout<<"n" ;
cout<<" PROGRAM PERHITUNGAN NILAI AKHIR SISWAn" ;
cout<<"n" ;
cout<<"n" ;
cout<<"Masukkan Nama Siswa : ";
cin>>nama;
cout<<"n" ;
cout<<"Masukkan Nilai Keaktifan (0-100) : ";
cin>>NK;
cout<<"n" ;
cout<<"Masukkan Nilai Tugas (0-100) : ";
cin>>NT;
cout<<"n" ;
cout<<"Masukkan Nilai Ujian (0-100) : ";
cin>>NU;
cout<<"n" ;
cout<<"n" ;
N1=NK*0.2;
N2=NT*0.3;
N3=NU*0.5;
NA=N1+N2+N3;
cout<<"======================================================================
=nn" ;
Tugas II / Algoritma dan Pemrograman Dasar 4
cout<<"Siswa Yang Bernama : "<<nama<<endl ;
cout<<"n";
cout<<"Dengan Nilai Persentasi Yang Di Hasilkan : n";
cout<<"Nilai Keaktifan * 20% : "<<N1;
cout<<"nNilai Keaktifan * 30% : "<<N2;
cout<<"nNilai Keaktifan * 50% : "<<N3;
cout<<"nnnJadi Siswa Yang Bernama " <<nama; cout<<" Memperoleh Nilai AKhir Sebesar "
<<NA;
cout<<"n";
cout<<"Grade Nilai Yang Didapat Adalah ";
if(NU>=80)
{
cout<<"Mendapat Grade Annnnnnnn";
}
else
if (NU>=70)
{
cout<<"Mendapat Grade Bnnnnnnnn";
}
else
if (NU>=59)
{
cout<<"Mendapat Grade Cnnnnnnnn";
}
else
if (NU>=50)
{
cout<<"Mendapat Grade Dnnnnnnnn";
}
else
{
cout<<"Mendapat Grade Ennnnnnnn";
}
return 0;
}
Tugas II / Algoritma dan Pemrograman Dasar 5
PRINT SCREN :

More Related Content

Similar to C++ Program nilai akhir dan rata rata siswa ( zahrotul fitrya ti-b )

Durgesh
DurgeshDurgesh
Durgesh
dkbossverma
 
Document of Turbo ++ project|| Railway Reservation System project
Document of Turbo ++  project|| Railway Reservation System projectDocument of Turbo ++  project|| Railway Reservation System project
Document of Turbo ++ project|| Railway Reservation System project
Jiangxi University of Science and Technology (江西理工大学)
 
computer science project class 12th
computer science project class 12thcomputer science project class 12th
computer science project class 12th
Nitesh Kushwaha
 
Laporan teknik komputas Konversi Bilangan
Laporan teknik komputas Konversi BilanganLaporan teknik komputas Konversi Bilangan
Laporan teknik komputas Konversi Bilangan
Muhammad Hafizh Annur
 
CV-Agus Sulistijawan-2016
CV-Agus Sulistijawan-2016CV-Agus Sulistijawan-2016
CV-Agus Sulistijawan-2016
21awan
 
Railway reservation(c++ project)
Railway reservation(c++ project)Railway reservation(c++ project)
Railway reservation(c++ project)
Debashis Rath
 
Computer science investigatory project- computer shop
Computer science investigatory project- computer shopComputer science investigatory project- computer shop
Computer science investigatory project- computer shop
Yash Panwar
 
Railway reservation(c++ project)
Railway reservation(c++ project)Railway reservation(c++ project)
Railway reservation(c++ project)
Debashis Rath
 
Computer Practical XII
Computer Practical XIIComputer Practical XII
Computer Practical XII
Ûťţåm Ğűpţä
 
C s investigatory project on telephone directory
C s  investigatory project on telephone directoryC s  investigatory project on telephone directory
C s investigatory project on telephone directory
SHUBHAM YADAV
 
computer science project
computer science projectcomputer science project
computer science project
Roshan Bastia
 
I PUC CS Lab_programs
I PUC CS Lab_programsI PUC CS Lab_programs
I PUC CS Lab_programs
Prof. Dr. K. Adisesha
 
Movie Ticket Booking Website Project Presentation
Movie Ticket Booking Website Project PresentationMovie Ticket Booking Website Project Presentation
Movie Ticket Booking Website Project Presentation
Avinandan Ganguly
 
Real Time Analytics with Apache Cassandra - Cassandra Day Berlin
Real Time Analytics with Apache Cassandra - Cassandra Day BerlinReal Time Analytics with Apache Cassandra - Cassandra Day Berlin
Real Time Analytics with Apache Cassandra - Cassandra Day Berlin
Guido Schmutz
 
Computer networks and Information security 16SCN16
Computer networks and Information security 16SCN16Computer networks and Information security 16SCN16
Computer networks and Information security 16SCN16
Ayisha M Kalburgi
 
Writing Maintainable Code
Writing Maintainable Code Writing Maintainable Code
Writing Maintainable Code
Tushar Sharma
 
internship presentation 1.pptx
internship presentation 1.pptxinternship presentation 1.pptx
internship presentation 1.pptx
ShobhaByadagi
 
Assignement of c++
Assignement of c++Assignement of c++
Assignement of c++
Syed Umair
 
Report Card making BY Mitul Patel
Report Card making BY Mitul PatelReport Card making BY Mitul Patel
Report Card making BY Mitul Patel
Mitul Patel
 
cbse 12 computer science IP
cbse 12 computer science IPcbse 12 computer science IP
cbse 12 computer science IP
D. j Vicky
 

Similar to C++ Program nilai akhir dan rata rata siswa ( zahrotul fitrya ti-b ) (20)

Durgesh
DurgeshDurgesh
Durgesh
 
Document of Turbo ++ project|| Railway Reservation System project
Document of Turbo ++  project|| Railway Reservation System projectDocument of Turbo ++  project|| Railway Reservation System project
Document of Turbo ++ project|| Railway Reservation System project
 
computer science project class 12th
computer science project class 12thcomputer science project class 12th
computer science project class 12th
 
Laporan teknik komputas Konversi Bilangan
Laporan teknik komputas Konversi BilanganLaporan teknik komputas Konversi Bilangan
Laporan teknik komputas Konversi Bilangan
 
CV-Agus Sulistijawan-2016
CV-Agus Sulistijawan-2016CV-Agus Sulistijawan-2016
CV-Agus Sulistijawan-2016
 
Railway reservation(c++ project)
Railway reservation(c++ project)Railway reservation(c++ project)
Railway reservation(c++ project)
 
Computer science investigatory project- computer shop
Computer science investigatory project- computer shopComputer science investigatory project- computer shop
Computer science investigatory project- computer shop
 
Railway reservation(c++ project)
Railway reservation(c++ project)Railway reservation(c++ project)
Railway reservation(c++ project)
 
Computer Practical XII
Computer Practical XIIComputer Practical XII
Computer Practical XII
 
C s investigatory project on telephone directory
C s  investigatory project on telephone directoryC s  investigatory project on telephone directory
C s investigatory project on telephone directory
 
computer science project
computer science projectcomputer science project
computer science project
 
I PUC CS Lab_programs
I PUC CS Lab_programsI PUC CS Lab_programs
I PUC CS Lab_programs
 
Movie Ticket Booking Website Project Presentation
Movie Ticket Booking Website Project PresentationMovie Ticket Booking Website Project Presentation
Movie Ticket Booking Website Project Presentation
 
Real Time Analytics with Apache Cassandra - Cassandra Day Berlin
Real Time Analytics with Apache Cassandra - Cassandra Day BerlinReal Time Analytics with Apache Cassandra - Cassandra Day Berlin
Real Time Analytics with Apache Cassandra - Cassandra Day Berlin
 
Computer networks and Information security 16SCN16
Computer networks and Information security 16SCN16Computer networks and Information security 16SCN16
Computer networks and Information security 16SCN16
 
Writing Maintainable Code
Writing Maintainable Code Writing Maintainable Code
Writing Maintainable Code
 
internship presentation 1.pptx
internship presentation 1.pptxinternship presentation 1.pptx
internship presentation 1.pptx
 
Assignement of c++
Assignement of c++Assignement of c++
Assignement of c++
 
Report Card making BY Mitul Patel
Report Card making BY Mitul PatelReport Card making BY Mitul Patel
Report Card making BY Mitul Patel
 
cbse 12 computer science IP
cbse 12 computer science IPcbse 12 computer science IP
cbse 12 computer science IP
 

Recently uploaded

Null Bangalore | Pentesters Approach to AWS IAM
Null Bangalore | Pentesters Approach to AWS IAMNull Bangalore | Pentesters Approach to AWS IAM
Null Bangalore | Pentesters Approach to AWS IAM
Divyanshu
 
Computational Engineering IITH Presentation
Computational Engineering IITH PresentationComputational Engineering IITH Presentation
Computational Engineering IITH Presentation
co23btech11018
 
学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样
171ticu
 
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
IJECEIAES
 
Embedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoringEmbedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoring
IJECEIAES
 
4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf
4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf
4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf
Gino153088
 
Digital Twins Computer Networking Paper Presentation.pptx
Digital Twins Computer Networking Paper Presentation.pptxDigital Twins Computer Networking Paper Presentation.pptx
Digital Twins Computer Networking Paper Presentation.pptx
aryanpankaj78
 
SCALING OF MOS CIRCUITS m .pptx
SCALING OF MOS CIRCUITS m                 .pptxSCALING OF MOS CIRCUITS m                 .pptx
SCALING OF MOS CIRCUITS m .pptx
harshapolam10
 
Generative AI Use cases applications solutions and implementation.pdf
Generative AI Use cases applications solutions and implementation.pdfGenerative AI Use cases applications solutions and implementation.pdf
Generative AI Use cases applications solutions and implementation.pdf
mahaffeycheryld
 
132/33KV substation case study Presentation
132/33KV substation case study Presentation132/33KV substation case study Presentation
132/33KV substation case study Presentation
kandramariana6
 
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
ecqow
 
LLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by Anant
LLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by AnantLLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by Anant
LLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by Anant
Anant Corporation
 
Mechanical Engineering on AAI Summer Training Report-003.pdf
Mechanical Engineering on AAI Summer Training Report-003.pdfMechanical Engineering on AAI Summer Training Report-003.pdf
Mechanical Engineering on AAI Summer Training Report-003.pdf
21UME003TUSHARDEB
 
Gas agency management system project report.pdf
Gas agency management system project report.pdfGas agency management system project report.pdf
Gas agency management system project report.pdf
Kamal Acharya
 
morris_worm_intro_and_source_code_analysis_.pdf
morris_worm_intro_and_source_code_analysis_.pdfmorris_worm_intro_and_source_code_analysis_.pdf
morris_worm_intro_and_source_code_analysis_.pdf
ycwu0509
 
Properties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptxProperties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptx
MDSABBIROJJAMANPAYEL
 
一比一原版(uofo毕业证书)美国俄勒冈大学毕业证如何办理
一比一原版(uofo毕业证书)美国俄勒冈大学毕业证如何办理一比一原版(uofo毕业证书)美国俄勒冈大学毕业证如何办理
一比一原版(uofo毕业证书)美国俄勒冈大学毕业证如何办理
upoux
 
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
ydzowc
 
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
IJECEIAES
 
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODELDEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
ijaia
 

Recently uploaded (20)

Null Bangalore | Pentesters Approach to AWS IAM
Null Bangalore | Pentesters Approach to AWS IAMNull Bangalore | Pentesters Approach to AWS IAM
Null Bangalore | Pentesters Approach to AWS IAM
 
Computational Engineering IITH Presentation
Computational Engineering IITH PresentationComputational Engineering IITH Presentation
Computational Engineering IITH Presentation
 
学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样
 
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
 
Embedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoringEmbedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoring
 
4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf
4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf
4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf
 
Digital Twins Computer Networking Paper Presentation.pptx
Digital Twins Computer Networking Paper Presentation.pptxDigital Twins Computer Networking Paper Presentation.pptx
Digital Twins Computer Networking Paper Presentation.pptx
 
SCALING OF MOS CIRCUITS m .pptx
SCALING OF MOS CIRCUITS m                 .pptxSCALING OF MOS CIRCUITS m                 .pptx
SCALING OF MOS CIRCUITS m .pptx
 
Generative AI Use cases applications solutions and implementation.pdf
Generative AI Use cases applications solutions and implementation.pdfGenerative AI Use cases applications solutions and implementation.pdf
Generative AI Use cases applications solutions and implementation.pdf
 
132/33KV substation case study Presentation
132/33KV substation case study Presentation132/33KV substation case study Presentation
132/33KV substation case study Presentation
 
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
 
LLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by Anant
LLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by AnantLLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by Anant
LLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by Anant
 
Mechanical Engineering on AAI Summer Training Report-003.pdf
Mechanical Engineering on AAI Summer Training Report-003.pdfMechanical Engineering on AAI Summer Training Report-003.pdf
Mechanical Engineering on AAI Summer Training Report-003.pdf
 
Gas agency management system project report.pdf
Gas agency management system project report.pdfGas agency management system project report.pdf
Gas agency management system project report.pdf
 
morris_worm_intro_and_source_code_analysis_.pdf
morris_worm_intro_and_source_code_analysis_.pdfmorris_worm_intro_and_source_code_analysis_.pdf
morris_worm_intro_and_source_code_analysis_.pdf
 
Properties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptxProperties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptx
 
一比一原版(uofo毕业证书)美国俄勒冈大学毕业证如何办理
一比一原版(uofo毕业证书)美国俄勒冈大学毕业证如何办理一比一原版(uofo毕业证书)美国俄勒冈大学毕业证如何办理
一比一原版(uofo毕业证书)美国俄勒冈大学毕业证如何办理
 
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
 
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
 
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODELDEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
 

C++ Program nilai akhir dan rata rata siswa ( zahrotul fitrya ti-b )

  • 1. Tugas II / Algoritma dan Pemrograman Dasar 1 TUGAS 2 ! Nama : Zahrotul Fitrya Prodi : Teknik Informatika – B Semester : 1 ( 2015 – 2016) Mata Kuliah : Algoritma Dan Pemrograman Dasar PROGRAM PERHITUNGAN NILAI RATA-RATA SISWA SINTAX : #include <iostream.h> #include <conio.h> #include <windows.h> int main () { char nama [30]; float nilai1, nilai2, nilai3, rata; system ("color 1e") ; cout<<"n" ; cout<<" UNIVERSITAS MERDEKA PASURUANn" ; cout<<" FAKULTAS TEKNOLOGI INFORMASIn" ; cout<<"n" ; cout<<"n" ; cout<<"n" ; cout<<"Nama : Zahrotul Fitryan" ; cout<<"Prodi : Teknik Informatika - Bn" ; cout<<"Semester : 1 ( 2015-2016)n" ; cout<<"n" ; cout<<"n" ; cout<<"n" ; cout<<" PROGRAM PERHITUNGAN NILAI RATA-RATA SISWAn" ; cout<<"n" ; cout<<"n" ; cout<<"Masukkan Nama Siswa : "; cin>>nama; cout<<"n" ; cout<<"Masukkan Nilai Pertandingan 1 (0-100) : "; cin>>nilai1; cout<<"n" ; cout<<"Masukkan Nilai Pertandingan 2 (0-100) : "; cin>>nilai2; cout<<"n" ; cout<<"Masukkan Nilai Pertandingan 3 (0-100) : "; cin>>nilai3; cout<<"n" ; cout<<"n" ;
  • 2. Tugas II / Algoritma dan Pemrograman Dasar 2 cout<<"=======================================================================nn" ; rata = (nilai1+nilai2+nilai3) / 3; cout<<"Siswa Yang Bernama : "<<nama<<endl ; cout<<"n"; cout<<"Memperoleh nilai rata-rata : "<<rata; cout<<" dari hasil perlombaan yang diikutinyann"; cout<<"Hadiah yang didapat adalah : "; if(rata>=85) { cout<<"Seperangkat Komputer P4nnnnnnnn"; } else if (rata>=70) { cout<<"Seperangkat Uang Sebesar Rp.500.000.,nnnnnnnn"; } else { cout<<"Mendapat Hadiah Hiburannnnnnnnn"; } return 0; } PRINT SCREEN :
  • 3. Tugas II / Algoritma dan Pemrograman Dasar 3 PROGRAM PERHITUNGAN NILAI AKHIR SISWA SINTAX : #include <iostream.h> #include <conio.h> #include <windows.h> int main () { char nama[30]; double NK, NT, NU, NA, N1, N2, N3; system ("color 4e") ; cout<<"n" ; cout<<" UNIVERSITAS MERDEKA PASURUANn" ; cout<<" FAKULTAS TEKNOLOGI INFORMASIn" ; cout<<"n" ; cout<<"n" ; cout<<"n" ; cout<<"Nama : Zahrotul Fitryan" ; cout<<"Prodi : Teknik Informatika - Bn" ; cout<<"Semester : 1 ( 2015-2016)n" ; cout<<"n" ; cout<<"n" ; cout<<"n" ; cout<<" PROGRAM PERHITUNGAN NILAI AKHIR SISWAn" ; cout<<"n" ; cout<<"n" ; cout<<"Masukkan Nama Siswa : "; cin>>nama; cout<<"n" ; cout<<"Masukkan Nilai Keaktifan (0-100) : "; cin>>NK; cout<<"n" ; cout<<"Masukkan Nilai Tugas (0-100) : "; cin>>NT; cout<<"n" ; cout<<"Masukkan Nilai Ujian (0-100) : "; cin>>NU; cout<<"n" ; cout<<"n" ; N1=NK*0.2; N2=NT*0.3; N3=NU*0.5; NA=N1+N2+N3; cout<<"====================================================================== =nn" ;
  • 4. Tugas II / Algoritma dan Pemrograman Dasar 4 cout<<"Siswa Yang Bernama : "<<nama<<endl ; cout<<"n"; cout<<"Dengan Nilai Persentasi Yang Di Hasilkan : n"; cout<<"Nilai Keaktifan * 20% : "<<N1; cout<<"nNilai Keaktifan * 30% : "<<N2; cout<<"nNilai Keaktifan * 50% : "<<N3; cout<<"nnnJadi Siswa Yang Bernama " <<nama; cout<<" Memperoleh Nilai AKhir Sebesar " <<NA; cout<<"n"; cout<<"Grade Nilai Yang Didapat Adalah "; if(NU>=80) { cout<<"Mendapat Grade Annnnnnnn"; } else if (NU>=70) { cout<<"Mendapat Grade Bnnnnnnnn"; } else if (NU>=59) { cout<<"Mendapat Grade Cnnnnnnnn"; } else if (NU>=50) { cout<<"Mendapat Grade Dnnnnnnnn"; } else { cout<<"Mendapat Grade Ennnnnnnn"; } return 0; }
  • 5. Tugas II / Algoritma dan Pemrograman Dasar 5 PRINT SCREN :