Best writers. Best papers. Let professionals take care of your academic papers

Order a similar paper and get 15% discount on your first order with us
Use the following coupon "FIRST15"
ORDER NOW

include int main() { /* variables definition */ float price, salestax, totalprice;

#include <stdio.h> int main() { /* variables definition */

float price, salestax, totalprice;

/* Prompt user to input price in dollars */

printf(“Enter the price in dollars: \n”);

// Input the price in dollars

scanf(“%f”, &price);

/* Prompt user to input state salestax */

printf(“Enter the state salestax: \n”);

// Input the salestax

scanf(“%f”, &salestax);

// Calculate the total price

totalprice = price + (price* SalesTax);

printf(“Price with tax is: %f\n”, totalprice);

return 0;

}

That is my code that I am working on. I cant figure out how to make it execute once I provide the inputs. I’m not entirely sure if everything is correct or not. Pleas help stressed out.

 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"