Amansic, Joshua John Y. Bscs Machine Problem002: Seat Reservation
Amansic, Joshua John Y. Bscs Machine Problem002: Seat Reservation
BSCS
Machine Problem002: Seat Reservation
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include "_pause.h"
int main() {
const int rows = 5, cols = 7;
int seats[rows][cols];
int seatChoice, getRow, getCol;
bool isValidInput;
do{
for(int i = 0; i < rows; i++){
for(int x = 0; x < cols; x++){
cout << seats[i][x] << "\t";
}
cout << "\n";
This study source was downloaded by 100000769552447 from CourseHero.com on 07-19-2022 07:59:29 GMT -05:00
https://www.coursehero.com/file/79621268/AmansicJoshua-John-Y-MachineProblem002docx/
}
do{
cout << "\nDesired seat from above 0 to exit: ";
cin >> seatChoice;
if(seatChoice < 0 || seatChoice > 35){
isValidInput = false;
cout << "\nInvalid Input.!";
}else{
isValidInput = true;
}
}while(!isValidInput);
system ("pause");
return 0;
}
Video Link:
https://drive.google.com/file/d/1cHRxQLkCbGWCKQi0F8bNnwuV9Ig28XM5/vie
w?usp=sharing
https://drive.google.com/file/d/1B0Q3vEe9lsJWKk3t9nP55FiaWh50ycfg/view?
usp=sharing
This study source was downloaded by 100000769552447 from CourseHero.com on 07-19-2022 07:59:29 GMT -05:00
https://www.coursehero.com/file/79621268/AmansicJoshua-John-Y-MachineProblem002docx/
Powered by TCPDF (www.tcpdf.org)