-
Tugas Array dan Inheritance kelompok 4
Bab 8 nomor 4 · Define a class named Doctor whose objects are records for a clinic’s doctor’s . Derive this class from the clasds person given in listing 8.1 Doctor record has the doctor’s name—defined in the class Person—a specialty as a string (for example Pediatrician, Obstetrician, General Practitioner, and so on), and an…
-
Tugas Array dan Inheritance Kelompok 06
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 derived from Vehicle and has additional properties: the load capacity in tons (type double, since it may…
-
Tugas Array dan Inheritance Kelompok 01
1. a. Write program in a class NumberAboveAverage that counts the number of days that tempratute is above average. Read ten tempratures from the keyboard and place them in an array. Compute the average temperature and then count and display the number of days on which the tempratute was above average. b. Buat sebuah program…
-
Tugas Array dan Inheritance Kelompok 5
Kelompok 5 Tugas Pembuatan Program Nama Rifky Yudhistira Mohamad Fadel Al Farizi Farhan Yuzarli Kelas SI-4003 Soal : Write a program in a class Character Frequency that counts the number of times a digit appears in a telephone number. Your program should create an array of size 10 that will hold the count for each…
-
Tugas Array dan Inheritance Kelompok 09
KELOMPOK 9 KELAS SI4003 IRENE IRAWATY (1202160043) STEFI MUTIA SARI (1202160051) KARINA TARIGAN (1202164188) NO 1. a. Soal No 11 Hlm 559 Suppose that we are selling boxes of candy for a fund-raiser. We have five kinds of candy to sell: Mints, Chocolates with Nuts, Chewy Chocolates, Dark Chocolate Creams, and Sugar-Free Suckers. We will…
-
Tugas Array dan Inheritance Kelompok 02
Hafidz Rizky (1202160107) Ryski Mardina (1202164139) Rafi Gema (1202164270) import java.util.Scanner; public class CountFamilies { /** * @param args the command line arguments */ public static void main(String[] args) { Scanner input = new Scanner(System.in); int n, nilai[], ntt, ntr; System.out.print(“Masukkan Jumlah Keluarga berpendapatan minimum : “); n = input.nextInt(); nilai = new int[n]; for(int…
-
Tugas Array dan Inheritance Kelompok 12
Kelompok 12 SI-40-02 Nama: Ben Hughie Rezanda (1202164286) Dennis Nigel Cunong (1202160179) Ganar Nugraha Mahendrasta (1202164090) Ian Dzillan Malik (1202160194) BAB 8 Soal: Define a class called Diamond that is derived from either the class Shapebasics (Listing 8.12) or the abstract class SpabeBase (Listing 8.19). A diamond has the same sort of top half as…
-
Tugas Array dan Inheritance Kelompok 12
Kelompok 12 SI-40-02 Nama: Ben Hughie Rezanda (1202164286) Dennis Nigel Cunong (1202160179) Ganar Nugraha Mahendrasta (1202164090) Ian Dzillan Malik (1202160194) BAB 7 Soal: Revise the class OneWayNoRepeatsList, as given in Listing 7.9, so that is it allocates an extra element in the array entry and ignores entry [0], as suggested earlier near the end of…
-
Tugas Array dan Inheritance kelompok 11
SI-40-03 Kelompok 11: · Dickson Perdanakusuma (NIM 1202160303) · Fajar Sidiq Tazkiyyah (NIM 1202160196) · Hirzan Ghufran (NIM 1202164346) 1. Soal no.1 Define a Class named employee whose object are records for employees. Derive this class from the class person given in listing 8.1. An employee record inherits an employee’s name from the class Person.…