Find Jobs
Hire Freelancers

Java script micro project - 19/05/2020 10:56 EDT

$10-30 USD

완료함
게시됨 거의 4년 전

$10-30 USD

제출할때 지불됩니다
Design an abstract class named Fruit that has the following fields:  nameOfFruit for storing a fruit’s name  fruitsCountry fruit’s origin country. In addition, the class should have the following constructor and other methods:  Constructor with arguments to initialize both data fields.  A toString method to return a String containing the fruit’s data.  An abstract method named color() for fruit’s color and hold a void type.  An abstract method getInterExport() that hold an int type. Then, design a class named Apple which extends the Fruit class. It declares three final integer fields with their values as: FUJI = 2000, GALA = 4500 and CAMEO = 3000. These fields hold the total apples according to it types. The class also declares three integer fields to indicate the apples that have been allocated for local distribution. Declares the three fields as, localFuji, localGala and localCameo. Next, provide the Apple constructor by calling the constructor of the superclass (Fruit) through the super keyword. After that, provide the mutator (set) methods to store values in localFuji, localGala and localCameo fields. Finally, Apple class will override: o Abstract color() method defined in Fruit class. In this method, print the color of apple fruits as red sport, ultra red and red in one line. o Abstract getInterExport() method defined in Fruit class. In this method, declare two integer variables called totalApple and totalExport. totalApple hold the total amount of apples and totalExport hold total apples to be exported after deduction with apples for local distribution. To calculate the totalApple, add all final integer fields. To calculate the totalExport, deduct totalApple with localFuji, localGala and localCameo. Return the totalExport. o A toString method defined in Fruit class and also displays Fuji, Gala and Cameo apple for local distribution. Provide ExportAppleDemo class to demonstrate the Fruit and Apple classes. Example of the program output is given: Output: Name of fruit: Apple New Varieties Origin Country: New Zealand Fuji apple for local distribution = 1200 Gala apple for local distribution = 900 Cameo apple for local distribution = 1500 Apples color: red sport, ultra red and red Apples for international distribution: 5900
프로젝트 ID: 25587934

프로젝트 정보

4 제안서
원격근무 프로젝트
활동 중 4년 전

돈을 좀 벌 생각이십니까?

프리랜서 입찰의 이점

예산 및 기간 설정
작업 결과에 대한 급여 수급
제안의 개요를 자세히 쓰세요
무료로 프로젝트에 신청하고 입찰할 수 있습니다
프로젝트를 수여된 사용자:
사용자 아바타
Hello, I've been using Java for more 5+ years, I can make your project in no time, I've already done a lot similar projects before, Feel free to ask me anything, Thank you, Oualid H.
$15 USD 1일에
5.0 (15 건의 리뷰)
3.8
3.8
4 이 프로젝트에 프리랜서들의 평균 입찰은 $26 USD입니다.
사용자 아바타
I have well experienced in doing such kind of jobs................................................................
$50 USD 2일에
5.0 (4 건의 리뷰)
3.8
3.8
사용자 아바타
Hello. I'm knowledgeable about Java, and I'm confident that I can deliver this project to you in a brief amount of time. Let's chat so that we may reach an agreement.
$15 USD 1일에
5.0 (18 건의 리뷰)
3.5
3.5
사용자 아바타
Hi, I am a developer and designer with 5+ years of experience in C#, Excel, VBA, HTML, Css and javascript I am new to this freelancer platform but I can guarantee my work. Let's connect on chat for detail discussion. Looking forward to working with you. Thanks and Regards, Bhoomi
$25 USD 7일에
5.0 (1 건의 리뷰)
2.0
2.0

고객에 대한 정보

국기 (MALAYSIA)
Kemaman, Malaysia
5.0
2
4월 19, 2020부터 회원입니다

고객 확인

감사합니다! 무료 크레딧을 신청할 수 있는 링크를 이메일로 보내드렸습니다.
이메일을 보내는 동안 문제가 발생했습니다. 다시 시도해 주세요.
등록 사용자 전체 등록 건수(일자리)
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
미리 보기 화면을 준비 중...
위치 정보 관련 접근권이 허용되었습니다.
고객님의 로그인 세션이 만료되어, 자동으로 로그아웃 처리가 되었습니다. 다시 로그인하여 주십시오.