You are viewing this question as it will appear in the manual grading interface.
Return to the normal view when
you are done.
Correct answer
Reveal suggested answer
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | #include <iostream> #include <iomanip> using namespace std; #define STATE_TAX 7.25 #define COUNTY_TAX 1.25 #define CITY_TAX 1.50 int main(void) { double price; double tax; cin >> price; tax = price * (STATE_TAX + COUNTY_TAX + CITY_TAX) / 100; cout << fixed << setprecision(2) << price + tax << endl; return 0; } |
Student view placeholder
In student views this area is used for assessment and score info.
Tools
Staff information
Variant
Started at:
2026-09-19 07:59:24 (CDT)
Duration:
0s
Show/Hide answer
{}