Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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. image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

#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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Development For Dummies

Authors: Allen G. Taylor

1st Edition

978-0764507526

More Books

Students also viewed these Databases questions

Question

How does your language affect the way you think?

Answered: 1 week ago