Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Member Variables: customerno, customername, current_meter_reading, previous_meter_reading. Distance_Travelled, Billamount. Member Methods: a Read To read the values such as customerno, customername, (1 Mark) current_meter_reading, and previous_meter_reading.

image text in transcribed
Member Variables: customerno, customername, current_meter_reading, previous_meter_reading. Distance_Travelled, Billamount. Member Methods: a Read To read the values such as customerno, customername, (1 Mark) current_meter_reading, and previous_meter_reading. Get the input through the keyboard. To calculate Distance_Travelled and Billamount using (2 Marks) the formula and condition which are given below. b. Bill_Calc() Formula: Distance_Travelled = current_meter_reading previous_meter_reading. Condition Distance_Travelled > and 1000 and3000 Billamount Distance_Travelled x0.45 baise Distance_Travelled x 0.55 15 Rials + (Distance_Travelled - 300) x0.75 baise the c. Display ( display customerno, customername. (1 Mark) current_meter_reading previous_meter_reading and Billamount. Create a driver or control class called CarRental_Test. In this class, the main (1 Mark) method is used to call the methods Read 0. Bill_Calc(), and Display 0

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

Step: 3

blur-text-image

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

Database Programming With Visual Basic .NET

Authors: Carsten Thomsen

2nd Edition

1590590325, 978-1590590324

More Books

Students also viewed these Databases questions

Question

What is the most important part of any HCM Project Map and why?

Answered: 1 week ago