PRLD5121 Programming Logic and Design Assessment


Are you looking for PRLD5121 Programming Logic and Design Assessment Answers Online? delivers assignment help services at a cost-effective price. We have top-notch assignment writers who assist you with quality content. Place your order with us now!


PRLD5121 Programming Logic


Learning Unit/s Objectives covered in this test:

At the end of this assessment, students should be able to:

  • LU1 – LO2: Explain the Program Development Life Cycle;
  • LU1 – LO3: Draw flowcharts that demonstrate the solution to a programming problem;
  • LU1 – LO4: Design pseudocode to solve a programming
  • LU1 – LO6: Write mathematical expressions in the required format for a program;
  • LU1 – LO7: Design a program by breaking the problem up into modules;
  • LU1 – LO10: Describe the three basic control
  • LU2 – LO1: Create Boolean expressions for selection
  • LU2 – LO3: Include the logical operators AND, OR and NOT in a selection
  • LU2 – LO5: Create complex selection structures;
  • LU2 – LO7: Write pseudocode using counted loops and conditional
  • LU3 – LO3: Write pseudocode that searches for a specific value in an array;
  • LU3 – LO4: Discuss parallel


Question 1

Consider the following short statement, then answer the questions that follow:


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.



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.



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%.



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

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



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.



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


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).
  • Calculate and add 6% to the existing price for each Store the new prices in the “Price” array.
  • Display the product name with the new corresponding prices.
  • Write descriptive comments in the pseudocode.


For REF… Use: #getanswers2002524