CIS355A Week 2 iLab StudentGPAInfo and CurrencyConversion Java Program

Availability: In stock

Regular Price: $25.00

Special Price: $20.00

OR

CIS355A Week 2 iLab StudentGPAInfo Java Program

Double click on above image to view full picture

Zoom Out
Zoom In

More Views

Quick Overview

CIS355A Week 2 iLab StudentGPAInfo and CurrencyConversion Java Program


In this lab, you will create two programs that use classes and methods.
Deliverables
Program files for the following program
StudentGPAInfo
CurrencyConversion


STEP 1: StudentGPAInfo (20 points)
Create a class called StudentGPAInfo.java that contains one double-precision instance variables named gpa. It should also contain two integer instance variables named totalgradepoints and numberofclasses. Finally, there should be one instance variable named studentname of string type. The class should include a constructor that initializes the name, numberof classes, and totalgradepoints variables, as well as a default constructor. Also, you need an instance method named calculateGPA() that calculates the student's grade point average by using this formula: totalgradepoints divided by numberofclasses. Also, you need an instance method. Create one set method that will assign values to the studentname, totalgradepoints, and numberofclasses variables. Create a displayStudent method that will display all of the attributes of the StudentGPAInfo object. Display the GPA with an accuracy of two decimal places (i.e., 3.25).


Write a class called GPATest.java. Create one StudentGPAInfo object named student1 using constructor that allows you to pass values to the object. Pass any values you would like to use. Create another StudentGPAInfo object named student2 using the default constructor. Using the set method, assign values to the student2 object. Next, use the calculateGPA() methods on both objects, then invoke the displayStudent() method on each of the objects.


STEP 2: CurrencyConversion (20 points)
You must create a program named CurrencyConversion.java that converts money between the following currencies.
Given one of the three currencies, the program should convert the input amount into one of the other currencies. For example, if you input one (1) U.S. dollar, and you decide to convert that one dollar to a pound, then the output should be .60.
Using the JOptionPane GUI, do the following.
Prompt the user for the currency code type.
Prompt the user for the amount of that currency.
Prompt the user for the currency code that the entered amount must be converted to.
Using the table above, the following formula was used to convert USD to JPY.
10.00 * 103.73 = 1,037.30
Display the results in a JOptionPane message box.

Regular Price: $25.00

Special Price: $20.00

Details

CIS355A Week 2 iLab StudentGPAInfo and CurrencyConversion Java Program

In this lab, you will create two programs that use classes and methods.
Deliverables
Program files for the following program
StudentGPAInfo
CurrencyConversion

STEP 1: StudentGPAInfo (20 points)
Create a class called StudentGPAInfo.java that contains one double-precision instance variables named gpa. It should also contain two integer instance variables named totalgradepoints and numberofclasses. Finally, there should be one instance variable named studentname of string type. The class should include a constructor that initializes the name, numberof classes, and totalgradepoints variables, as well as a default constructor. Also, you need an instance method named calculateGPA() that calculates the student's grade point average by using this formula: totalgradepoints divided by numberofclasses. Also, you need an instance method. Create one set method that will assign values to the studentname, totalgradepoints, and numberofclasses variables. Create a displayStudent method that will display all of the attributes of the StudentGPAInfo object. Display the GPA with an accuracy of two decimal places (i.e., 3.25).

Write a class called GPATest.java. Create one StudentGPAInfo object named student1 using constructor that allows you to pass values to the object. Pass any values you would like to use. Create another StudentGPAInfo object named student2 using the default constructor. Using the set method, assign values to the student2 object. Next, use the calculateGPA() methods on both objects, then invoke the displayStudent() method on each of the objects.

STEP 2: CurrencyConversion (20 points)
You must create a program named CurrencyConversion.java that converts money between the following currencies.
Given one of the three currencies, the program should convert the input amount into one of the other currencies. For example, if you input one (1) U.S. dollar, and you decide to convert that one dollar to a pound, then the output should be .60.
Using the JOptionPane GUI, do the following.
Prompt the user for the currency code type.
Prompt the user for the amount of that currency.
Prompt the user for the currency code that the entered amount must be converted to.
Using the table above, the following formula was used to convert USD to JPY.
10.00 * 103.73 = 1,037.30
Display the results in a JOptionPane message box.

Product Tags

Use spaces to separate tags. Use single quotes (') for phrases.