Answered step by step
Verified Expert Solution
Link Copied!

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 <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

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

Database Support For Data Mining Applications Discovering Knowledge With Inductive Queries Lnai 2682

Authors: Rosa Meo ,Pier L. Lanzi ,Mika Klemettinen

2004th Edition

3540224793, 978-3540224792

More Books

Students also viewed these Databases questions