• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 8 pages
Exam (elaborations)

D598 Analytic Programming Task 1: Program Planning — Complete Performance Assessment, Planning Report and Solutions | WGU

Document preview thumbnail
Preview 2 out of 8 pages

D598 Analytic Programming Task 1: Program Planning — Complete Performance Assessment, Planning Report and Solutions | WGU

Content preview

D598 Analytic Programming -- Task 1 (Program Planning)
By Shanikwa Haynes

A: FLOWCHART

, B: PSEUDOCODE


1. Begin

2. Import data from the CSV file into a DataFrame

3. Locate duplicate entries in the dataset

4. If duplicates exist:
a. Remove the duplicate entries

5. Group the data by the 'Business State' field

6. For each of the following fields:
- Total Long-term Debt
- Total Equity
- Debt to Equity Ratio
- Total Liabilities
- Total Revenue
- Profit Margin
Do:
a. Calculate the mean
b. Calculate the median
c. Calculate the minimum
d. Calculate the maximum

7. Save these summary statistics in a new DataFrame

8. Check if any Debt to Equity ratios are less than 0:
a. If true, filter and store those entries separately

9. Calculate the Debt to Income ratio (Total Debt / Total Revenue) for each entry

10. Store the new Debt to Income ratios in a new DataFrame

11. Merge the Debt to Income DataFrame with the original dataset

12. End

C1: FLOWCHART EXPLANATION and C2: PSEUDOCODE EXPLANATION
The flowchart and pseudocode presented are tightly aligned, using consistent terminology to
clearly depict the sequence of operations involved in the data processing workflow. Each
pseudocode instruction corresponds directly to a visual element in the flowchart, from the start of
the process to its conclusion. The flowchart begins with importing data and locating duplicate
entries, followed by a decision node—"Duplicates exist?"—which dictates whether the process
should proceed with data cleaning or continue directly to grouping the dataset by the 'Business
State' field. The next steps involve calculating summary statistics for six financial indicators, as
reflected in a single block summarizing statistical computations. These are then saved to a new
DataFrame. Another decision node—"Debt to Equity ratio less than 0?"—accurately represents

Document information

Uploaded on
October 27, 2026
Number of pages
8
Written in
2026/2027
Type
Exam (elaborations)
Contains
Questions & answers
$18.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
ScholarsAscend
3.7
(84)
Sold
527
Followers
40
Items
30963
Last sold
5 hours ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions