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_IC0
Count_LC0
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