Question: Please place this raptor program into the raptor format with the bubbles and squares using the raptor sofware please. Thank you! Start Declare pastryID, quantity

Please place this raptor program into the raptor format with the bubbles and squares using the raptor sofware please. Thank you!
Start
Declare pastryID, quantity as Integer
Declare price, totalCost as Real
Output: "Enter pastry ID:"
Input: pastryID
Output: "Enter quantity:"
Input: quantity
Output: "Enter price:"
Input: price
If pastryID <0 OR quantity <0 OR price <0 Then
Output: "Error: Negative values are not allowed for pastry ID, quantity, or price."
Stop Program
End If
// Create instance of Bakery class with pastryID, quantity, and price
Output: "Welcome to the Bakery calculator!"
Output: "---------------------------"
Output: "Bakery Inventory"
Output: "This program will allow you to enter the pastry ID,"
Output: "the quantity and the price per pastry to be inventoried"
Output: "which will then tell you the total price of the item by bulk."
Output: "---------------------------"
Output: "BAKERY INVENTORY"
Output: "Pastry ID: pastryID"
Output: "Quantity: quantity"
Output: "Price per unit: $price"
totalCost = quantity * price
Output: "Total Cost: $"+ totalCost
Output: "---------------------------"
Output: "......"
Stop

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!