Question: I am working on a compilation program and my build keeps failing although the program itself showed no errors as I was going thru and

I am working on a compilation program and my build keeps failing although the program itself showed no errors as I was going thru and creating it. Could someone please help me figure out why I am getting the errors and how to work around it. I am working on a compilation program and my build keeps failingalthough the program itself showed no errors as I was going thruand creating it. Could someone please help me figure out why Iam getting the errors and how to work around it. #include #include#include #include #include using namespace std; eint main() //Challenge 17, Property Tax1/Madison County collects property taxes on the assessed value of property, which

#include #include #include #include #include using namespace std; eint main() //Challenge 17, Property Tax 1/Madison County collects property taxes on the assessed value of property, which is 60 percent of its actual value. For example, if a house is valued at $158,000, its assessed value const double ASSESS_FACTOR = .60; // Factor to figure assessment value double actualValue, assessedValue, taxRate, propertyTax; // Actual value of property // Assessed value of property // County tax amount per $100 // Amount of tax on property 1/ Get user input cout > actualValue; cout > taxRate; // Calculation assessedValue = actualValue * ASSESS_FACTOR; property Tax = (assessedValue / 100) * taxRate; // Display results cout > actualValue; cout > taxRate; // Tax Calculations assessedValue - actualValue * ASSESS_FACTOR - SENIOR_EXEMPTION; propertyTax = (assessedValue / 100) * taxRate; quarterlyPmt = property Tax / NUM_QTRS; // Display results cout > principal; cout > interestRate; cout > timesCompounded; 138 // Calculate interest earned and amount in account at end of one year finalBalance = principal * pow((1 + (interestRate / timesCompounded)), timesCompounded); interestEarned = finalBalance - principal; interestAsPct = interestRate * 100; 139 140 145 146 // Display results cout ------ Build started: Project: Lab 420, Configuration: Debug Win32 ---- 1>Lab 420.cpp 1>C:\Users\ashle\Desktop\School\Programming Spring 2020 Labs Lab 420\Lab 420\Lab 420\Lab 420.cpp (48,3): error C2374: 'ASSESS_FACTOR': redefinition; multiple initialization 1>C:\Users\ashle\Desktop\School Programming Spring 2020\Labs\Lab 420\Lab 420\Lab 420\Lab 420.cpp(18): message : see declaration of 'ASSESS_FACTOR' 1>C:\Users\ashle\Desktop\School\Programming\Spring 2020\Labs\Lab 420\Lab 420\Lab 420\Lab 420.cpp (54,20): error C2086: 'double actualValue': redefinition 1>C:\Users\ashle\Desktop\School\Programming Spring 2020 Labs Lab 420 Lab 420\Lab 420 Lab 420.cpp (20): message : see declaration of 'actualValue' 1>C:\Users\ashle\Desktop\School Programming Spring 2020\Labs\Lab 420\Lab 42 55,16): error C2086: 'double assessedValue': redefinition 1>C:\Users\ashle\Desktop\School\Programming Spring 2020\Labs\Lab 420\Lab 420\Lab 420\Lab 420.cpp (21): message : see declaration of 'assessedValue' 1>C:\Users\ashle\Desktop\School\Programming Spring 2020\Labs\Lab 420\Lab 420\Lab 420\Lab 420.cpp (56,10): error C2086: 'double taxRate': redefinition 1>C:\Users\ashle\Desktop\School\Programming\Spring 2020\Labs\Lab 420\Lab 420\Lab 420\Lab 420.cpp(22): message : see declaration of 'taxRate' 1>C:\Users\ashle\Desktop\School Programming Spring 2020\Labs\Lab 420\Lab 420\Lab 420\Lab 420.cpp (57,14): error C2086: 'double property Tax': redefinition 1>C:\Users\ashle\Desktop\School\Programming Spring 2020\Labs\Lab 420\Lab 420\Lab 420\Lab 420.cpp(23): message : see declaration of 'property Tax' 1>C:\Users\ashle\Desktop\School\Programming\Spring 2020\Labs\Lab 420\Lab 420\Lab 420\Lab 420.cpp(92,13): warning C4244: '=': conversion from 'time_t' to 'unsigned int', possible loss of data 1>Done building project "Lab 420.vcxproj" -- FAILED. n.. . - ---- - -- - - - --- #include #include #include #include #include using namespace std; eint main() //Challenge 17, Property Tax 1/Madison County collects property taxes on the assessed value of property, which is 60 percent of its actual value. For example, if a house is valued at $158,000, its assessed value const double ASSESS_FACTOR = .60; // Factor to figure assessment value double actualValue, assessedValue, taxRate, propertyTax; // Actual value of property // Assessed value of property // County tax amount per $100 // Amount of tax on property 1/ Get user input cout > actualValue; cout > taxRate; // Calculation assessedValue = actualValue * ASSESS_FACTOR; property Tax = (assessedValue / 100) * taxRate; // Display results cout > actualValue; cout > taxRate; // Tax Calculations assessedValue - actualValue * ASSESS_FACTOR - SENIOR_EXEMPTION; propertyTax = (assessedValue / 100) * taxRate; quarterlyPmt = property Tax / NUM_QTRS; // Display results cout > principal; cout > interestRate; cout > timesCompounded; 138 // Calculate interest earned and amount in account at end of one year finalBalance = principal * pow((1 + (interestRate / timesCompounded)), timesCompounded); interestEarned = finalBalance - principal; interestAsPct = interestRate * 100; 139 140 145 146 // Display results cout ------ Build started: Project: Lab 420, Configuration: Debug Win32 ---- 1>Lab 420.cpp 1>C:\Users\ashle\Desktop\School\Programming Spring 2020 Labs Lab 420\Lab 420\Lab 420\Lab 420.cpp (48,3): error C2374: 'ASSESS_FACTOR': redefinition; multiple initialization 1>C:\Users\ashle\Desktop\School Programming Spring 2020\Labs\Lab 420\Lab 420\Lab 420\Lab 420.cpp(18): message : see declaration of 'ASSESS_FACTOR' 1>C:\Users\ashle\Desktop\School\Programming\Spring 2020\Labs\Lab 420\Lab 420\Lab 420\Lab 420.cpp (54,20): error C2086: 'double actualValue': redefinition 1>C:\Users\ashle\Desktop\School\Programming Spring 2020 Labs Lab 420 Lab 420\Lab 420 Lab 420.cpp (20): message : see declaration of 'actualValue' 1>C:\Users\ashle\Desktop\School Programming Spring 2020\Labs\Lab 420\Lab 42 55,16): error C2086: 'double assessedValue': redefinition 1>C:\Users\ashle\Desktop\School\Programming Spring 2020\Labs\Lab 420\Lab 420\Lab 420\Lab 420.cpp (21): message : see declaration of 'assessedValue' 1>C:\Users\ashle\Desktop\School\Programming Spring 2020\Labs\Lab 420\Lab 420\Lab 420\Lab 420.cpp (56,10): error C2086: 'double taxRate': redefinition 1>C:\Users\ashle\Desktop\School\Programming\Spring 2020\Labs\Lab 420\Lab 420\Lab 420\Lab 420.cpp(22): message : see declaration of 'taxRate' 1>C:\Users\ashle\Desktop\School Programming Spring 2020\Labs\Lab 420\Lab 420\Lab 420\Lab 420.cpp (57,14): error C2086: 'double property Tax': redefinition 1>C:\Users\ashle\Desktop\School\Programming Spring 2020\Labs\Lab 420\Lab 420\Lab 420\Lab 420.cpp(23): message : see declaration of 'property Tax' 1>C:\Users\ashle\Desktop\School\Programming\Spring 2020\Labs\Lab 420\Lab 420\Lab 420\Lab 420.cpp(92,13): warning C4244: '=': conversion from 'time_t' to 'unsigned int', possible loss of data 1>Done building project "Lab 420.vcxproj" -- FAILED. n

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!