Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ assignment 2 Objective: The purpose of this lab project is to expose you to declaring variables, defining constants using IPO input, Processing, and output

C++ assignment 2

Objective:

The purpose of this lab project is to expose you to declaring variables, defining constants using IPO input, Processing, and output in C++. To generate headings and reports.

Problem Specification:

You are working for the Family Budget Assistance Center. Your boss has asked you to write and execute a program that will analyze familys data. Input consists of the following:

Family name (a string)

Family ID number (int)

Family Size/Number of family Members (int)

Income (float)

Total debt (float)

Your program should output the following:

a. An appropriate header.

b. The familys identification number, number in family members, income, and total debt.

c. Predicted family living expenses ($5000.00 per family member).

d. The monthly payment necessary to pay off the debt in one year. debt / 12

e. The amount the family should save (family size * 0.02* (income debt).

f. Your service fee (1% of the income).

Run your program for the following two families:

_________________________________________________

Name ID Number Size Income Debt

__________________________________________________

Diago, J 51505 4 28,000.00 4800.00

Smith, L 55606 5 39,000.00 3200.00

___________________________________________________

Output for the first family could be:

%%%%%%%%%%%%%%%%%%%%%%%%%%%

Family budget Assistance Center

March 2023

Telephone: (800) 555-1234

%%%%%%%%%%%%%%%%%%%%%%%%%%%

Name: Doago, J ID# 51505

Family size: 4

Annual income: $28000.00

Total debt: $4800.00

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

Expected living expenses: $20000.00

Monthly payment: $400.00

Savings: $1856.00

Service fee: $280.00

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

Thank you for using this Service.

Requirements:

Comment thoroughly. Include: your name, course #, date, and a brief explanation of does the program do.

Follow good, structured programming practices, you should solve this program by hand before you try and write the code. You should calculate the results for each of the inputs before you write the program and ensure that your program gives you the expected output for those inputs before submitting.

Create two constants one for the living expense per person (5000.00) and for service rate (.01).

Calculate using the two constants you declared, and whatever values the user enters.

Output the report as listed above.

Grading criteria:

15 points Good programming practices: Proper spacing, comments, use of variables, indentation and appearance of program.

15 points Program is consistent with programming coding standards and IPO.

5 points Constants are defined correctly and used.

5 points Types are used as specified.

15 points Proper headings, footing and titles are printed.

10 points output is aligned using manipulators.

10 points Flowchart or algorithm is handed-in and is correct.

20 points Program runs correctly and produces the intended results.

5 points multiple test runs are submitted (programs output)

Submission Details:

Submit a printout of the following:

The source file.

Algorithm Flowchart or pseudo-code

Test results using the given data sets above.

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 Management System MCQs Multiple Choice Questions And Answers

Authors: Arshad Iqbal

1st Edition

1073328554, 978-1073328550

More Books

Students also viewed these Databases questions

Question

Use a three-step process to develop effective business messages.

Answered: 1 week ago