-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPseudocode
More file actions
25 lines (19 loc) · 749 Bytes
/
Pseudocode
File metadata and controls
25 lines (19 loc) · 749 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Pseudocode
START
Set delivery range from 5 to 100 peaches
Set peaches needed per pie to 5
Set ingredient amounts needed for one pie
Set conversion values for tablespoons and teaspoons
Generate a random number of peaches delivered
Calculate number of pies possible using division
Calculate leftover peaches using modulus
Calculate remainder when dividing by 5
Scale all ingredient totals based on number of pies
Convert sugar, flour, and butter totals into cups and tablespoons
Convert cinnamon, vanilla, salt, and lemon juice totals into tablespoons and teaspoons
Display peaches delivered
Display number of pies possible
Display leftover peaches
Display remainder when dividing by 5
Display all total ingredient amounts in converted units
END