Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In Java based programming Eclipse using the Joptionpane method with the data parased with the if/else/for/switch methods, create the following program: Make a program that

In Java based programming Eclipse using the Joptionpane method with the data parased with the if/else/for/switch methods, create the following program:

Make a program that will collect all the information to calculate a students semester G.P.A and display the courses, grades received and the G.P.A..

1. Ask the user to enter their name. 2. Ask the user to enter the name of the class, number of credit hours for the class and the letter grade received. 3. You will need to calculate the weighted grade for the course by multiplying the credit hours for the course by the numeric equivalent of the grade. 4. The program will need calculate the total number of credit hours. 5. The program will need to calculate the total of the weighted grades. 6. Write the information entered to a file (results.txt). 7. Repeat this until they have no more classes to enter 8. All data entered must be validated. 9. After all classes are entered the G.P.A should be calculated and written to a file. 10. Validate the number of credit hours entered. 11. Validate the letter grades entered.

The output file classes.txt should look similar to the following (which will be tab a lot to create appropite spacing)

Classes for *studentname*: Title Credits Grade Class one 4 A Class two 3 B class three 3 C class four 3 A

GPA: 3.81

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Building Database Driven Catalogs

Authors: Sherif Danish

1st Edition

0070153078, 978-0070153073

More Books

Students also viewed these Databases questions

Question

What is database?

Answered: 1 week ago

Question

What are Mergers ?

Answered: 1 week ago