Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 OR quantity OR price 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
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