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.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
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
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education