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
laila [671]
3 years ago
6

The price of an item you want to buy is given in dollars and cents. You pay for it in cash by giving the clerk d dollars and c c

ents. Write specifications for a function that computes the change, if any, that you should receive. Include a statement of purpose, the preconditions and postconditions, and a description of the arguments.
Computers and Technology
1 answer:
RSB [31]3 years ago
7 0

Answer:

Get the actual price of the item and convert it to cents, also get and convert the amount paid to cents.

subtract the actual price of the item from the paid amount ( which is in cents), if the result is greater than zero, covert the result back to dollars and output the result.

Explanation:

The program converts the actual price of the item and the amount paid to cents (where a dollar is equal to 100 cents). The variables are subtracted to get the change to be refunded, the result is converted back to dollars as the actual change to be paid.

You might be interested in
The software that requests mail delivery from the mail server to an Internet device is known as mail ____ software.
OleMash [197]

The software that requests mail delivery from the mail server to an Internet device is known as mail client software.

Explanation:

Mail client software is a form of communication in which electronic messages are created and transferred between two or multiple devices connected to a network series or stream.

8 0
3 years ago
Brandack is a leading manufacturer of storage devices. During a span of every five years, it produces one high-performance stora
Ede4ka [16]

Answer:

S-curve pattern of innovation

Explanation:

Based on the information being provided with regards to Brandack's business it seems that this scenario best illustrates the S-curve pattern of innovation. This is a pattern that describes a the slow rise as a new product enters the market, followed by a rapid increase in profit as the product enters it's maturity stage, and finally a constant decline in profit as it approaches the end of it's life cycle. Usually occurring when a new or updated version of the product is being introduced into the market. Which for Brandack is every five years.

If you have any more questions feel free to ask away at Brainly.

3 0
3 years ago
_____ is the operation of setting a variable to a value.
Helen [10]

Answer:

Assignment is the operation of a variable to a value

3 0
3 years ago
When computer boots which I pont program starts first? O Operating System O Metaphor System O Basic System O Computer System​
beks73 [17]
The answer is Operating system
8 0
3 years ago
Steeler corporation is planning to sell 100,000 units for 2.00 per unit and will break even at this level of sales fixed expense
olga_2 [115]

Answer:

1.25 per unit

Explanation:

Number of units to sell = 100,000

Price per unit = 2

Fixed expense = 75000

At break even point :

Revenue = total expenses

Total expenses = fixed cost + variable cost

Let variable cost = x

Revenue = units to sell * price per unit

Revenue = 100,000 * 2 = 200,000

Hence,

Fixed cost + variable cost = Revenue

75000 + x = 200,000

x = 200, 000 - 75000

x = 125,000

Variable cost = 125,000

The variable expense per unit is thus :

Variable expense / number of units

125,000 / 100,000 = 1.25 per unit

7 0
3 years ago
Other questions:
  • What can be used to describe and document the analysis and design of complex software systems?
    14·1 answer
  • When a structure satisfies all the properties of a relation except for the first item—in other words, some entries contain repea
    7·1 answer
  • Which method of deleting files can be used in windows xp and vista?
    12·1 answer
  • Which of the following is a reason photographing animals can be difficult?
    9·2 answers
  • What types of applications are particularly well suited for handheld devices? what common applications are particularly well sui
    12·1 answer
  • Change the shape fill color to Dark Red. It is the first option in the Standard Colors section of the color palette.
    13·1 answer
  • Write a MATLAB program using afor loopto determine the number of values thatarepositive, the number of values that are negative,
    11·1 answer
  • Write a for loop to print all elements in courseGrades, following each element with a space (including the last). Print forwards
    9·1 answer
  • Write a for loop to populate array userGuesses with NUM_GUESSES integers. Read integers using cin. Ex: If NUM_GUESSES is 3 and u
    9·1 answer
  • How does our behavior change when we know we're being watched?
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!