QuestionQuestion

Please see Question.pdf

Solution PreviewSolution Preview

This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.

/*
* Program Name: AA
* Author: Cameron.
* Date Written: 2/17/2019.
* Description: This is the AA Degree Class. This program is to provide the
*   variables, constructors, methods, calculations and formatted printed
*   related to the AA class.
*/

package bctcdegrees;

// Beginning of AA Class
public class AA extends Degree
{
    // Declare class variables
    private int foreignLanguageHours;
    private int AAhours;

   
    // Beginning of AA Constructor with parameters
    public AA(int genEdHours,int electiveHours,int AAhours,int foreignLanguageHours)
    {
       // Setting the class variables
       degree = "AA";
       description = "Associate in Art";

       // Validate general ed hours entered is within range or not
       if (genEdHours>=0 && genEdHours<=60)
       {
            // Sets general ed hours to entered general ed hours
            this.genEdHours=genEdHours;
       }
       else
       {
            // Sets general ed hours to 0
            this.genEdHours=0;
       }
               
       // Validate elective hours entered is within range or not
       if (electiveHours>=0 && electiveHours<=60)
       {
            // Sets elective hours to entered elective hours
            this.electiveHours=electiveHours;
       }
       else
       {
            // Sets elective hours to 0
            this.electiveHours=0;
       }
      
       // Validate AA core hours entered is within range or not
       if (AAhours>=0 && AAhours<=60)
       {
            // Sets AAS core hours to entered AA core hours
            this.AAhours=AAhours;
       }
       else
       {
            // Sets AA core hours to 0
            this.AAhours=0;
       }
      
       // Validate foreign language hours entered is within range or not
    if (foreignLanguageHours>=0 && foreignLanguageHours<=60)
       {
            // Sets foreign language hours to entered AAS track hours
            this.foreignLanguageHours=foreignLanguageHours;
       }
       else
       {
            // Sets foreign language hours to 0
          this.foreignLanguageHours=0;
       }
    }   
    // Ending of AA Constructor with parameters
   
    // Beginning of AA Default Constructor
    public AA()
    {
       // Setting variables for the constructor
       degree = "AA";
       description = "Associate in Art";
       genEdHours = 0;
       electiveHours = 0;
       AAhours=0;
       foreignLanguageHours=0;...
$20.00 for this solution

PayPal, G Pay, ApplePay, Amazon Pay, and all major credit cards accepted.

Find A Tutor

View available Java Programming Tutors

Get College Homework Help.

Are you sure you don't want to upload any files?

Fast tutor response requires as much info as possible.

Decision:
Upload a file
Continue without uploading

SUBMIT YOUR HOMEWORK
We couldn't find that subject.
Please select the best match from the list below.

We'll send you an email right away. If it's not in your inbox, check your spam folder.

  • 1
  • 2
  • 3
Live Chats