You are on page 1of 1

SFCSS Problem Solving and Programming SBA Assignment 2022

Dairy Cold is requesting a program solution for the following problem.

Dairy Cold gives back to society a portion of their profits to aid in education, community
enhancement and sport. It was decided that depending on the profits made (for the year
2021) by each of the Product line a certain percentage will be donated. If the profits were less
than $100,000.00 then 5% of the profit for that product line will be donated. Additionally, if
the profits were equal or greater than $100,000.00 but less than $200,000.00 then 10% of the
profit for that product line will be donated. Finally, if the profits were equal to or greater than
$200,000.00 then 15% of the profit for that product line will be donated. You are required to
provide a programming application to:

(1) (a) Read the Product line and the Profit earned for that Product line.

(b) Determine the Donation Amount.

(c) Determine the Profit after Donation for that Product line.

(d) Print the Product line, Donation Amount and Profit after Donation.

(e) Steps (a) to (d) must be done for the Eleven (11) Product lines.

(f) Additionally calculate and print the Total Amount of Donations to be given from all
Eleven (11) Product lines.

Develop the:

 A Defining Diagram /I.P.O. Chart (Use Microsoft Word)


 A Pseudocode Algorithm (Use Microsoft Word)
 Flowchart (Use Microsoft Word)

(2) Design and execute a Trace Table that accepts the Product line and Profit of three (3)
Product lines for the above Pseudocode algorithm.

(3) Using the programming language Pascal, write program code to implement the
Pseudocode Algorithm developed in (1) above. Proper program documentation is
required.

THE END

Note this assignment has been created by Mrs. Lisa Ramnarinesingh for her students at San
Fernando Secondary School and cannot be reused without her permission.

You might also like