Question:
Logic and design help....?
mcdanielnc89
2009-02-11 08:19:15 UTC
I am needing help understanding this... Please don't gimmie the crap about not going to tell you how to do your homework. its not homework first of all. it's an example of what i have to do for my homework and I can't do my homework unless i understand this....


A Chartered Financial Analyst wants a program that will produce a report to show her clients the benefits of saving for retirement. The report should show 12 predicted account values for each client (each on a separate page). The report will assume the client will invest $10,000 a year for 10, 20, 30 or 40 years. The report will show the return when $10.000 is invested annually in Treasury Bills (3% return), corporate bonds (6% return), and stocks (9% return).
Read from File:
client name: Anthony Martin
client address: 123 Main Street, Anytown USA
Sample Calculations:
10000 (amount invested each year in stocks)
balance year i = balance year i-1 times 1.09 + 2000 (stock component of account)
(TBill and Corporate Bond components are calculated in a similar fashion)
Sample Calculations:
stock component at 10 years: $175,605
stock component at 20 years: $567,645
stock component at 30 years: $1,495,750
stock component at 40 years: $3,692,920
Your logic should produce a table formatted as follows:
TBills for 10 years Corporate Bonds for 10 years Stocks for 10 years
TBills for 20 years Corporate Bonds for 20 years Stocks for 20 years
TBills for 30 years Corporate Bonds for 30 years Stocks for 30 years
TBills for 40 years Corporate Bonds for 40 years Stocks for 40 years
a) Identify required variables and choose descriptive names and data types for each.
b) Draw the hierarchy chart for this program.
c) Write the pseudocode for this program.



STEP 1: Variable List and Data Types

List of all variables and their respective data types that are used in the algorithm . Variable names should follow naming rules and conventions.
STEP 2: Hierarchy Chart

Use a flowchart to create a hierarchy chart for the program.
STEP 3: Pseudocode for Main()

Write the pseudocode for the Main() module. The Main() module will call the HouseKeeping() module, loop through each client record in the file, and then call the FinishUp() module. Use the flowchart in Step 2 as a guide.
STEP 4: Pseudocode for Housekeeping()

Write the pseudocode for the HouseKeeping() module. It should declare the variables to be used in the program (using proper naming conventions), open the file, and read a client record. Use the flowchart in Step 2 as a guide.
STEP 5: Pseudocode for Headings()

Write the pseudocode for the Headings() module. The header should include a name for the report, CFA's name and title, date, and the client's name and address. Use the flowchart for Step 2 as a guide.
STEP 6: Pseudocode for MainLoop()

Write the pseudocode for the MainLoop() module. This module will call the Headings() module and assign a value (10) to a counter for the number of years. It will include a loop that will execute until the last year (40) has been exceeded. Within the loop it will call the CalcSavings() module and after the loop it will read another client record. Use the flowchart for Step 2 as a guide.
STEP 7: Pseudocode for FinishUp()

Write the pseudocode for the FinishUp() module. Its only purpose is to close the file. Use the flowchart for Step 2 as a guide.
STEP 8: Pseudocode for CalcSavings()

Write the pseudocode for the CalcSavings() module. This module will first print the year (10, 20, 30, or 40). It will then assign the return rate for Treasury Bills to an appropriate variable. Next, it will have a loop that will execute until the maximum rate (9%) has been exceeded. The FinishLine() module will be called within the loop. Use the flowchart for Step 2 as a guide.
STEP 9: Pseudocode for FinishLine()

Write the pseudocode for the FinishLine() module. This module will perform the calculations for the account balances. First, it will require a counter initialized to 1 and a variable to hold the total initialized to the the amount invested (10000). Next, it should have a loop that will execute until control variable exceeds the number of years. Within the loop you should 1) calculate the return on the investment and add it to the current total to get the new total; 2) add the investment amount to the total to get the new total, and 3) increment the counter. It should then print the total and increment (appropriately) the rate. Use the flowchart for Step 2 as a guide.
STEP 10: Using Arrays

Briefly explain how arrays could be used in the above application. Specifically list the name(s) of the arrays and describe the data that would be stored. Clearly explain how the array(s) would be used and how the use of an array would improve the design of the program's logic.
Three answers:
Jogger2425
2009-02-11 08:45:12 UTC
You did a lot of work posting that question. But, you are still going to get "the crap about not going to tell you how to do your homework." You see, you didn't tell us what kind of problem you have in understanding this.



You have to narrow it down for us. Otherwise, it looks like you expect us to either do your homework for you or explain every concept that might be useful in solving the problem.



If you don't understand it, you need to talk with your professor.



If it is a language barrier, try to find someone who can translate it to your native language. Or, at least ask about the words or expressions you don't understand.
Uninformed hence not consenting
2009-02-11 16:25:58 UTC
I'm pretty sure you're not going to get a proper answer to your question Few, if any, people will take the time to read all of that.
bhavana
2009-02-11 16:41:11 UTC
information technology tutorial

http://ittutorial.info/


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...