Write pseudocode

Program accepts a user's monthly pay, rent, and grocery bills and displays the amount available for spending (which might be negative)
Display the pay, total bills and remaining amount.

start

input pay
input rent
input utilities
input groceries
set discretionary = pay - rent - utilities - groceries
set total bills = rent + utilities + groceries
output total bills
output pay
output discretionary
stop

Does this look correct?

read pay,rent,bills

print pay, rent+bills, pay-(rent+bills)

looks ok to me

Write a pseudocode to determine the type of triangle, depending upon the value of the sides.

Sure! Here's a simple pseudocode that accepts the user's monthly pay, rent, and grocery bills, and then calculates and displays the amount available for spending:

```
// Accept the user's monthly pay, rent, and grocery bills
input pay
input rent
input groceryBills

// Compute the amount available for spending
amountAvailable <- pay - (rent + groceryBills)

// Display the pay, total bills, and remaining amount
display "Monthly Pay: " + pay
display "Total Bills (Rent + Grocery Bills): " + (rent + groceryBills)
display "Amount Available for Spending: " + amountAvailable
```

In this pseudocode, `pay`, `rent`, and `groceryBills` represent the user inputs for monthly pay, rent, and grocery bills, respectively. The `amountAvailable` variable calculates the difference between the user's pay and the sum of the rent and grocery bills. Finally, the algorithm displays the user's pay, total bills (rent + grocery bills), and the amount available for spending.