NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

private TextView tvJudul;
private TextView tvNama;
private TextView tvNim;
private TextView tvProdi;
private TextView tvAbsen;
private TextView tvTugas;
private TextView tvUTS;
private TextView tvUAS;
private TextView tvTNIM;
private TextView tvTProdi;
private TextView tvTAngka;
private TextView tvTHuruf;
private TextView tvTStatus;
private TextView tvTNama;
private TextView tvHNama;
private TextView tvHNim;
private TextView tvHProdi;
private TextView tvHAngka;
private TextView tvHHuruf;
private TextView tvHStatus;
private EditText edNama;
private EditText edNim;
private EditText edAbsen;
private EditText edTugas;
private EditText edUTS;
private EditText edUAS;
private RadioGroup rgProdi;
private Button bBersihkan;
private Button bHitung;

(EditText) findViewById (R.id.

tvJudul = (TextView) findViewById (R.id.tvJudul);
tvNama = (TextView) findViewById (R.id.tvNama);
tvNim = (TextView) findViewById (R.id.tvNim);
tvProdi = (TextView) findViewById (R.id.tvProdi);
tvAbsen = (TextView) findViewById (R.id.tvAbsen);
tvTugas = (TextView) findViewById (R.id.tvTugas);
tvUTS = (TextView) findViewById (R.id.tvUTS);
tvUAS = (TextView) findViewById (R.id.tvUAS);
tvTNIM = (TextView) findViewById (R.id.tvTNIM);
tvTProdi = (TextView) findViewById (R.id.tvTProdi);
tvTAngka = (TextView) findViewById (R.id.tvTAngka);
tvTHuruf = (TextView) findViewById (R.id.tvTHuruf);
tvTStatus = (TextView) findViewById (R.id.tvTStatus);
tvTNama = (TextView) findViewById (R.id.tvTNama);
tvHNama = (TextView) findViewById (R.id.tvHNama);
tvHNim = (TextView) findViewById (R.id.tvHNim);
tvHProdi = (TextView) findViewById (R.id.tvHProdi);
tvHAngka = (TextView) findViewById (R.id.tvHAngka);
tvHHuruf = (TextView) findViewById (R.id.tvHHuruf);
tvHStatus = (TextView) findViewById (R.id.tvHStatus);
edNama = (EditText) findViewById (R.id.ednama);
edNim = (EditText) findViewById (R.id.edNim);
edAbsen = (EditText) findViewById (R.id.edAbsen);
edTugas = (EditText) findViewById (R.id.edTugas);
edUTS = (EditText) findViewById (R.id.edUTS);
edUAS = (EditText) findViewById (R.id.edUAS);
rgProdi = (RadioGroup) findViewById (R.id.rgProdi);
bBersihkan = (Button) findViewById (R.id.bBersihkan);
bBersihkan.setOnClickListener(new reset());
bHitung = (Button) findViewById (R.id.bHitung);


public void bKlikHitung(View v) {

int idPil = rgProdi.getCheckedRadioButtonId();

String prodi;
if (idPil==R.id.rbSI) {
prodi = "SI";
} else if (idPil==R.id.rbTI){
prodi = "Informatika";
} else {
prodi = "Tidak ada yg dipilih";
}

double absen = Double.parsedouble(edAbsen.getText().toString());
double tugas = Double.parsedouble(edTugas.getText().toString());
double uts = Double.parsedouble(edUTS.getText().toString());
double uas = Double.parsedouble(edUAS.getText().toString());

double hasil = (0 * absen) + (0 * tugas) + (0 * uts) + (0 * uas);

try{
if(hasil>=80){
keterangan = "A";
}
elseif(hasil>70) && (hasil<80){
keterangan = "B";
}
elseif(hasil>60) && (hasil<70){
keterangan = "C";
}
else{
keterangan ="Tidak lulus";
}


tvHNama.setText(tvNama.getText());
tvHNim.setText(tvNim.getText());
tvHProdi.setText(prodi);
tvHAngka.setText(String.valueOf(hasil));
tvHHuruf.setText(String.valueOf(keterangan));
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.