Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

*** This is in response to the Expert Comment request for clarification below:*** I spoke to the instructor and was told that there is no

*** This is in response to the Expert Comment request for clarification below:***

I spoke to the instructor and was told that there is no tax formula needed. All the info needed to populate the fields is in the test case below (the paragraph starting with "Amy has acquired."). The only fields that require a formula is on 6, 7b, 10, 15 which involve straight forward adding or subtraction which are all on page2. Question 8 on page2 is just if someone types in SINGLE, then a 12000 is populated in the field, versus if MARRIED is selected, then 24000 is populated into he field. For questions like "Your Standard Deduction: ___ You were born before January 2, 1954" and "Spouse Standard Deduction: ___ Spouse was born before January 2, 1954" on page1, the instructor said we can put any number and it will not factor into any adding/subtracting calculations on page2. Also on any questions like "Spouse is blind? on pg1, the instructor said a yes/no answer is a sufficient answer. The instructor just wants to see that we can make a program which asks us for information, then automatically populates the fields for us after answering all the questions, nothing fancy. I appreciate you looking at this and helping me, thank you very much.

Hi, I would like to build a C++ based program where the programs asks you questions for a tax-filing form, and then populates the fields for you automatically. The test case we are using for the program is:

Amy has acquired a job as a Senior Software Developer at a company that develops online trading platforms for small and midsize CPA and Financial Planning firms.

Her sources of income for 2018 are: Salary 107000.00 Tax-Exempt Interest 125.00 Taxable Interest 90.00 Qualified Dividends 400.00 Ordinary Dividends 800.00 Capital gain .......... 7000.00 Adjustments ........... 9500.00 (IRA Deduction/Student Loan Interest)

What the project is asking us to produce is:

(1) Console output display for Page 1, Form 1040 Individual Income Tax Return. ( See Exhibit A1 )

(2) Console output display for Page 2, Form 1040 Individual Income Tax Return. ( See Exhibit A2 )

(3) Define Variables and create input code for each line(field) in EXHIBIT A1 for populating the fields.

(4) Define Variables and create input code for input lines(fields) 1 thru 3c, 6 thru 10 in EXHIBIT A2 for populating the fields.

(5) Demonstrate your code using the test case specified.

This is the Exhibit A1 which shows what should be on page 1:

-------------------------------------------------------------------------

Console output format for Page 1, Form 1040 Individual Income Tax Return

-------------------------------------------------------------------------

Filing Status: _________________ { SINGLE, MARRIED }

First Name: _________________

Last Name: _________________

SSN: _________________

Your Standard Deduction: ___ You were born before January 2, 1954

___ You are blind

Spouse First Name: _____________________

Spouse Last Name: _____________________

Spouse SSN: _____________________

Spouse Standard Deduction: ___ Spouse was born before January 2, 1954

___ Spouse is blind

Home Address: ________________________________

City: ________________________________

State: ________________________________

ZIP code: ________________________________

Exhibit A2 shows what page 2 should look like:

--------------------------------------------------------------------------

Console output format for Page 2, Form 1040 Individual Income Tax Return

--------------------------------------------------------------------------

1. Wages ....................................................... _________

2a Tax-Exempt Interest ............................... _________

2b Taxable Interest ............................................ _________

3a Qualified Dividends ............................... _________

3b Ordinary Dividends .......................................... _________

3c Capital Gain Distribution (or loss).......................... _________

4a IRAs. Pensions, & Annuities ....................... _________

4b Taxable Amount .............................................. _________

5a Social Security Benefits .......................... _________

5b Taxable Amount .............................................. _________

6 Total Income [ 1+2b+3b+3c+4b+5b ] ........................... _________

7a Adjustments to Income ....................................... _________

7b Adjusted Gross Income (Line 6 - Line 7a) .................... _________

8 Standard Deduction .......................................... _________

[Single: 12000; Married: 24000 or Standard Deduction Chart]

10 Taxable Income. Line7b-Line8, if less than 0, enter 0 ...... _________

11a Tax ........................................................ _________

[ from Tax Table or Qualified Dividends and

Capital Gain Tax Worksheet ]

11b Alternative Minimum Tax [from Form 6251 Line 11] .......... _________

15 Total Tax. [ Line 11a + Line 11b ] ......................... _________

Here an example of the what parts of the code should look like (this is just a portion):

#include #include #include using namespace std;

const int SINGLE(1); const int MARRIED(2);

int main() { int FS(0); cout << "Enter Filing Status (1 for SINGLE -or- 2 for MARRIED): "; cin >> FS;

string fname(""); cout << "Enter First Name: "; cin >> fname;

cout << " Form 1040 Individual Income Tax Return Page 1 ";

cout << "Filing Status: "<< ( FS==SINGLE ? "SINGLE" : "MARRIED" ) < << "First Name: "<

cout << fixed << setprecision(2) << showpoint;

double Line1(0); cout << "Enter Wages: "; cin >> Line1;

double Line2a(0); cout << "Enter Tax-Exempt Interest: "; cin >> Line2a;

cout << " Form 1040 Individual Income Tax Return Page 2 ";

cout << "1 Wages ......................................................." << setw(10) << Line1 << endl

<< "2a Tax-Exempt Interest ..............................." << setw(10) << Line2a << endl;

cout << " Form 1040 Individual Income Tax Return Page 1 ";

cout<<"Filing Status : ______________ { SINGLE, MARRIED } " <<"First Name : _________________ " <<"Last Name : _________________ ";

cout << " Form 1040 Individual Income Tax Return Page 2 ";

cout <<"1 Wages ....................................................._________ " <<"2a Tax - Exempt Interest ............................._________ " <<"2b Taxable Interest .........................................._________ " <<"3a Qualified Dividends ..............................._________ ";

cout << "1 Wages ....................................................... _________ " << "2a Tax-Exempt Interest ............................... _________ " << "2b Taxable Interest ............................................ _________ " << "3a Qualified Dividends ............................... _________ " << "3b Ordinary Dividends .......................................... _________ ";

}

Thank you very kindly for your help!!

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

More Books

Students also viewed these Databases questions

Question

What is a fully covered currency coupon swap?

Answered: 1 week ago