blob: c5a45fb9f119a994cbbb592d2022b1912973f153 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
//Code by Jordan Harris-Toovy and Rayyan Ansari for OIT's CST116-01P project 3, December 2021
#pragma once
#include <iostream>
#include <iomanip>
#include <fstream>
#include <string>
#include <sstream>
#include <limits>
using namespace std;
const int num = 3; //Used to set the array dimensions for flexible functions
//Gets an input from the user. If it not an int, returns false and sets input to 0
bool getInt(int&);
//Returns the amplitude of the largest number in a 3x3 float array
int findMax(float[3][3]);
//Displays three 3x3 float arrays with a char between the fist two and an equality sign between the last two
void displayTriArray(float[3][3], float[3][3], float[3][3], char);
//Prompts the user to enter in a new num x num sized float array
void arrayInput(float array1[num][num]);
//Adds two num x num sized float arrays into a third
void addArrays(float array1[num][num], float array2[num][num], float addedArray[num][num]);
//Multiplies two arrays into a third
void multiplyArrays(float array1[num][num], float array2[num][num], float addedArray[num][num]);
|