Category: Mahasiswa

  • Tugas Array dan Inheritance Kelompok 06

    Kelompok 06 Salman Nuzuli NIM : 1202163115 Rifky Ramdhianis NIM : 1202164392 Novrianda Marza NIM : 1201260295 A.) Write a static method isStrictlyIncreasing(double[] in) that returns false otherwise. B.) Tulis method isStriclyIncreasing (double[] in) dimana akan bernilai benar jika nilai tersebut lebih besar dari nilai sebelumnya, dan akan salah jika nilai tersebut lebih kecil dari…

  • Tugas Array dan Inheritance Kelompok 06

    Kelompok 06 Salman Nuzuli NIM : 1202163115 Rifky Ramdhianis NIM : 1202164392 Novrianda Marza NIM : 1201260295 A.) Create a base class called Vehicle that has the manufacturer’s name (type String), number of cylinders in the engine (type int), and owner (type Person given in listing 8.1). Then create a class called Truck that is…

  • Tugas Array dan Inheritance Kelompok 06

    Kelompok 6 – SI4002: · Anisa Agustina (1202162042) · Rahkmah Nabila (1202163018) · Atika Rahmawati (1202164244)Tugas Alpro 1. Bab 8 Inheritance and Polymorphism Halaman 648 bagian “Programming Projects” Nomor 6 Soal :Create a base class called Vehicle that has the manufacturer’s name (type String), number of cylinders in the engine (type int), and owner (type…

  • Aplikasi Pembuatan Program OOP Inheritance Perusahaan Truck

    KELOMPOK 16 SI-40-03: Retna Taqiyyah A. (1202160253) Try Asputri Pane (1202163163) Fadhilah Amani A. A. (1202164172) a. Soal Create a base class called Vehicle that has the manufacturer’s name (type String), number of cylinders in the engine (type int), and owner (type Person given in Listing 8.1). Then create a class called Truck that is…

  • Tugas Array dan Enhiretance Kelompok 03

    No 3 BAB 8 Define two derived classes of the abstract class ShapeBase in Listing 8.19. Your two classes will be called RightArrow and LeftArrow. These classes will be like the classes Rectangle and Triangle, but they will draw arrows that point right and left, respectively. The size of the arrow is determined by two…

  • Tugas Array dan Inheritence Kelompok 5

    SOAL BAB 8 NO 5 Define two classses , Patient and Billing, whose object are record for a clinic. Derive Patient from the class Person given in Listing 8.1. A Patient record has the patient’s name (defined in the class Person) and identificationnumber (use the type String). A Billing class will contains a Patient object…

  • Tugas Array dan Inheritance Kelompok 08

    a. Soal ( nomor 8 hal 648 ) Create a new class called Dog that is derived from the Pet class given in listing 6.1 of chapter 6. The new class has the additional attributes of breed(type String) and boosterShot (type boolean), which is true if the pet has had its booster shot and false…

  • Tugas Algoritma dan Pemrograman Array dan inheritance Kelompok 07

    Tugas Algoritma dan Pemrograman Array dan inheritance 1. Write a static method removeDuplicates (Characters [] in ) that returns new array of the characters in the given array, but without any duplicate characters. Always keep the first copy of the characters and remove subsequent ones. For example, if in contains b, d, a, b, f,…

  • Tugas Array dan Inheritance Kelompok 08

    a. Soal ( nomor 8 hal 648 ) Create a new class called Dog that is derived from the Pet class given in listing 6.1 of chapter 6. The new class has the additional attributes of breed (type String) and boosterShot (type boolean), which is true if the pet has had its booster shot and…

  • Tugas Array dan Inheritance Kelompok 08

    a. Soal ( nomor 8 hal 648 ) Create a new class called Dog that is derived from the Pet class given in listing 6.1 of chapter 6. The new class has the additional attributes of breed (type String) and boosterShot (type boolean), which is true if the pet has had its booster shot and…