Question: im getting a taxrate was not declared in this scope C: cpp Budget > g++ -Wextra 0 Budget Budget.cpp Budget.cpp: In function int main(): Budget,cpp:15:1:

C: \cpp\ Budget > g++ -Wextra 0 Budget Budget.cpp Budget.cpp: In function "int main()": Budget,cpp:15:1: error: 'tax_rate' was not declared in this scope 15 I tax_rate =0.16 c: \cpp\Budget // Clothes and accessories spending rate clothes_rate =0.12 //School supples spending rate school_supplies_rate =0.01 //Savings bond spending rate: savings bond rate =0.3 //Parent savings bond contribution rate parent_contribution_rate =0.5 //Get pay rate from user pay_rate - float(input("Hourly pay rate: $ ) //Get hours worked for each week from user week1_hours - float(1nput("Hours worked inweek 1: ")) week2 hours = floot(input("Hours worked in week 2i ")) wenk3 hours = float (Input ("Hours worked inweek 3: ")) week4_hours = float (input ("Hours worked 1nweek 4i 7)) weeks hours = float (input ("Hours worked inweek 5 f ")) I/calculate weekly incone and total incone week1y_incone - pay_rate meek1 hours
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
