Question

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

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


0 0
Add a comment Improve this question Transcribed image text
Answer #1

Everything is right for the 1st question.

For the 2nd part, you have to calculate the total commission and not the sales plus total commission.

Total commission is calculated by commission rate multiplied by total sales.

I edited your solution:

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
  4. Display commissionTotal

Desk Check

firstState

secondState

comissionRate

commissionTotal

15000

12000

.12

(15000+12000=27000)
27000*.12=3240

1000

900

.12

(1000+900=1900)
1900*.12=228

Add a comment
Know the answer?
Add Answer to:
I was wondering if someone could look at these problems and let me know what errors...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • please let me know if these calculations are correct especially the total debt line. thanks No Instructions 1. P...

    please let me know if these calculations are correct especially the total debt line. thanks No Instructions 1. Please enter the data from the previous tabs by clicking on the cell and typing = and then clicking on the desired cell. For example to enter Net Income for 2018 type = and go to the income statement tab and click on cell 127. 2. Complete the calculations. 3. Explain the significance of your ratio calculations. Be careful, only Balance sheet...

  • I need the pseudocode and python for the four attached problems: 1. (Chapter 5 - For...

    I need the pseudocode and python for the four attached problems: 1. (Chapter 5 - For Loop) Logic Technical College has a current tuition of $10,000 per year. Tuition is scheduled to increase by 5% each year. Using a FOR loop, design a program that calculates and displays the tuition each year for the next ten years, like so: The tuition for year 1 will be: 10500.00 The tuition for year 2 will be: 11025.00 ……….. (You, of course will...

  • Use program control statements in the following exercises: Question 1 . Write pseudocode for the following:...

    Use program control statements in the following exercises: Question 1 . Write pseudocode for the following: • Input a time in seconds. • Convert this time to hours, minutes, and seconds and print the result as shown in the following example: 2 300 seconds converts to 0 hours, 38 minutes, 20 seconds. Question 2. The voting for a company chairperson is recorded by entering the numbers 1 to 5 at the keyboard, depending on which of the five candidates secured...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT