Write a program to compute the cumulative gpa

Assignment Help JAVA Programming
Reference no: EM13781396

This program will compute the cumulative GPA based on user input.  This program will use dialog boxes with the JOptionPane class as well as the console to send/receive information to/from the user.

1.       Use a dialog box to ask the user how many grades they would like to enter.

2.       Print out the term number (automatically starting out at Term 1 the first run through the program)

3.       Prompt the user for the course name, the number of credits, and the grade using 3 separate dialog boxes.

H

A

A-

B+

B

B-

C+

C

C-

D

F

4

4

3.7

3.3

3

2.7

2.3

2

1.7

1

0

a.       Standard letter grades and corresponding points:

b.       As you receive the course information, write this information to the console.

4.       Once the user has input all of their course data calculate the term GPA and update/calculate the cumulative GPA. (Hint: where you declare these variables, inside or outside loops, will affect their functionality)

5.       Output the GPA to the user using the console (see output below).

6.       Ask the user if they would like to continue with another term.

a.       If the user would like to enter another term into their cumulative GPA calculation, go through the same process as above using appropriate loop structures.

b.       If the user would not like to enter another term of courses,display the number of gold stars earned. Thank the user appropriately on the console.

7.       Example output at the end of the entire program (if 2 courses were entered each for 2 separate terms). Format credits to print out to onedecimal accuracy and GPA's totwo decimal place accuracy (hint: printf).

Term 1

Multi, 3.0, B+

Diff Eq, 3.0, A-

Term GPA: 3.5

Cumulative GPA: 3.5

Term 2

Morals and Ethics, 3.0, A

Physics, 4.0, B-

Term GPA: 3.26

Cumulative GPA: 3.37

Gold Stars Earned:

Reference no: EM13781396

Questions Cloud

Write a query to display the starting salary : Write a query to display the starting salary for each employee. The starting salary would be the entry in the salary history with the oldest salary start date for each employee. Sort the output by employee number.
Draw the data flow diagrams level 0 : draw the Data Flow Diagrams Level 0 and Level 1 using Microsoft Visio. A visitor may get Registration after filling "Sign Up" form.
Write an application that uses a one dimensional array : Write an application that uses a one dimensional array: the user enters 5 numbers, each of which is between 10 and 100. As each number in input, display it only if it is not a duplicate of previous numbers entered.
Write a function that accepts an integer parameter : Write a function that accepts an integer parameter and returns its integer square root. The function should throw an exception if it is passed an integer that is not a perfect square. Demonstrate the function with a suitable driver program
Write a program to compute the cumulative gpa : This program will compute the cumulative GPA based on user input.  This program will use dialog boxes with the JOptionPane class as well as the console to send/receive information to/from the user.
Students with severe and multiple disabilities : Visit a program for students with severe and multiple disabilities. During the interview with teachers and staff, discuss the following topics:
Create at least two vectors and demonstrate the use of each : Create a separate class, VectorTest, that will demonstrate the use of your Vector class. You must create at least two vectors, and demonstrate the use of each method. When you demonstrate the use of each method, print the results to the console ..
Discriminatory belief or phobia : Pretend you are a racist, you have this discriminatory belief or phobia. Explain what is being racist? Include an example and explain how it is NOT practicing higher-level thinking. (Intro paragraph)
Create the investment calculator : Create the following GUI that allows a user to calculate the value of an investment after a certain number of years with monthly compound interest.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Implementing dijkstras shortest-path algorithm

Implementing Dijkstras shortest-path algorithm - To improve efficiency of the program, you should add some caching to it

  Digit decimal seconds counter using two 7-segment displays

Write a program that implements a two digit decimal seconds counter using two 7-segment displays.  Make this program using java programming. Make this program in simple way.

  What aspects of judaism are rejected or reinterpreted

What theology does Jesus present in the two excerpts from the Gospels that are a part of the readings? What aspects of Judaism are strongly represented? What aspects of Judaism are rejected or reinterpreted?

  Program that simulates the rolling of a single die1000 times

Write a program that simulates the rolling of a single die 1000 times. The program must use an array of size 6 and not 1000 to store the occurrences of each side or face on the six-sided die. The program should output the particular die face and the ..

  Determine the decision of java

Determine the decision of Java as the platform to develop this program. Identify the Java-based technologies utilized in this project and analyze each of them. Then, provide discussion on the purpose of each of the Java-based technologies utiliz..

  Assume that you are developing a java program which uses

suppose that youre developing a java program that uses decimal numbers and youd like to control the formatting of your

  Write java program which will permit user to make selection

Write the Java Program which will permit the user to make selection. You will present user with two options to perform, then you will perform action selected by user.

  Write a method reversefirstk

Write a method reverseFirstK that accepts an integer k and a queue of integers as parameters and reverses the order of the first k elements of the queue, leaving the other elements in the same relative order.

  What are the constraints on the argument values

What makes a program easy to modify and describe the order of magnitude of the following code section using Big(O) notation.

  Inheriting from the jframe class

What is the difference between inheriting from the JFrame class and using a JFrame member variable?

  Finding java code error

Indicate in the given code segment if an error occurs. If so, point to whether it is syntax, runtime or logic and how you would fix it.

  Program produces 1000 integer ranging

Then your program produces 1000 integer ranging from 1to 10000 in the array and then sort them in ascending order and then print the result into data.txt file. (You may list integers separated by space or new line)

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd