Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write MATLAB program to calculate rental cost and produce related invoice for domestic customer. The rental cost is based on the following rental rate categories:

Write MATLAB program to calculate rental cost and produce related invoice for domestic customer. The rental cost is based on the following rental rate categories:
\table[[Car Type,\table[[Rental Period],[(Day)]],\table[[Price Per Day],[(RM)]]],[Compact,1-3,80],[4-6,60],[7 or more,35],[SUV,1-3,120],[4-6,100],[7 or more,75]]
The program produces the invoice that has the following details:
a) Customer ID
b) Customer address
c) Total cost that customer have to pay
d) Invoice date
e) Table with the following details,
i) Car type
ii) Rental period
iii) Number of rental days
iv) Rate (RM) in current rental period
v) Cost (RM) in current rental period
vi) Total of rental days and cost
\table[[Car type,Rental period,Number of rental days,Rate (RM),Cost (RM)],[,,,,],[,,,,],[,Total,,,]]
User have to insert the customer ID, car type and total number of rental days. Then the program will identify customer address in the database, perform calculation based on the rate and print the invoice.
image text in transcribed

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

More Books

Students also viewed these Databases questions

Question

Fixed dollar match: 75 cents per each $1 employee contribution.

Answered: 1 week ago