1. Engineering
2. Computer Science
3. i was wondering if someone could look at these problems...

# Question: i was wondering if someone could look at these problems...

###### Question details

I was wondering if someone could look at these problems and let me know what errors you see.

The pseudocode in this case is an algorithm

1. A store sells cups and plates for parties. The owners want a program that allows them to enter the price of a cup, the price of a plate, the number of cups purchased, the number of plates purchased, and the sales tax rate. The program should calculate and display the total cost of the purchase.

 Inputs Process Outputs cupPrice totalCost platePrice cupNum plateNum taxRate

Pseudo Code:

1. Enter cupPrice and platePrice
2. Enter cupNum and plateNum
3. Enter taxRate
4. Calculate total of plates and cups by multiplying cupPrice by cupNum/platePrice by plateNum, then add together.
5. Multiply taxRate by total and add to total to find totalCost.
6. Display totalCost

Desk Check

 cupPrice platePrice cupNum plateNum taxRate totalCost 2 5 7 10 0.2 76.80 5 7 10 15 0.3 201.5
1. A sales manager wants a program that allows him to enter the sales made in each of two states. The program should calculate and display the commission, which is a percentage of the total sales. This percentage is called the commission rate and is 12%.
 Inputs Process Outputs firstState commissionTotal secondState commissionRate

Pseudo Code:

1. Set value of comissionRate to .12
2. Enter firstState and secondState
3. Calculate commissionTotal by adding secondState and firstState then multiply the total by comissionRate and add together.
4. Display commissionTotal

Desk Check

 firstState secondState comissionRate commissionTotal 15000 12000 .12 (15000+12000=27000) 27000*.12=3240 3240+27000= 30240 1000 900 .12 (1000+900=1900) 1900*.12=228 228+1900= 2128