Questions tagged [gpa]

21 questions
1
vote
1 answer

How to format outputs as a table in Java?

I'm trying to make a table out for a grade report, which should 5 columns, which are Class, Description, Units, Grade, and Grade Points. However, I cannot make the output aligned with each other. I'm just simply using "\t". Is there a way to make…
0
votes
2 answers

I've been working on this Python program and I've been having difficulties getting it to compile a z-score function

The premise of my project is that I've been tasked with having creating a Python code that takes in user input (specifically letter grades) and places them into an array, converts them into the appropriate number grade/gpa, then calculates the z…
0
votes
1 answer

Best average student(s) score (C#, LINQ, without loops)

Can I somehow calculate the average for different items and choose student(s) with best GPA? public static List LoadSampleData() { List output = new List(); output.Add(new…
0
votes
1 answer

Output to console group with the best GPA (using LINQ, without loops)

I need to output to the console the name of the group and the average score for each subject. But in Console.WriteLine Group and groupAverageMath are underlined with error "The name "Group"/"groupAverageMath" does not exist in the current…
0
votes
2 answers

How can I build my for loop in this GPA Calculator? Java

How can I build my for loop in this GPA Calculator? Brand new to Java, and for our class we are required to ask for user's grade and credit hours 4 times, then calculate their average. We were instructed to use switch statements and loops, but not…
0
votes
0 answers

GPA Calculator not Returning Corresponding Grades

I'm trying to calculate a student's GPA in C programming language with the code below but it's not returning the correct corresponding grade based on each score, feels like it just picks a random letter. #include #include…
0
votes
0 answers

How to calculate a student GPA in C Programming Language

I'm trying to calculate a student's GPA in C programming language with the code below but I keep getting this as output. The student is to input the grade point and unit for each course. To calculate the GPA, the sum of the grade points multiplied…
0
votes
1 answer

Finding the course with worst GPA in MySQL ... Where did my query go wrong?

Select title, credits, courseid, avg(grade) as AVG_Grade From Course join Exam on course.courseid= exam.cid group by title, credits, courseid having avg(grade) = (select min(avg(grade)) from exam); This is my query to find the course with the…
Chiara
  • 63
  • 6
0
votes
2 answers

Calculating GPA with function in Python

Ok so I am trying to make a program where the user has to input a letter grade for a course along with the course credit. There are three courses overall. It adds up all of the grade points for each course (grade point * course credit) and divides…
indian_trash
  • 1
  • 1
  • 3
0
votes
1 answer

A value in my program is being calculated incorrectly, even though the supporting math is correct

In a module for my class we are writing a program that asks for the class name, the grade, and number of credits. At the end of a certain number of classes, it is requesting that we calculate the GPA to 2 decimal points using setprecision(2). All of…
0
votes
1 answer

Cannot make a proper table and GPA calculation does not return correct grade

I'm trying to make a program to returns an equivalent grade to the user's input (A, A-, B+, etc.) and then produces a grade report for the user. However, I have encounter 2 problems: My program does not return any grade, except for "Invalid Grade".…
0
votes
1 answer

Grades Report in Java

I'm trying to create a program that produces a grade report for a student. I'd like to ask the following questions please: 1 - When I run the program, I encounter the problem Exception in thread "main" java.util.InputMismatchException (please see…
-1
votes
1 answer

GPA Calculator + failure testing

My code is only inputting one print command when there are two that need to be put out. I know this problem is simple but I need a new perspective here is my code: name = input("What is your name? \n") h1 = ("Class Name") h2 = ("Class Grade") h3 =…
Grimmo
  • 1
  • 2
-1
votes
1 answer

Computing GPA of list of Student ID

Beginner in JAVA. I'm trying to print the GPA of the students. Find the below instruction the problem. We can have only 3 grades: A, B, C correspond to the points 4,3,2. Let's say if a student has received the grades A,A,A, and B. GPA = (4+4+4+3) /…
Gokul UK
  • 49
  • 8
-2
votes
1 answer

Dividing a string by an integer to get GPA calculation

I am working on Python and am writing a program where the user inputs how many courses they would like to calculate. Then the program is supposed to take the appended items (the strings) and then divide them by how many courses they would like, in…
1
2