You have been asked to develop an algorithm to calculate the total cost of a purchase order that contains several T shirts. The cost of each T shirt and the tax rate is known. The standard shipping charge for the entire order is $5.75, and the special delivery charge is $23.65. In addition, there is no tax on the shipping cost. Which of the following is the correct pseudocode for the required algorithm?
A) For each T shirt on the purchase order:
Order cost = order cost + T shirt cost
Total purchase order cost = order cost + tax rate + 5.75
B) For each T shirt on the purchase order:
Order cost = order cost + T shirt cost
If standard shipping
Shipping cost = 5.75
Else
Shipping cost = 23.65
Total purchase order cost = order cost * tax rate + shipping cost
C) If standard shipping
Shipping cost = 5.75
Else
Shipping cost = 23.65
For each T shirt on the purchase order:
Order cost = order cost + T shirt cost + shipping cost
Total purchase order cost = order cost * tax rate
D) If special delivery
Shipping cost = 5.75
Else
Shipping cost = 23.65
For each T shirt on the purchase order:
Order cost = order cost + T shirt cost
Total purchase order cost = order cost * tax rate + shipping cost
Correct Answer:
Verified
Q47: While developing a program, the programmer adds
Q48: UML Supermarket has different ways of awarding
Q49: Which one of the following errors represents
Q50: When a compiler finds a syntax error
Q51: Evaluate the pseudocode below to calculate the
Q53: Which one of the following methodologies is
Q54: How do programmers find exceptions and run-time
Q55: What is a logic error?
A) An error
Q56: The programmer, not the compiler, is responsible
Q57: What kind of error is created by
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents