0% found this document useful (0 votes)
16 views4 pages

Client Cost Calculation Algorithm

The document outlines a pseudocode algorithm for calculating the total cost for local and international clients at La Diez Fashion Empire. It includes variables for client information, discounts, and totals, and processes client purchases based on their type. The algorithm prints a summary of the transaction, including grand totals and counts for each client type.

Uploaded by

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

Client Cost Calculation Algorithm

The document outlines a pseudocode algorithm for calculating the total cost for local and international clients at La Diez Fashion Empire. It includes variables for client information, discounts, and totals, and processes client purchases based on their type. The algorithm prints a summary of the transaction, including grand totals and counts for each client type.

Uploaded by

ryleeemanuel
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Pseudocode Algorithm: SBA

Algorithm Local_International_Clients

Developer: Rylee Emanuel

Date: November 22, 2023

Description: Calculate the total cost of each client type by calculating each clients discount

Variable are: C_Name, C_Code , Items as string

quan, Count_LC, Count_IC as integers

Unit_Price, Sub_Total, discount, Final_Price, Gtotal_LC, Gtotal_IC as real

const LCDisc=0.1

ICDisc=0.05

Gtotal_LC  0

Gtotal_IC0

Count_LC0

Count_IC 0

START

Print “Welcome to La Diez Fashion Empire”

Print “ Where style and comfort meet”

Print “Please enter Client Name”

Read C_Name

Print “Please enter your Client Code”


Read C_Code

Print “Please enter Items purchased”

Read Items

Print “Please enter quantity purchased”

Read quan

Print “Please enter unit price”

Read Unit_Price

Sub_Total(Unit_Price *quan)

While C_Code = LC or C_Code =IC DO

If C_Code = “LC” then

discount  ( Sub_Total * LCDisc)

Final_Price(Sub_Total-discount)

Gtotal_LC. (Gtotal_LC + Final_Price

Count_LC Count_LC + 1

Else

Discount Sub_Total*ICDisc

Final_Price(Sub_Total-discount)

Gtotal_IC Gtotal_IC + Final_Price

Count_IC Count_IC + 1
Endif

Print “Welcome to La Diez Fashion Empire”

Print “ Where style and comfort meet”

Print “Please enter Client Name”

Read C_Name

Print “Please enter your Client Code”

Read C_Code

Print “Please enter Items purchased”

Read Items

Print “Please enter quantity purchased”

Read quan

Print “Please enter unit price”

Read Unit_Price

Sub_Total(Unit_Price *quan)

Endwhile

Print “Client Name”, C_Name

Print “Items Purchased are”, Items

Print “Quantity purchased is”, quan

Print “Subtotal is”, Sub_Total

Print “Discount is”, discount


Print “Final Price is”, Final_price

Print “SUMMARY”

Print “Local Clients Grand Total is ”, Gtotal_LC

Print “Number of Local Clients“, Count_LC

Print “International Clients Grand Total is”, Gtotal_IC

Print “Number of International Clients”, Count_IC

Print “Thanks for shopping with La Diez Fashion Empire”

STOP

You might also like