Class 7 PBL II

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

PBL – Class 7

Problem Statement:

A company supplies concrete tiles. All tiles in every box are identical. Customers can order from a small
range of standard sizes and colours. All measurements are given in centimetres. The price is calculated
at 100 PKR for a volume of 1000 cm 3 of ceramic of 1 tile; red and green ceramic is charged at 10% more.
Customers can choose their own colours; a custom colour has an initial set-up cost of 500 PKR.

Write and test a program for the ceramic tiles company.

• Your program or programs must include appropriate prompts for the entry of data; data must be
validated on entry.

• Error messages and other outputs need to be set out clearly and understandably.

• All variables, constants, and other identifiers must have meaningful names. You will need to complete
these three tasks. Each task must be fully tested.

Students are required to create a flowchart.

All necessary information (Colours, Shapes of tiles, Length of tiles) should be displayed on the screen
either in the table or as text form at the beginning of the program.

Task 1 – Price for a batch of 12 tiles (1 box)

Using the information above set up a routine that allows a customer to choose the ceramic tiles they
require and calculate a price for a batch of 12 tiles. The details of the tile chosen and the price for a
batch of 12 tiles (1 box) should be displayed on the screen.

Task 2 – Customer places an order

Using the information from TASK 1, the customer places an order for the number of tiles they require.
Orders for fewer than 1 box or more than 5 boxes are not accepted; orders that are not a multiple of 12
are rounded up to the next multiple of 12 tiles. Display the order price and the number of tiles to be
ordered.

Task 3 – Flexible pricing – Display Output (result)

The cost of ceramic tile is variable. The cost of 1 box can be input and two colours are available; 10%
discount will be applicable on more than 2 boxes. Use a copy of your program for TASK 1 to develop
TASK 3 to input the cost and colour of tiles before calculating the price for 2 boxes.
Strategy Phase:

1. Declaration of meaningful variables, constants & identifiers


2. Data validation
3. Logic building
4. Conditional & Looping Statements

Design and Development

1. Select a technology tool to accomplish the task.

Deliverable Checklist

1. Pictorial presentation (Flowchart)


2. Error handling messages
3. User Input
4. Mathematical formulae/ calculations
5. Display Output
6. Appropriate use of information

Suggested Tools:

1. Python 3.11
2. E-Draw max / Microsoft Visio

Students are at liberty to use tools of their own choice if they are meeting the project objectives.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy