Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Input: Processing Items: Output: Number of Donuts ordered Number of muffins ordered Item price Processing items: none Total number of items ordered total cost Algorithm:
Input: Processing Items: Output: Number of Donuts ordered Number of muffins ordered Item price Processing items: none Total number of items ordered total cost Algorithm: 1. Enter the number of doughnuts ordered, number of muffins ordered and item price. 2. Calculate the total number of items ordered by adding together the number of doughnuts ordered and number of muffins ordered 3. Calculate the total cost by multiplying the total number of items ordered by the item price 4. Display the total number of items ordered and total cost First Desk-Check 4 (number of doughnuts ordered) +2 (number of muffins ordered) 6 (total number of items) x 0.50 (Item Price) $3.00 (total cost) Second Desk-Check 0 (number of doughnuts ordered) +12 number of muffins ordered) 12 (total number of items) x 0.45 (Item Price) $5.40 (total cost) Number of doughnuts ordered Number of muffins ordered Item Price total number of items total cost 2 0.50 Number of doughnuts ordered Number of muffins ordered Item Price total number of items total cost 2 0.50 6 3.00 Number of doughnuts ordered Number of muffins ordered item Price total number of items total cost 4 2 0.50 6 3.00 0 12 0.45 12 5.40 Jericho Bakery sells a variety of doughnuts and muffins for $0.50 each. The manager of the bakery wants a program that calculates and displays the total number of items (doughnuts and muffins) purchased by a customer, as well as the total cost of the order Based on the lab assignment 2 IPO chart, create a program based on the problem specification above
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