Question
Assignment: You will write a Raptor program, using Selection blocks to calculate and display a discount on book purchases based on the number of books
Assignment: You will write a Raptor program, using Selection blocks to calculate and display a discount on book purchases based on the number of books purchased and the day of the week the discount is offered: Process: Use Raptor Selection Blocks for the following problem: Notes: Do not use Raptor Loops or Calls Make sure you are in Object-oriented Mode in Raptor. You are not required to add in-code comments (Raptor bubble comments) Make sure your outputs are descriptive. Do not just display numbers. Specification: 1.0 A discount is offered on Tuesdays and Thursdays only. 2.0 10% discount on the total price for a purchase of between 1 and 10 books. 3.0 20% discount on the total price for the purchase of more than 10 books. 4.0 Inputs: Ask the user for number of books purchased total sale price and day of the week. 5.0 Check to make sure that the number of books and total price entered is greater than zero. If it is not, exit the program with a message stating that either the number of books or total price are invalid. 6.0 Display, in the Master Console, a. The day of the week b. The total price without discount c. The discount amount (zero if none) d. Final price (with or without discount)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started