Ask your own question, for FREE!
Computer Science 22 Online
OpenStudy (anonymous):

i need help Writing a program that will compute the total sales tax on a $52 purchase. Assume the state sales tax is 4 percent and the county sales tax is 2 percent.

OpenStudy (anonymous):

What language? Here's some pseudocode: taxState = input() taxCounty = input() purchase = input() taxTotal = 0.01 * purchase * (taxState + taxCounty) This is how the program will run with your arguments: taxState = 4 taxCounty = 2 purchase = 52 taxTotal = 3.12 since \[T = \frac{4+2}{100}*52\]

OpenStudy (anonymous):

C++

OpenStudy (anonymous):

1 dollar = how many rupees??????????/

OpenStudy (anonymous):

#include <iostream> using std::cin; using std::cout; using std::endl; int main(int argc, char** argv) { double statetax, countytax, purchase, total; cin >> statetax; cin >> countytax; cin >> purchase; total = 0.01 * purchase * (statetax + countytax); cout << total << endl; return 0; }

OpenStudy (anonymous):

thank you agdgd you helped me a lot

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!