Explore BrainMass

Explore BrainMass

    C Program to Execute Problem

    Not what you're looking for? Search our solutions OR ask your own Custom question.

    This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

    Please use C only and be clear about the steps.

    // use user-defined functions
    // (calculates different sales tax based on an item price)

    1. Ask the user to enter the price of an item.

    2. Get the item price from the user.

    3. Calculate the sales tax of the item:
    - 6.5% if the item costs less than $100.
    - 5% if the item costs $100 or more.

    4. Display the original item price and sales tax amount onto the screen.

    5. Calculate new cost of the item with the sales tax.

    6. Display the total price of the item onto the screen.

    © BrainMass Inc. brainmass.com September 27, 2022, 3:49 pm ad1c9bdddf
    https://brainmass.com/computer-science/c/c-program-execute-problem-456945

    SOLUTION This solution is FREE courtesy of BrainMass!

    Hi,

    Please see attached C code and the compiled executable file for the solution to the given problems.

    Hope this helps you in your studies.

    Best regards,

    This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

    © BrainMass Inc. brainmass.com September 27, 2022, 3:49 pm ad1c9bdddf>
    https://brainmass.com/computer-science/c/c-program-execute-problem-456945

    Attachments

    ADVERTISEMENT