Question

Given the problem description, decompose the problem to list the inputs required, any formulas required and...

Given the problem description, decompose the problem to list the inputs required, any formulas required and the final output.
Then write the pseudo-code. Desk check your work. Write the pseudo-code only.

Create a shipping charge program that will calculate the shipping charge for an item based on its weight.

If the item weighs less than 16 ounces, the shipping charge is a flat rate of 12.95. If the item weighs over 16 ounces, the shipping charge is the weight of the item minus 16 ounces multiplied by 30 % plus the flat rate.

Determine the charge, then output it.

Homework Answers

Answer #1

Pseudo-code is the high level representation of actual code informaly.As the name indicate it is pseudo, means the code is not real.This helps programmers to develop actual code

  • Input of the problem is weight of the items
  • Calculations required are basic substaction ,multiplication, percentage finding etc
  • output is the shipping charge

Psudo-code

  • Read weight
  • flatRate 12.95
  • if weight<=16
    • charge flatRate
  • else
    • charge ((weight-16)x0.30)+flatRate
  • Output charge
Know the answer?
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
Similar Questions
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT