I remembered more of the message box button syntax
If
pizza code; bigger than “total” or smaller than “default”. Then run invalid
input
Wasn’t sure
if the next two lines are part of the if statement above, I put it in the
statement
Use array main write method;
send pizza number +”four”& pizza code converted to string
Declare
constant inerter “max Pizzas” local I haven’t assigned a number here so
I think it must relate to the next line of code, so it could be 8 or 5. 5 is
the max number of pizzas, 8 is it’s index. I don’t think the variable is related to the
array so I assume it is meant to be set to 5; but it’s possible it could be set
at 4, if 0 is counted.
If
pizza number is equal or bigger than “max Pizzas”; set pizza number to
“default”(0) disable pizza choice this will show that the user has reached the
max pizzas and will prepare the form for the next loop
Clear
pizza choice textbox reads the text box for more
input; only needed when next clicked, even though it isn’t needed when the
confirm order button is clicked
Set
pizza choice label to; “Pizza number” and pizza + one (using++)
number converted to a string this will show the
user how many pizzas have already been entered ( by default when the program
first opens the label will read Pizza choice number one I
assumed that when I said “and pizza + one”, I meant to say pizza number pluss
one.
If
any format or size
exceptions found run invalid input method
Stage two method (no input/outputs) sets the form so the user can’t change the customer
details accidently when entering the order and can put in the pizzas
Disable
name textbox
Disable
address textbox
Disable
phone textbox
Disable
confirm detail button
Enable
pizza choice textbox
Enable
next button
Enable
confirm order button
Customer
detail method(no input returns string) shows the user the
details of the customer to check them before continuing
Declare
integer constant name as 1 local to this method
Use
array write method (send name and content of name textbox) stores the details in array
Use
array write method (send address and content of address textbox) stores the details in array
Use
array write method (send phone and content of phone textbox that is converted
to a number and then back into a string) stores the
details in array
No comments:
Post a Comment