Question: MUST BE IN C# language Create a C# class for Huge Integer similar to Java using int array in the following steps. (a) (2%) Define

MUST BE IN C# language  MUST BE IN C# language Create a C# class for Huge

Create a C# class for Huge Integer similar to Java using int array in the following steps. (a) (2%) Define a class Hugelnteger as an int (or Int 16 etc.) array of 30 entries. Define an attribute sign so that this Huge Integer may be positive or negative. Initialize an object to 0 if necessary (C# may initialize this object to 0). (b) (5%) Define the sum method that computes the sum of (c) (4%) Define the difference method that computes the (d) (12%) Define the product method that computes the (e) (12%) Define the quotient method that computes the This emulates an integer of 30 digits. two Huge Integer of 30 digits. difference of two Huge Integer of 30 digits. product of two Huge Integer of 30 digits quotient of two Huge Integer of 30 digits. (f) (8%) Define the modulo method that computes the modulo of a Huge Integer a by another Huge Integer b. To clarify this, the quotient of regular integer 13 by 3 is 4 and 13 modulo 4 is 1 Note that carry may result when you add two Hugelntegers of 30 digits (i.e. you need the 31" digit.)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!