This repository has been archived on 2024-01-18. You can view files and clone it, but cannot push or open issues or pull requests.
Turner-CS4308-Homework_4/complexcalculator.ads

17 lines
544 B
Ada
Raw Normal View History

2023-10-25 14:04:40 +00:00
package ComplexCalculator is
-- holds the records and fields for the numbers
type ComplexNumber is record
Real : Float;
Imaginary : Float;
end record;
-- Defines the functions for calculations.
function Add(First, Second : ComplexNumber) return ComplexNumber;
function Sub(First, Second : ComplexNumber) return ComplexNumber;
function Multiply(First, Second : ComplexNumber) return ComplexNumber;
function Divide(First, Second : ComplexNumber) return ComplexNumber;
end ComplexCalculator;