Erinevus lehekülje "ITI0011:harjutus 05" redaktsioonide vahel

Allikas: Kursused
Mine navigeerimisribale Mine otsikasti
(Ago teisaldas lehekülje ITI0011:harjutus 05 pealkirja ITI0011-2015:harjutus 05 alla)
 
1. rida: 1. rida:
#suuna [[ITI0011-2015:harjutus 05]]
+
Tähtaeg: 29. veebr - 1. märts 2016<br />
 +
Kaust git'is: EX05
 +
 
 +
== Ülesanne ==
 +
 
 +
Bob ja Alice on filmisõltlased. Nad võistlevad, kumb teab filmidest rohkem ning nõustusid mõlemad meelde jätma 20 populaarse filmi andmed - filmi nime, hinde, kirjelduse ja ilmumiskuupäeva. Kuna nad elavad paigas, kus Internet on katkendlik, siis laadivad nad filmide info alla ja salvestavad need hilisemaks lugemiseks. Ette on antud nimekiri, milles iga rida tähistab mõnda hiljutist filmi. Filmi iseloomustavad andmed on eraldatud püstkriipsu (''pipe'') märgiga "|". <br />
 +
Sinu ülesanne on andmed üksteisest eraldada ning uuesti trükkida paremas vormingus.
 +
 
 +
Näidissisend ühel real:
 +
 
 +
<pre>
 +
2016-02-09|Deadpool|Based upon Marvel Comics’ most unconventional anti-hero, DEADPOOL tells the origin story of former Special Forces operative turned mercenary Wade Wilson, who after being subjected to a rogue experiment that leaves him with accelerated healing powers, adopts the alter ego Deadpool. Armed with his new abilities and a dark, twisted sense of humor, Deadpool hunts down the man who nearly destroyed his life.|7.24
 +
</pre>
 +
 
 +
Parem vormindus:
 +
 
 +
<pre>
 +
Deadpool
 +
Release date: 09/02/2016
 +
Description: Based upon Marvel Comics’ most unconventional anti-hero, DEADPOOL tells the origin story of former Special Forces operative turned mercenary Wade Wilson, who after being subjected to a rogue experiment that leaves him with accelerated healing powers, adopts the alter ego Deadpool. Armed with his new abilities and a dark, twisted sense of humor, Deadpool hunts down the man who nearly destroyed his life.
 +
Average rating: 7.24
 +
</pre>
 +
 
 +
 
 +
Filmid tuleb sisse lugeda failist movies.txt rea haaval.
 +
 
 +
== Mall ==
 +
 
 +
javadoc'i (meetodite ja vajadusel ka muutujate kirjelduse) peate ise kirjutama.
 +
 
 +
<source lang="java">
 +
public class EX05 {
 +
    public static boolean readFile(String filename) {
 +
        return false;
 +
    }
 +
 
 +
    public static void writeFile(String filename) {
 +
 
 +
    }
 +
 
 +
    public static String getNicelyFormattedMove(String moveLine) {
 +
        return null;
 +
    }
 +
}
 +
</source>

Redaktsioon: 22. veebruar 2016, kell 07:54

Tähtaeg: 29. veebr - 1. märts 2016
Kaust git'is: EX05

Ülesanne

Bob ja Alice on filmisõltlased. Nad võistlevad, kumb teab filmidest rohkem ning nõustusid mõlemad meelde jätma 20 populaarse filmi andmed - filmi nime, hinde, kirjelduse ja ilmumiskuupäeva. Kuna nad elavad paigas, kus Internet on katkendlik, siis laadivad nad filmide info alla ja salvestavad need hilisemaks lugemiseks. Ette on antud nimekiri, milles iga rida tähistab mõnda hiljutist filmi. Filmi iseloomustavad andmed on eraldatud püstkriipsu (pipe) märgiga "|".
Sinu ülesanne on andmed üksteisest eraldada ning uuesti trükkida paremas vormingus.

Näidissisend ühel real:

2016-02-09|Deadpool|Based upon Marvel Comics’ most unconventional anti-hero, DEADPOOL tells the origin story of former Special Forces operative turned mercenary Wade Wilson, who after being subjected to a rogue experiment that leaves him with accelerated healing powers, adopts the alter ego Deadpool. Armed with his new abilities and a dark, twisted sense of humor, Deadpool hunts down the man who nearly destroyed his life.|7.24

Parem vormindus:

Deadpool
Release date: 09/02/2016
Description: Based upon Marvel Comics’ most unconventional anti-hero, DEADPOOL tells the origin story of former Special Forces operative turned mercenary Wade Wilson, who after being subjected to a rogue experiment that leaves him with accelerated healing powers, adopts the alter ego Deadpool. Armed with his new abilities and a dark, twisted sense of humor, Deadpool hunts down the man who nearly destroyed his life.
Average rating: 7.24


Filmid tuleb sisse lugeda failist movies.txt rea haaval.

Mall

javadoc'i (meetodite ja vajadusel ka muutujate kirjelduse) peate ise kirjutama.

<source lang="java"> public class EX05 {

   public static boolean readFile(String filename) {
       return false;
   }
   public static void writeFile(String filename) {
   }
   public static String getNicelyFormattedMove(String moveLine) {
       return null;
   }

} </source>