Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Other Programming (https://www.askmehelpdesk.com/forumdisplay.php?f=437)
-   -   Programming flowcharts in Visio (https://www.askmehelpdesk.com/showthread.php?t=376344)

  • Jul 16, 2009, 09:51 AM
    andyhaus1057
    Programming flowcharts in Visio
    Hi,
    I need help with this...

    A retail company must file a monthly sales tax report listing the total sales for the month, and the amount of state and county sales tax collected. The state sales tax rate is 4 percent and the county sales tax rate is 2 percent.

    I need to write a program that asks the user to enter the total sales for the month. The application should calculate and display
    a) the amount of county sales tax
    b) the amount of state sales tax
    c) the total sales tax (county plus state)
  • Jul 16, 2009, 11:41 AM
    Perito

    I'm afraid you're going to have to do this yourself. It's pretty straight-forward.

    1. Obtain the total sales for the month and save in TotalSalesBeforeTax.
    2. Multiply TotalSalesBeforeTax by 0.04 and save the resultant in "StateTax".
    3. Multiply TotalSalesBeforeTax by 0.02 and save the resultant in "CountyTax".
    4. Add StateTax and CountyTax and save the resultant in TotalTax.

    That is, unless the TotalSales is really the TotalReceipts, i.e. the sum of the value total receipts + sales tax + county tax. It this is the case,

    TotalSalesBeforeTax = TotalReceipts / 1.06
    Steps 2, 3, and 4 remain unchanged.

  • All times are GMT -7. The time now is 03:40 AM.