Code: Select all
New-RDSessionCollection `
-CollectionName "TallyCollection" `
-SessionHost "TALLYSERVER01.RAMOFFICE.LOCAL" `
-CollectionDescription "Tally Users" `
-ConnectionBroker "TALLYSERVER01.RAMOFFICE.LOCAL"Get-RDSessionCollection
Code: Select all
New-RDSessionCollection `
-CollectionName "TallyCollection" `
-SessionHost "TALLYSERVER01.RAMOFFICE.LOCAL" `
-CollectionDescription "Tally Users" `
-ConnectionBroker "TALLYSERVER01.RAMOFFICE.LOCAL"Code: Select all
promoter = [60000, 62000, 61000]
public = [40000, 38000, 39000]
total = [p+q for p,q in zip(promoter, public)]
promoter_pct = [round(p/t*100,2) for p,t in zip(promoter, total)]
print("Promoter % over years:", promoter_pct)
Code: Select all
fixed_cost = 200000
variable_cost_per_unit = 50
price_per_unit = 100
units = [1000, 2000, 3000, 4000, 5000]
profits = [u * (price_per_unit - variable_cost_per_unit) - fixed_cost for u in units]
print("Units:", units)
print("Profits:", profits)
Code: Select all
profits = [50000, 60000, 55000, 70000, 80000]
sales = [200000, 250000, 240000, 280000, 300000]
# Net Profit Margin
npm = [round(p/s*100,2) for p,s in zip(profits, sales)]
print("Net Profit Margin (5 years):", npm)
print("Last 3 years:", npm[-3:])
Code: Select all
import random
vouchers = [f"VCH{i}" for i in range(1, 101)] # 100 vouchers
sample = random.sample(vouchers, 10) # select 10 random vouchers
print("Audit Sample:", sample)
Code: Select all
cash_inflows = [100000, 120000, 110000, 90000]
cash_outflows = [80000, 95000, 105000, 88000]
net_flows = [inflows - outflows for inflows, outflows in zip(cash_inflows, cash_outflows)]
print("Net Monthly Cash Flows:", net_flows)
print("Q1 Flow:", sum(net_flows[:3]))