0% found this document useful (0 votes)
47 views14 pages

Word

Bobby owns a burger restaurant called "Best Bargain Burgers" and needs to upgrade his paper-based ordering system. The restaurant offers 5 base burger types, 7 fillings, and 1 seasoning. Customers can order up to 6 burgers with 5 fillings and 1 seasoning per burger. They can also order fries. The developer created the system, implementing implications for culture, privacy and functionality. Various bugs were encountered and fixed during development.

Uploaded by

boston.morgan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
47 views14 pages

Word

Bobby owns a burger restaurant called "Best Bargain Burgers" and needs to upgrade his paper-based ordering system. The restaurant offers 5 base burger types, 7 fillings, and 1 seasoning. Customers can order up to 6 burgers with 5 fillings and 1 seasoning per burger. They can also order fries. The developer created the system, implementing implications for culture, privacy and functionality. Various bugs were encountered and fixed during development.

Uploaded by

boston.morgan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 14

BRIEF:

Bobby is the sole proprietor of “Best Bargain Burgers”, he’s been using pen and paper for the past 20+ years and needs to
upgrade his ordering system. The restaurant’s success comes from the 5 different base burger types, the 7 different fillings
and one seasoning, but he only allows someone to order up to 6 burgers per visit, 5 fillings per burger and one seasoning.

Base Burger Types: Veggie, Chicken, Beef, Pork, Fish.

Fillings: Tomato, Lettuce, Cucumber, Beetroot, Bacon, Cheese, Avocado.

Seasoning: Salt & Pepper, Mayonnaise, BBQ Sauce, Tomato Sauce, Aioli.

Sides: Fries.

IMPLICATIONS:
The specifications for this achievement standard require three implications to be used in the code. I decided to choose:

Cultural: referring to a society's beliefs, practices, and social interactions.

I will implement this by using the Māori language in phrases such as greetings.

Simple Māori greeting followed by the customer’s name.

Privacy: a situation where one is not bothered or observed by others.

I will implement this by deleting the customer’s name after the order has been completed.

Sets the name variable to void.

Functionality: the property of being well-suited to fulfil a function; usefulness.

I will implement this by making the code as efficient as possible and by removing all possible loopholes / errors.

Uses the try and except for error checking. The else also contributes as an error check for incorrect values.
LOGS:
26 April:
Wrote the Brief with all the necessary information such as menu, maximum amount of menu items,
and why he needs the program.

28 April:
Chose which Implications I will use in the code, gave them relevant definitions, and described how I
will implement them into the program.

1 May:
Added the starting criteria stated in the brief to the program for easy access.

2 May:
Added the variables relevant to the code in a global aspect such as arrays, loop variables etc.

3 May:
Added the name inputting system for the customer to input their name. The name is then displayed
with a greeting in Te Reo Māori, meeting the criteria for the cultural implication.

5 May:
Added a system for the customer to choose how many burgers they want. It uses error checking to
make sure the code won’t break when the customer inputs an incorrect value. If this does occur, it
will loop back so the customer can input again.
8 May:
I will be using a looping system for the code so that once 1 burger is complete, the burger loop count
will increase by one. Then, the code will check if the loop count is equal to the maximum number of
burgers the customer wants. If this is met, the code will proceed to the fries ordering system. This
lesson was spent thinking about this system.

9 May:
Added the while loop, burger amount check, and the code that appends the relevant burger number
to the order array.

12 May:
Added the base function for storing the base selecting code as well as the code that displays the
base menu.

15 May:
Added the actual base selection code with error checking. It checks if the maximum amount of bases
has been met and if so carries on to the fillings.
16 May:
The base code is easily duplicated for the fillings and seasonings, I just had to substitute the fillings
variables in. I did however add an option for the customer to choose if they don’t want any more
fillings in their burger by inputting 0.

17 May:
Again substituted the seasonings into the fillings code. The option to choose no fillings is also there. I
also added the code the increases the burger loop count.
19 May:
Added the fries ordering system where the customer can choose if they want fries or not. It has
error checking as with everything else.

22 May:
Added the order receipt as well the privacy implication with setting the name to nothing. Also added
an aesthetic line to separate burgers.
23 May:
Added relevant comments to all the code. I replaced all the images throughout all the logs to be
more consistent so that’s why there are comments on the logs.

BUG FIXES:
1.
The base, fillings, and seasonings functions wouldn’t run. This is because I didn’t call for the
functions. I fixed this by adding the lines of code that calls for the functions so that they run.
2.

If you selected 1, the code wouldn’t break, and you could order infinite fries until you pressed 2. This
is because there are 2 if statements instead of 1 if and 1 elif. I fixed this by changing the second if to
an elif so that if they select 1 it would continue to the receipt system.

3.
The program would just skip straight to the fries. This is because the bases, fillings, and seasonings
would only work if the burger loop was greater than the number of burgers they want. I fixed this by
changing the greater than symbol to the less than symbol so that if the number was less than the
number of burgers the customer wants the code would run.

4.
It would still show “No Fillings” even if you had chosen some but hadn’t chosen the maximum
amount. To fix this I just removed the code to add the “No Fillings” completely as it doesn’t seem
necessary.

5.
The else section was not displaying when using an invalid number because it could either be higher
than 0 or lower than 6 rather than it must be higher than 0 and lower than 6. I fixed this by changing
the or in the if section to an and so that a chosen number must be higher than 0 and lower than 6.

6.

The burger clarification system was added to the side of fries at the bottom of the order. I fixed this
by moving the code that adds the Burger # below the if statement so that after the if statement is
met the number is added.
7.

The code would break if you inputted enter. This is because the code that lets the customer input
how many burgers they want isn’t utilizing the error checking. I fixed this by moving it under the try
so it uses the error checking.
8.

This piece of code would break the program if you selected 1, this happened because the code
would take 1 away from the value the customer inputted thus making it 0 and the value must be
above 0 so the code would break. I fixed this by removing the max_burgers -=1 line.

You might also like