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.

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter6: Arrays
Section: Chapter Questions
Problem 10PE
icon
Related questions
Question

Using Raptor, write a program to calculate the final price for an online shopping for a specific item with the
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 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 the
corresponding values in array Tax_array[5]. Print the contents of Tax_array[] properly at the output.

AI-Generated Solution
AI-generated content may present inaccurate or offensive content that does not represent bartleby’s views.
steps

Unlock instant AI solutions

Tap the button
to generate a solution

Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage