SlideShare a Scribd company logo
1 of 5
Download to read offline
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 )

computer science project class 12th
computer science project class 12thcomputer science project class 12th
computer science project class 12thNitesh Kushwaha
 
Laporan teknik komputas Konversi Bilangan
Laporan teknik komputas Konversi BilanganLaporan teknik komputas Konversi Bilangan
Laporan teknik komputas Konversi BilanganMuhammad Hafizh Annur
 
CV-Agus Sulistijawan-2016
CV-Agus Sulistijawan-2016CV-Agus Sulistijawan-2016
CV-Agus Sulistijawan-201621awan
 
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 shopYash Panwar
 
Railway reservation(c++ project)
Railway reservation(c++ project)Railway reservation(c++ project)
Railway reservation(c++ project)Debashis Rath
 
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 directorySHUBHAM YADAV
 
computer science project
computer science projectcomputer science project
computer science projectRoshan Bastia
 
Movie Ticket Booking Website Project Presentation
Movie Ticket Booking Website Project PresentationMovie Ticket Booking Website Project Presentation
Movie Ticket Booking Website Project PresentationAvinandan 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 BerlinGuido Schmutz
 
Computer networks and Information security 16SCN16
Computer networks and Information security 16SCN16Computer networks and Information security 16SCN16
Computer networks and Information security 16SCN16Ayisha 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.pptxShobhaByadagi
 
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 PatelMitul Patel
 
cbse 12 computer science IP
cbse 12 computer science IPcbse 12 computer science IP
cbse 12 computer science IPD. 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

GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLEGEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLEselvakumar948
 
kiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal loadkiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal loadhamedmustafa094
 
AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsvanyagupta248
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueBhangaleSonal
 
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARHAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARKOUSTAV SARKAR
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptxJIT KUMAR GUPTA
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityMorshed Ahmed Rahath
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptDineshKumar4165
 
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...drmkjayanthikannan
 
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptxOrlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptxMuhammadAsimMuhammad6
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfJiananWang21
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VDineshKumar4165
 
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxHOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxSCMS School of Architecture
 
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdfAldoGarca30
 
PE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and propertiesPE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and propertiessarkmank1
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"mphochane1998
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startQuintin Balsdon
 
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Call Girls Mumbai
 

Recently uploaded (20)

GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLEGEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
kiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal loadkiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal load
 
AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech students
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARHAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna Municipality
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
 
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptxOrlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxHOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
 
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
 
PE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and propertiesPE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and properties
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
 

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 :