This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Matrix multiplication: Write a C++ program to compute the product of two matrices. | |
You are required to use the template class vector to represent a matrix. | |
Specifically, your program will include the main( ) function and a second function multiply_matrices( ). | |
The main() function will: | |
* allow the user to choose the size of the matrices, and subsequently the content of A and B | |
* call the multiply_matrices() function to compute the product of A and B | |
* print out the multiplication result. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <conio.h> | |
#include <string> | |
#include <iomanip> | |
using namespace std; | |
const int MAX_SIZE = 100; | |
void selectionSort(int[], int&); | |
void readData(int[], int&); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.*; | |
class MyPlayingCardException extends Exception { | |
MyPlayingCardException (){ | |
super (); | |
} | |
MyPlayingCardException ( String reason ){ | |
super ( reason ); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// DO NOT ADD NEW METHODS OR DATA FIELDS! | |
package PJ3; | |
class Car { | |
private int carId; | |
private int serviceDuration; | |
private int arrivalTime; | |
Car() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/************************************************************************************ | |
* | |
* Do not modify this file. | |
* | |
* LispException class | |
* | |
* It is used by SimpleLispExpressionEvaluator | |
* | |
*************************************************************************************/ |