Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

interrace Courier +payment) : void +displayinfo() : void MailService CargoService do -postFee: double -deliveryAddress : String -cargoFee: double -weight: double ka: +MailService) +MailService(postFee: double, deliveryAddress

image text in transcribedimage text in transcribed

interrace Courier +payment) : void +displayinfo() : void MailService CargoService do -postFee: double -deliveryAddress : String -cargoFee: double -weight: double ka: +MailService) +MailService(postFee: double, deliveryAddress : String) +setpostFee(postFee: double): void +getpostFee(): double +setdeliveryAddress(deliveryAddress : String) +getdeliveryAddress(): String +payment(): void +displayinfo() : void +CargoService) +CargoService(cargoFee: double, weight: double) +setcargoFee(cargotFee: double): void +getcargotFee(): double +s etWeight(weight: double): void +getWeight(): double +payment) : void +displayinfo(): void nme t to 030 Override the interface method payment(). Add 15% vat with post fee and return the total payment Override the interface method payment(). Add 10% handling Fee with cargoFee. Ifweight is greater than 15 kg, impose 100 taka for each kg more than 5 on thecargoFee. Finally, add 15% vat on the total payment for and return the total payment. Override the interface method displayinfo(). and display the payment and the delivery Jaddress Override the interface method displayinfo(), and display the payment cargo fee and the weight. Write a test program that prompts the user to: Create a MailService object and pass the values of post fee and delivery address. Call the payment() method and display the total information using displayInfo() method. Page 2 Create a CargoService object and pass the values of cargo fee and weight. Write a test program that prompts the user to: Create a MailService object and pass the values of post fee and delivery address. Call the payment() method and display the total information using displayInfo() method. Create a CargoService object and pass the values of cargo fee and weight. Call the payment() method and display the total information using displayInfo() method

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image
Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Datacasting How To Stream Databases Over The Internet

Authors: Jessica Keyes

1st Edition

007034678X, 978-0070346789

More Books

Students explore these related Databases questions