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

  Initialized the array of words by an assignment statement.

modify the following program . The program from Lab 4 initialized the array of words by an assignment statement.

  The program should ask the user to enter the student'' answer

Your program should store these correct answers in an array. (Store each question's correct answer in an element of a string array.) the program should ask the user to enter the student's answers for each of the 20 questions, which should be stored i..

  How does a client send a string ti the server using udp

How does a client send a string ti the server using UDP? Show what the client would do to get data from some string, and create a datagram packet destined for a server at "www.google.com", port 12345.

  Develop java code to compute monthly rent for housing units

Develop a java code that computes monthly rent for 3 housing units namely Bungalows,Apartments and hostels. All housing units have got size,color and monthly rental rate.

  Develop parent lock method asks for four digit password

Develop the parent lock method (turns lock on/off) which asks for 4 digit password. Navigating to any channel which is in range 99-110 must ask for password when parent lock is on.

  Write a method that returns the last digit of an integer

Write a method named lastDigit that returns the last digit of an integer - It should work for negative numbers as well.

  Declare five integer numbers

Declare five integer numbers, Adds the five integers and store the results in variable sum and Calculate the average of the five numbers

  In this project you need to write a java program called

in this project you need to write a java program called mm.java to perform matrix multiplication. your code will read

  Develop java applet that will help elementary school student

Develop a Java applet that will help an elementary school student learn multiplication. Use the Math.random method or a Random object to produce two positive one-digit integers.

  What is the java source filename extension

What is the Java source filename extension? What is the Java bytecode filename extension and write a Java statement to display the string The value is 100 to a user in a plain dialog box.

  Write the buttonhandler inner class

The output string should say something like this: "The RC time constant for resistance 1000 and capacitance .000001 is 0.001 seconds." Clicking one of the buttons generates the event which causes the program to do the selected calculation and upda..

  Compute and display the monthly payment

Compute and display the monthly payment -  programming problem can be solved by a program that performs three basic tasks-Input Data, Process Data, and Output Results.

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