Hierarchy chart?

I'm making a grading program and I'm required to have a hierarchy chart. The problem is my instructions are quite vague on how to actually properly make one. I've looked at countless examples but I'm not sure I have everything where it should be.

My program has a splash screen then a main menu that has 3 options, input grade information, output grade information or exit. There are calculations done and before/during the output? I don't exactly know where to place them.

Chart:
https://i.imgur.com/0H0amex.png

Program:
https://gist.github.com/Newtochr/4035e30bbe9c352384f323fe70cf6746
Last edited on
my instructions are quite vague on how...

What may be unclear to you might not be for us. If possible post the entire assignment instructions, or give us a link so we can see what is required. Please.
Why have a bunch of numbered variables?
Why not a vector or array instead?
And I don't see the point of initializing all your strings to "XXXX".
Just leave them empty.

 
string grade[6];   // good enough 

Then, strangely, you are setting a bunch of other numbered variables to the atof values of those strings, which all contain "XXXX"! And then you never use these variables anyway ... your compiler must be screaming warnings at you.

As far as I can tell, this is the structure of your program:

main
  splash_scrn
  transition
  menu_scrn
    transition
    output_scrn
    error_scrn

Okay so the assignment is to turn my original grading program into one that has a menu and is modularized using functions.

Original program: https://gist.github.com/Newtochr/4035e30bbe9c352384f323fe70cf6746

Why not have a bunch of numbered variables? Unsure, I am just a noob and this is the way I was able to accomplish the task. Why convert them? It was part of the assignment to receive the data as strings and then convert to double or int using atof or atoi. As far as I know the "XXXX" is just a placeholder and I was trying to emulate the way my professor made his own example program which used those as well. Lastly, I am only now learning arrays.

Thanks for the feedback on the code I appreciate it although I was mainly trying to get help on what a accurate hierarchy chart would look like that represents my program.


Edit: What I mean was vague was his teaching on how to compose a hierarchy chart, the assignment was said already, it's making a heiarchy chart of my program. The program didn't have any specific instructions besides use a transition function, an error trap and link my previous input and output screens to the main menu.

Here is the chart instructions:

"To show relationships between various modules in a program often a "Hierarchy chart" is used. Each module is represented by a rectangle with connecting lines showing general sequence of operation. Typically execution trends are from top to bottom and from left to right."
Last edited on
Topic archived. No new replies allowed.