# Author:
# Date: 5/9/25
# Exam 2, Problem 3 (1 out of 20 points)
""" In this program, you will write a function to plot a bar chart for a grade
distribution. The plot_dist function takes 5 non-negative integers as input,
representing the number of students earning letter grades A, B, C, D, and F.
The function returns a bar chart, as a string, with one '#' per student in the
format shown in the following examples:

Examples:
>>> print(plot_dist(3, 5, 6, 4, 1))
    #     
  # #     
  # # #   
# # # #   
# # # #   
# # # # # 
a b c d f
>>> print(plot_dist(0, 1, 0, 0, 0))
  #       
a b c d f
>>> print(plot_dist(1, 2, 3, 5, 0))
      #   
      #   
    # #   
  # # #   
# # # #   
a b c d f
>>> 

There is no main program required; you only need to implement the
function below. If you do write a main program for testing purposes, put the
main program code inside a main guard.

Write your code below:
"""
import sys

def plot_dist(a, b, c, d, f):
    """ Return a bar chart with 5 columns, one for each letter grade.
    The chart is labeled with 'a b c d f' on the bottom line, and each column
    has a stack of '#'s representing the number of students with that grade."""
    
    # implement this function

if __name__ == "__main__":
    a = int(sys.argv[1])
    b = int(sys.argv[2])
    c = int(sys.argv[3])
    d = int(sys.argv[4])
    f = int(sys.argv[5])
    print(plot_dist(a, b, c, d, f))
