Code Structure
Code Structure
Sequence example 1
Explain purpose in
simple terms
Reset all the radio
buttons when a new
customer wants to place
a new order
Sequence example 2
Sequence example 3
Selection example 1
Selection example 2
Selection example 3
Iteration
Console.WriteLine("Even
numbers up to 100...");
for (int x = 2; x <
101; x += 2)
{
Console.WriteLine(x);
Iteration
}
Console.WriteLine("odd
numbers up to 100");
int num = 1;
do
{
Console.WriteLine(num);
num = num + 2;
} while (num < 101);
Console.ReadLine();
This Toolbox
is used for
selecting
labels,
buttons, text
boxes, radio
buttons, and
check boxes.
When adding
things to your
windows form
the tool boxes
have a list of
different
tools.
Task 4
Data to be entered
Buffalo burger
(2oz) with Onion
and cheese
Drink
Buffalo burger
(4oz) with ketchup
No Drink
Buffalo burger
(8oz)
With bacon and
cheese
Buffalo burger
(2oz) with Onions
and Ketchup
Buffalo burger
(8oz) with bacon
Texas steak (2oz)
with bacon
Reason for
test
Normal Data
Expected
Actual Result
8.50
8.50
Normal data
8.60
8.60
Normal data
11.20
11.20
Normal Data
8.10
8.10
Normal Data
9.30
9.30
Normal Data
9.20
9.20
Normal Data
8.70
8.70
Normal data
11.40
11.40
Normal Data
8.40
8.40
Drink
10
No Drink
Texas steak (4oz)
with ketchup
Normal Data
9.60
9.60
11
Drink
Royale burger
(2oz) with cheese
Normal Data
9.20
9.20
12
Drink
Royale burger
(4oz) with bacon
Normal data
9.40
9.40
No Drink
13
Royale burger
(8oz) with ketchup
Drink
Data to be entered
Normal Data
11.80
11.80
14
Royale burger
(2oz) with bacon
and cheese
Normal Data
10.00
10.00
Normal Data
9.80
9.80
Normal Data
8.20
8.20
Normal Data
9.90
9.90
15
Drink
Royale Burger
(4oz)
No toppings
16
Drink
Ranch burger
(2oz) with Onions
Drink
17
Ranch burger
(4oz) with bacon
and cheese
18
Drink
Ranch burger
(8oz) with coleslaw
Normal Data
8.60
8.60
19
No drink
Ranch burger
(2oz) with ketchup
Normal data
8.00
8.00
Normal Data
7.90
7.90
Normal data
6.20
6.20
Normal data
6.90
6.90
Normal data
8.20
8.20
Normal data
7.40
7.40
Normal data
7.50
7.50
20
21
22
23
24
25
Drink
Ranch burger
(4oz)
With cheese
Veggie burger
(2oz) with onions
and a drink
Veggie burger
(4oz) with bacon
Veggie burger
(8oz)
Drink
No toppings
Veggie burger
(4oz) with ketchup
and a drink
Veggie burger
(8oz) with cheese