Question

In: Computer Science

A vacation rental property management company must file a monthly sales tax report listing the total...

A vacation rental property management company must file a monthly sales tax report listing the total sales for the month and the amount of state and city sales tax collected. The state sales tax rate is 6 percent and the local city sales tax rate is 9 percent. Write a program (using functions) that asks the user to enter the total sales for the month. From this figure, the application should calculate and display the following:

The   amount of local city sales tax

The   amount of state sales tax

The   total sales tax (city plus state)

Please help

Solutions

Expert Solution

NOTE

#########

Programming language is not specified so the program is written in C

//########################## PGM START #################################

#include<stdio.h>

//function to find city tax
double cityTax(double sales){
   return sales*0.09;
}
//function to find state tax
double stateTax(double sales){
   return sales*0.06;
}
//main method
int main(){
   double salesAmount=0;
  
   printf("Enter the sales amount: ");
   scanf("%lf",&salesAmount);
   double cTax=cityTax(salesAmount);
   double sTax=stateTax(salesAmount);
   double totalTax=cTax+sTax;
   //printing sales tax for city , state and total tax
   printf("The amount of local city sales tax: %.2lf\n",cTax);
   printf("The amount of state sales tax: %.2lf\n",sTax);
   printf("The total sales tax (city plus state): %.2lf\n",totalTax);
      
   return 0;
}

//######################### PGM END ####################################

OUTPUT
########

################################## PYTHON PROGRAM ############

def cityTax(sales):
    return sales*0.09

def stateTax(sales):
    return sales*0.06

if __name__=="__main__":
    salesAmount=0
    salesAmount=float(input("Enter the sales amount: "))
    cTax=cityTax(salesAmount)
    sTax=stateTax(salesAmount)
    totalTax=cTax+sTax
  
    print("The amount of local city sales tax: {}".format(cTax))
    print("The amount of state sales tax: {}".format(sTax))
    print("The total sales tax (city plus state): {}".format(totalTax))

############################## END PROGRAM####################################


Related Solutions

Monthly Sales Tax A retail company must file a monthly sales tax report listing the total...
Monthly Sales Tax 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 5 percent and the county sales tax rate is 2.5 percent. Write a Python program with function(s) that asks the user to enter the total sales for the month. Make sure that you do not allow user to enter negative values for the total...
A retail company must file a monthly sales tax report listing the total sales for the...
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% and the county sales tax rate is 2%. Create an application that allows the user to enter the total sales from the month. From this figure, the application should calculate and display the following: 1. The amount of country sales tax 2. The amount of state...
Monthly Sales Tax Program A retail company must file a monthly sales tax report listing the...
Monthly Sales Tax Program 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. Write a program that asks the user to enter the total sales for the month. The application should calculate and display the amount of county sales tax, the amount of state sales...
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.
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 5 percent and the county sales tax rate is 3 percent. Create a GUI application that allows the user to enter the total sales for the month into a text field. From this figure, the application should calculate and display the following: The number of county sales tax...
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.
C programming Monthly Sales Tax Program 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. Write a program that asks the user to enter the total sales for the month. The application should calculate and display the amount of county sales tax, the amount of...
A retail company must file a monthly sales tax report listing the sales for the month and the amount of sales tax collected.
make it in C++ with pointerA retail company must file a monthly sales tax report listing the sales for the month andthe amount of sales tax collected. Write a program that asks for the month, the year,and the total amount collected at the cash register (that is, sales plus sales tax). Assumethe state sales tax is 4 percent and the county sales tax is 2 percent.If the total amount collected is known and the total sales tax is 6 percent,...
A retail company must file a monthly sales tax report listing the sales for the month and the amount of sales tax collected.
Must be done in Visual StudiosA retail company must file a monthly sales tax report listing the sales for the month and the amount of sales tax collected. Write a program that asks for the month, the year, and the total amount collected at the cash register (that is, sales plus sales tax). Assume the state sales tax is 4 percent and the county sales tax is 2 percent.If the total amount collected is known and the total sales tax...
This is the requirement: A property management company manages personal rental properties and charges them a...
This is the requirement: A property management company manages personal rental properties and charges them a management fee as the percentages of the rent amount. Write an application that lets the user create a management company and add the properties managed by the company to its list. Assume the maximum properties handled by the company is 5. Write a Data Manager Class named ManagementCompany that holds a list of properties in an array structure. This class will have methods to...
Design a pseudocode design to process a property tax report. A different tax amount is charge based on whether the property is a home or commercial property.
Design a pseudocode design to process a property tax report. A different tax amount is charge based on whether the property is a home or commercial property. If the home is owned, is it a residence or noresidence, the how much is it worth? If the property is commercial is a commercial building or commercial land, then how much is it worth? Process the problem for any number of input records. A zero(0) is entered for the property type after...
Sales Manager has an excel workbook listing properties for sale. If a property is sold, Select...
Sales Manager has an excel workbook listing properties for sale. If a property is sold, Select National Properties Group will finance the property loan for 30 years as 7.5% interest. If the monthly payment of a property is greater than $3000,000 the company will give the buyer a 1% discount on the selling price. Assignment: Calculated the column using the PMT Function to calculate the monthly payment for each of the properties. Then insert a calculated column using the IF...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT