Dong_Minh_Doxygen: P1_Base.Program Class Reference

Dong Minh

Dong_Minh_Doxygen
Collaboration diagram for P1_Base.Program:
Collaboration graph

Static Public Member Functions

static List< int > Factorization (int num)
 The factorization will find the prime numbers, place it in the list and repeat until factorization can no longer be done. After that, return the list so it can be displayed. More...
 
static int GCD (int a, int b)
 The greatest common demonitor (GCD) will take in the numbers and will find the GCD value, then return it to display later. More...
 
static int LCD (int a, int b)
 The least common denominator (LCD) will take in the numbers and will find the LCD value, then return it to display later. More...
 
static int CF (int a, int b)
 The comomn factors will be found when two numbers are input into this More...
 

Static Private Member Functions

static void Main (string[] args)
 The main function to run the entire program. This program will ask the user to input two numbers, then the program will calculate the GCF and LCD automatically. Also, it will display to the user with some output. More...
 

Detailed Description

Definition at line 9 of file Program.cs.

Member Function Documentation

◆ CF()

static int P1_Base.Program.CF ( int  a,
int  b 
)
static

The comomn factors will be found when two numbers are input into this

Pseudo Code
Continue to loop until the highest common factor is found
Parameters
aInteger A Value
bInteger B Value
Returns
Returns the List

Definition at line 140 of file Program.cs.

Here is the caller graph for this function:

◆ Factorization()

static List<int> P1_Base.Program.Factorization ( int  num)
static

The factorization will find the prime numbers, place it in the list and repeat until factorization can no longer be done. After that, return the list so it can be displayed.

Pseudo Code
If there are any 2s, take it out.
If there are any other primes, take it out.
If the number is not 1, then whatever is left is prime.
Parameters
numInteger list
Returns
Returns the List

Definition at line 29 of file Program.cs.

Here is the caller graph for this function:

◆ GCD()

static int P1_Base.Program.GCD ( int  a,
int  b 
)
static

The greatest common demonitor (GCD) will take in the numbers and will find the GCD value, then return it to display later.

Pseudo Code
If a is greater than b, a = a % b
If b is greater than a, b = b % a
Parameters
aInteger A Value
bInteger B Value
Returns
Returns values of a and b

Definition at line 76 of file Program.cs.

Here is the caller graph for this function:

◆ LCD()

static int P1_Base.Program.LCD ( int  a,
int  b 
)
static

The least common denominator (LCD) will take in the numbers and will find the LCD value, then return it to display later.

Pseudo Code
Store the values if a > b or b > a for num1 and num2 respecitvely (both)
Keep looping for the lowest common deonimator until the LCD is satisfied
Parameters
aInteger A value
bInteger B value
Returns
Returns the number for LCD

Definition at line 104 of file Program.cs.

Here is the caller graph for this function:

◆ Main()

static void P1_Base.Program.Main ( string []  args)
staticprivate

The main function to run the entire program. This program will ask the user to input two numbers, then the program will calculate the GCF and LCD automatically. Also, it will display to the user with some output.

Parameters
args
Returns
Loops if Y/y, Stops if N/n

Definition at line 163 of file Program.cs.

Here is the call graph for this function:

The documentation for this class was generated from the following file:
  • D:/Google Drive/ODU/Documents/2018/MSIM 408 - Introduction to Game Development/P1/P1_Base(1)/P1_Base/P1_Base/Program.cs
Generated by   doxygen 1.8.13