Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Samsung Galaxy S23 Ultra Comprehensive User Manual

Authors: Leo Scott

1st Edition

B0BVPBJK5Q, 979-8377286455

More Books

Students also viewed these Databases questions

Question

2. What potential barriers would you encourage Samuel to avoid?

Answered: 1 week ago