Question
Write a program that prints out the Average Score (GPA) for a student. The program asks user the students name, number of courses and then
Write a program that prints out the Average Score (GPA) for a student. The program asks user the students name, number of courses and then ask marks for each course (out of 100). At the end print out a pretty message with Student Name, Number of course and GPA. GPA is defined as sum of all the course scores divided by number of courses for the student. The Maximum Score a student can achieve on any course is 100. This program should ask the user for more students and only end printing output once the user says no more input.
GPA Formula GPA= Total Sum of all Scores / (Total Number of Courses)
Note: For input/output, you must use the JOptionPane class. For this lab only, you may assume the user will only enter in valid information. For example, you do not need to account for a negative number of minutes used. Printed GPA scores must be formatted to two decimal places.
use JOptionPane and IF ELSE and LOOPS and that's all.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started