Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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:
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: 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started