Questions tagged [gpa]

21 questions
-2
votes
1 answer

Why is my program requiring two lines of input and why is my GPA calculation wrong c#?

I am making a program to calculate GPA. I have it mostly working, but I can't figure out why it is asking for 2 inputs and why the calculation of GPA is wrong. I also need to make it so that I can input uppercase or lowercase letters. If you can…
-2
votes
2 answers

How to read from user 2 values in python and find the highest GPA?

How do I write a python code to read from user the Student Name and GPA in one line, but if user enter a word like (off) the program stops .. I want to use while loop and Calculate and print the highest GPA and student name? 2 values = First int ..…
-2
votes
1 answer

How do I save information reached through a method to a variable?

I am making a program to calculate someone's GPA based user input. For one of the methods I am writing, I ask the user to enter a letter grade. I then convert the letter to the corresponding GPA. How do I save this GPA to a variable? Would I save it…
-2
votes
2 answers

How to make my sum method, which uses a for loop on a list, work correctly?

I am writing a program to calculate GPA and print a transcript. I am having some issues with the methods I have created to get the sum of a semesters gpa. Here's relevant code: double sumGP; ArrayList semesterGPs = new…
Kane
  • 13
  • 3
-3
votes
2 answers

Need to create GPA Calculator to run in command line

Need to write a GPA calculator using the provided dictionary to output the gpa based on the 4 arguments of letter grades. I can get the code to run in google colab or other IDEs, but I get no output in CL. Can someone point me to what I am…
-3
votes
2 answers

Make a Program in Python that calculates the student's GPA?

I am in need of assistance on a coding question in Python. I have to calculate a student’s GPA. The program must ask them how many classes they are taking, then ask them to enter the grades for each class and if it is weighted. The program should…
Anna Smith
  • 1
  • 1
  • 2
1
2