Using Raptor, write a program to calculate the final price for an online shopping for a specific item with thefollowing requirements:1) Tax calculation as below:For price < $350; Tax is 8% of the priceFor $350 <= price <= $750; Tax is %12 of the priceFor price > $750; Tax is %17 of the price2) Shipping strategy (Express add $100. extra) or Regular (add $20 extra)3) Payment transaction using a Debit (charge %2 of the price) or Credit Card (charge %3 of the price)Calculate the final payments for the items with the following input prices (select the shipping and paymenttransactions yourself):a) $160, $890, $1200, $560b) Find the maximum and minimum price among the initial input prices. Print the min and max with propermessages at the output. You already wrote a program using Raptor in Assignment6. Considering your solution in A6:b) Change your algorithm in (a) to get prices (for 5 items) from input and save them in array Price_array[5].Print the contents of Price_array[] properly at the output.c) Using the formula you wrote in A6, calculate the Tax values for Price_array[] created in (b) and save thecorresponding values in array Tax_array[5]. Print the contents of Tax_array[] properly at the output.
Using Raptor, write a
following requirements:
1) Tax calculation as below:
For price < $350; Tax is 8% of the price
For $350 <= price <= $750; Tax is %12 of the price
For price > $750; Tax is %17 of the price
2) Shipping strategy (Express add $100. extra) or Regular (add $20 extra)
3) Payment transaction using a Debit (charge %2 of the price) or Credit Card (charge %3 of the price)
Calculate the final payments for the items with the following input prices (select the shipping and payment
transactions yourself):
a) $160, $890, $1200, $560
b) Find the maximum and minimum price among the initial input prices. Print the min and max with proper
messages at the output.
You already wrote a program using Raptor in Assignment6. Considering your solution in A6:
b) Change your
Print the contents of Price_array[] properly at the output.
c) Using the formula you wrote in A6, calculate the Tax values for Price_array[] created in (b) and save the
corresponding values in array Tax_array[5]. Print the contents of Tax_array[] properly at the output.
Unlock instant AI solutions
Tap the button
to generate a solution