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.
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\]
C++
1 dollar = how many rupees??????????/
#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; }
thank you agdgd you helped me a lot
Join our real-time social learning platform and learn together with your friends!