Question 1 (Marks: 25)
Crazy Chicken have designed their own food ordering application which offers customers discounts based on the number of times they have ordered from the takeaway store.

Q.1.1 In terms of the Program Development Life Cycle, in your own words, discuss the phases that will follow now that Crazy Chicken have finished designing the application.

Note: Each phase identified should be described in terms of Crazy Chicken’s context.

Q.1.2 Draw a flowchart that will illustrate how Crazy Chicken’s application will determine the VAT inclusive price (price includes VAT) for an item on the menu that has a VAT exclusive (price excludes VAT) price of R50.

Note: VAT is levied at 15%.

Q.1.3 Crazy Chicken currently has three Point of Sale systems in their store. At the end of each day, the manager would like to know the average sales processed on the day.

Write the pseudocode for Crazy Chicken’s application that will ask the manager to enter each Point-of-Sale System’s total sales for the day and then calculate and display the average sales processed for the day.

Question 2 (Marks: 15)
Read the following short scenario, then answer the question that follows.

As stated before, Crazy Chicken will award their customers discounts based on the number of times they have ordered from the store. The discount for which the customer qualifies is summarised in the table below.

Number of purchases Percentage Discount
0-5 0
6 – 10 10
11 or more 20

Q.2.1 Assume that a customer can capture the number of orders they placed per month for the past year. E.g., in month one they ordered three times, in month two they ordered once, in month three they ordered five times, etc.
Now write the pseudocode that will make use of a loop that asks a user to enter the number of orders they have placed for each month over the past year (12 months).

Calculate and display the total number of orders that were placed by the customer over the past year. Then based on the number of purchases they made; display the percentage discount they qualify for.

Question 3

Write the pseudocode for the following scenario:

A shop owner needs to increase the prices for all his stock by 6% to keep up with inflation. He stores the product names in one array called “Product” which has 5 elements. This array stores the names of the products.

Product Array

Rice Sugar Tea Porridge Milk

He stores the prices of the corresponding items (in Rands) in a parallel array called “Price”.

25.99 22.50 12.00 20.00 18.50

A shop owner needs to increase the prices for all his stock by 6% to keep up with inflation. He stores the product names in one array called “Product” which has 5 elements. This array stores the names of the products.

PRODUCT ARRAY

He stores the prices of the corresponding items (in Rands) in a parallel array called “Price”.

PRICE ARRAY

i.e., Rice – R25.99 Sugar – R22.50 Tea – R12.00
Porridge – R20.00 Milk – R18.50
• Declare and populate both arrays with the product names and their corresponding
prices (use a loop). (9)
• Calculate and add 6% to the existing price for each product. Store the new prices in the
“Price” array. (5)
• Display the product name with the new corresponding prices. (4)
• Write descriptive comments in the pseudocode. (2)

Answers to Above Questions on Programming Logic

Answer 1: An analysis of the given scenario with respect to crazy chicken indicates that the company has designed its own food ordering application, and in designing such application, the following stages of product development life cycle are followed by the company:
1) designing of application: This is the first step that the company should have considered in designing its application which mainly includes the design aspects of the application.
2) development: This stage is also likely to be carried out by the company with includes the actual development of the application on which the food delivery system would be managed.
3) testing: Testing is a compulsory process in designing a new application which includes checking whether the application is performed as expected.

answer

Get assistance in programming logic and design as provided by the assignment help South Africa experts of Student Life Saviour.


Content Removal Request

If you believe that the content above belongs to you, and you don’t want it to be published anymore, then request for its removal by filling the details below. It will only be removed if you can provide sufficient evidence of its ownership.