1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Pie
4 years ago
3

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
Computers and Technology
1 answer:
Luba_88 [7]4 years ago
3 0

Answer:

b

Explanation:

1) order cost needs to be calculated by adding <em>T-shirt cost</em> <em>for each T-shirt</em>.

2) shipping type should be decided using <u>if else</u>. <em>Shipping cost</em> must be 5.75 when standard shipping is chosen. Otherwise the <em>shipping cost</em> must be 23.65.

3) Total purchase order cost needs to be calculated by adding the <em>shipping cost</em> to the <em>order cost</em> (Remember to consider the<em> tax rate </em>here).

You might be interested in
Which of the following modes of replication requires a very low latency network connection and ensures data remains in synch wit
Snowcat [4.5K]

Answer:

b. Synchronous replication

Explanation:

Replication of data in storage partitions or in a number redundant array of independent disk drives helps to promote redundancy, as implied, and faulty tolerance to reduce loss of data.

There are two categories of replication and they are synchronous and asynchronous replication.

Synchronous replication requires low latency network site to mirror data, while asynchronous replication mirrors data in large metropolitan area in high latency networks.

4 0
3 years ago
Can a result that contains road maps for European countries have a highly meets rating
Mice21 [21]

Đápán3e

Explanation:

8 0
4 years ago
Where is the thesis statement usually located in research paper?
Ugo [173]
The thesis statement is typically located in the last sentence of the first paragraph of a research paper.
7 0
4 years ago
The procedure by which a process's state is saved before being swapped out of the cpu, then us restored to the state when the pr
belka [17]

The procedure is known as<u> context switching</u>.

In the field of computers, context switching can be described as a procedure in which a process is stored so that it can be executed at a later point. Such a procedure allows multitasking operations easier. A simple CPU can be utilized for multiple processes.

After a task is done, it can be swapped out of the CPU and can be restored later. By using context switching, more space can be provided on a CPU as freeing from one process will make space for the other.

When switching a process, the status of the older running process is saved on the CPU as registers.

Context switch makes it feasible to share one CPU for multiple procedures hence reducing the concerns that arise from using additional processors.

To learn more about context switch, click here,

brainly.com/question/21685677

#SPJ4

3 0
2 years ago
9. A change in the appearance of a value or label in a cell
alexandr402 [8]

Answer:

format

alignment

excel

=

Explanation: i'm an accountant

4 0
3 years ago
Other questions:
  • Which of the following are true statements about collisions in hashing? Linear probing can cause secondary collisions. Higher sp
    6·1 answer
  • A program requires that you change your screen size from 1024 X 728 to 800 X 600. In which of the following locations should you
    7·2 answers
  • What is the system of phonographic disc recordings paired with a projector called?
    9·1 answer
  • Which statement best describes a transition in PowerPoint?
    12·1 answer
  • Antifreeze is not considered a hazardous waste by the EPA unless it is used or otherwise becomes contaminated.
    13·2 answers
  • The idea that innovations in transportation and communication technologies has changed the way we think about distance and time
    9·1 answer
  • How do you calculate the total resistance in a series circuit with more than one resistor?
    9·1 answer
  • A web application is an example of:
    7·1 answer
  • What does this function do in the code?
    5·2 answers
  • You are the security analyst for your organization and have discovered evidence that someone is attempting to brute-force the ro
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!