Given the ShoeType structure type-definition.Write a function for the declaration (prototype).

```
struct ShoeType { char style; double price; };
void setSalePrice(ShoeType& Item, double discountRate);
//discountRate =(discounted price)/(regular price)
//Adjusts sale price to reflect the specified discount.
code}


```
void setSalePrice(ShoeType& Item, double discountRate)
{
Item.price = Item.price * discountRate;
}
```

Use of reference parameter causes changes inside the function to be reflected outside.

Computer Science & Information Technology

You might also like to view...

The CSS3 3D Transformation function that moves the object offX pixels horizontally, offY pixels vertically, and offZ pixels along the z-axis is ____.

A. rotate3d(offX, offY, offZ, angle) B. scale3d(offX, offY, offZ) C. matrix3d(offX, offY, …, n) D. translate3d(offX, offY, offZ)

Computer Science & Information Technology

A programming language is a notation for representing algorithms and data structures. List two advantages and two disadvantages of using a programming language as sole notation throughout the development process.

What will be an ideal response?

Computer Science & Information Technology

Which of the following is NOT a type of kiosk?

A. financial B. ticket C. media D. visitor

Computer Science & Information Technology

When in break mode, you can use ____ to examine the value of variables.

A. DataTags B. DataTips C. DebugTags D. DebugTips

Computer Science & Information Technology