I am trying to make a program to calculate final grades. The user inputs x amount of assignments, and based on that I am looking to make x variables asking for the grade recieved and the weight of each assignment. For example, (user selects 20 assignments) (as input): enter assignment1 grade received, enter assignment2 grade received, ............... enter assignment20 grade received. (and the same for weights)
There needs to be a variable per assignment and I am unsure how to essentially convert an integer into a variable. (lists are not allowed). Please feel free to offer suggestions. Thanks