Ecco i voti proposti per chi ha seguito la strada delle provette. Come sempre, se avete domande chiedete pure. Alcuni chiarimenti importanti:
Per darvi un esempio, ecco due codici estratti da un compito che il sistema ha individuato come copiato: Compito 1 *****BEGIN SUSPICIOUS SECTION***** int s = 0; for (int i = sequenza.length() - 3; i >= 0; i -= 2) { s += Integer.parseInt(sequenza.substring(i, i + 1)); } for (int i = sequenza.length() - 2; i > 0; i -= 2) { int pari = 2 * Integer.parseInt(sequenza.substring(i, i + 1)); if (pari > 9) { s += (pari - 9); } else { s += pari; } } int c = Integer.parseInt(sequenza.substring(sequenza.length() - 1, sequenza.length())); return (c == (s * 9) % 10); } *****END SUSPICIOUS SECTION***** Compito 2 *****BEGIN SUSPICIOUS SECTION***** int s = 0; for (int i = codice.length() - 3; i >= 0; i -= 2) { s += Integer.parseInt(codice.substring(i, i + 1)); } for (int i = codice.length() - 2; i > 0; i -= 2) { int pari = 2 * Integer.parseInt(codice.substring(i, i + 1)); if (pari > 9) { s += (pari - 9); } else { s += pari; } } int c = Integer.parseInt(codice.substring(codice.length() - 1, codice.length())); return (c == (s * 9) % 10); } *****END SUSPICIOUS SECTION***** Ed ecco i risultati! |
Fondamenti di Informatica > News >