Do not write a program.

Posted: November 4th, 2022

Place your order now for a similar assignment and have exceptional work written by our team of experts, At affordable rates

For This or a Similar Paper Click To Order Now

Write a function to compute the total cost of an order for a luggage shop. Each order should contain the luggage size (‘L’, ‘M’, ‘S’) and the number of luggage ordered for the size. Size ‘L’ luggage costs $154.99, size ‘M’ luggage costs $122.95 and size ‘S’ luggage costs $79.99 each. Naturally the function should take two parameters: a luggage size and the number of luggage. It should compute the total cost (excluding tax) and return it as function value. The total cost must include possible delivery charge as follows: for order of $200 or more: no delivery charge. Otherwise the deliver charge would be $25 added to the total cost.
You need to provide function declaration, function definition and an example of how the function can be called/invoked. Do not write a program. Just a fragment of code.
Lastly, think about efficiency when determining the luggage cost per size.

For This or a Similar Paper Click To Order Now

Expert paper writers are just a few clicks away

Place an order in 3 easy steps. Takes less than 5 mins.

Calculate the price of your order

You will get a personal manager and a discount.
We'll send you the first draft for approval by at
Total price:
$0.00