0% found this document useful (0 votes)
28 views

Program Pascal (Menghitung Nilai Semester Mahasiswa)

This Pascal program calculates student semester grades. It requests student name, student ID number, study program, semester, course name as input. It then requests scores for assignments, midterms, finals and calculates the final grade. The final grade is categorized into letter grades A through E based on predetermined score ranges, and a description is printed for each grade. The student's name, ID number, final score, letter grade and description are printed as output.

Uploaded by

AdiTia
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views

Program Pascal (Menghitung Nilai Semester Mahasiswa)

This Pascal program calculates student semester grades. It requests student name, student ID number, study program, semester, course name as input. It then requests scores for assignments, midterms, finals and calculates the final grade. The final grade is categorized into letter grades A through E based on predetermined score ranges, and a description is printed for each grade. The student's name, ID number, final score, letter grade and description are printed as output.

Uploaded by

AdiTia
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

Program pascal (menghitung nilai semester mahasiswa) Berikut merupakan contoh program pascal untuk menghitung Nilai Akhir

Mahasiswa dalam satu semester. ini sintaksnya: Program nilai_akhir_semester_mahasiswa_UPB; uses wincrt; var na s!nt!uts!uas!nakhir:real; npm!nm!prostudi!mk!grd!ket:string"#$%; grade!smtr:char; egin writeln&' Nilai Akhir (emester Mahasisiwa UPB '); writeln&'**************************************'); write &'Nama Mahasiswa write &'NPM write &'Program (tudi write &'(emester write &'Mata +uliah :');readln&nm); :');readln&npm); :');readln&prostudi); :');readln&smtr); :');readln&mk); :');readln&na s); :');readln&nt); :');readln&uts); :');readln&uas);

write &'masukan Nilai a sen write &'masukan Nilai ,ugas write &'masukan Nilai U,( write &'masukan Nilai UA(

nakhir:*&-..$/na s)0&-..$/nt)0&-.1$/uts)0&-.2/uas); i3 &nakhir 4* 5- ) and &nakhir 6* 77.77) then grade :* 'A' else i3 &nakhir 4* 8-) and &nakhir 6* 87.77) then grade :* 'B' else i3 &nakhir 4* 9-) and &nakhir 6* 97.77) then grade :* ':' else i3 &nakhir 4* $-) and &nakhir 6* $7.77) then

grade :* ';' else i3 &nakhir 4* 2-) and &nakhir 6* 27.77) then grade :* '<' else i3 &nakhir 4* 1-) and &nakhir 6* -) then grade :* '='; case grade o3 'A' : ket :* '>ulus (angat Memuaskan'; 'B' : ket :* '>ulus ;engan Baik'; ':' : ket :* '>ulus ;engan :ukup'; ';' : ket :* '?agal'; '<' : ket :* ',erkapar'; '=' : ket :* '+e laut a@ah'; end; writeln; writeln&'mahasiswa yang ernama :'!nm); writeln&'dengan npm :'!npm); :'!grade); writeln&'mendapatkan nilai akhir:'!nakhir:#:-); writeln&'dan gradenya adalah writeln&'keterangan writeln; writeln&'/////;eveloped By: Asep Aaenudin///////'); readln; donewincrt; end. :'!ket);

You might also like