-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlevelFive.h
35 lines (27 loc) · 971 Bytes
/
levelFive.h
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
34
35
// LevelFiveXor
#ifndef LEVELFIVE_H
#define LEVELFIVE_H
#include "circuitLevel.h"
/**
* @author Joseph Corbeil, Johnny Song, Ezekiel Jaramillo, Ahmed Zahran, Raj Reddy, Joel Ronca
* @date April. 22, 2024
* @name levelFive h file for assignment9
* This h file contains the outlined methods for use within the circuit level five.
*/
class LevelFive: public CircuitLevel {
private:
/// @brief first input of the user
bool firstBit;
/// @brief second input of the user
bool secondBit;
public:
/// @brief Constructor that initializes the bits to false and sets the preset gate
LevelFive();
/// @brief Uses a vector of inputs from the user and sets them in the model
/// @param vector of boolean user inputs
void setInput(std:: vector<bool> inputs) override;
/// @brief Computes the output of the levels circuit specific to this level using
/// the user inputs
void computeOutput() override;
};
#endif // LEVELFIVE_H