Ok Guy's,
Here is my code for a Tax Calculation program (beginning C Programming Concepts class). I am trying to figure out how to let the user input the location as well as the total taxable amount.
Code:
#include<stdio.h>
int main (void)
{
int tax_input;
tax_calculator();
return 0;
}
int tax_calculator (void)
{
// The total sales for each store is
float iOperand1=0.0;
//Display Program Header
printf ("\nKudler Fine Foods tax calculator\n");
//Calculate and print the Tax for Del Mar
printf ("\nEnter the total taxable amount of purchase at the Del Mar location: ");
scanf ("%f", &iOperand1);
printf ("The tax on the purchase at the Del Mar location is %.2f\n", iOperand1*.0725);
//Calculate and print the Tax for Encinitas
printf ("\nEnter the total taxable amount of purchase at the Encinitas location: ");
scanf ("%f", &iOperand1);
printf ("The tax on the purchase at the Encinitas location is %.2f\n", iOperand1*.075);
//Calculate and print the Tax for La Jolla
printf ("\nEnter the total taxable amount of purchase at the La Jolla location: ");
scanf ("%f", &iOperand1);
printf ("The tax on the purchase at the La Jolla location is %.2f\n", iOperand1*.0775);
getch();
return 0;
}
I know that this is not formatted correctly and I am sorry for that. I am still trying to figure out how to format code using MS VC++ Express.