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 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239
|
// GROUP 3
// ICT-2
#include <iostream>
#include <cmath>
#include <math.h>
using namespace std;
int main() {
float Camry, Corolla_Altis, Vios, Wigo, Yaris, Corolla_Cross, FJ_Cruiser, Fortuner, Land_Cruiser,Average;
float Honda_Accord, Honda_Accord_Hybrid, Honda_Civic, Honda_Clarity, Honda_CR_V, Honda_HR_V, Honda_Insight, Honda_Odyssey;
char Order_again, Yes_or_No;
int Cars;
bool YesOrNo;
do{
cout << "Online Car Dealership" << endl;
cout << "Please Select the type Car: " << endl;
// TOYOTA CARS
cout << "Toyota Cars: "<< endl;
cout << "1. Camry" << endl;
cout << "2. Corolla Altis" << endl;
cout << "3. Vios" << endl;
cout << "4. Wigo" << endl;
cout << "5. Yaris" << endl;
cout << "6. Corolla Cross" << endl;
cout << "7. FJ Cruiser" << endl;
cout << "8. Fortuner" << endl;
cout << "9. Land Cruiser" << endl;
// HONDA CARS
cout << "Honda Cars: " << endl;
cout << "10. Accord" << endl;
cout << "11. Accord Hybrid" << endl;
cout << "12. Civic" << endl;
cout << "13. Clarity" << endl;
cout << "14. CR-V" << endl;
cout << "15. HR-V" << endl;
cout << "16. Insight" << endl;
cout << "17. Odyssey" << endl;
cout << "Input Number According to the type of Car: ";
cin >> Cars;
switch (Cars)
{
case 1:
Camry = 2042000;
cout << "You Selected Camry" << Camry << endl << "To be Comformed Type y Yes, if type n if No: ";
cin >> Yes_or_No;
if (Yes_or_No = 'y') {
cout << "You Ordered Camry";
}
else if (Yes_or_No = 'n') {
cout << "You Canceled the order.";
break;
}
case 2:
Corolla_Altis = 1595000;
cout << "You Selected Corollla Atlis" << Corolla_Altis << endl << "To be Comformed Type y Yes, if type n if No: ";
cin >> Yes_or_No;
if (Yes_or_No = 'y') {
cout << "You Ordered Corolla Altis";
}
else if (Yes_or_No = 'n') {
cout << "You Canceled the order.";
break;
}
case 3:
Vios = 1056000;
cout << "You Selected Vios" << Vios << endl << "To be Comformed Type y Yes, if type n if No: ";
cin >> Yes_or_No;
if (Yes_or_No = 'y') {
cout << "You Ordered Vois";
}
else if (Yes_or_No = 'n') {
cout << "You Canceled the order.";
break;
}
case 4:
Wigo = 700000;
cout << "You Selected Wigo" << Wigo << endl << "To be Comformed Type y Yes, if type n if No: ";
cin >> Yes_or_No;
if (Yes_or_No = 'y') {
cout << "You Ordered Wigo";
}
else if (Yes_or_No = 'n') {
cout << "You Canceled the order.";
break;
}
case 5:
Yaris = 1065000;
cout << "You Selected Yaris" << Yaris << endl << "To be Comformed Type y Yes, if type n if No: ";
cin >> Yes_or_No;
if (Yes_or_No = 'y') {
cout << "You Ordered Yaris";
}
else if (Yes_or_No = 'n') {
cout << "You Canceled the order.";
break;
}
case 6:
Corolla_Cross = 1650000;
cout << "You Selected Corolla Cross" << Corolla_Cross << endl << "To be Comformed Type y Yes, if type n if No: ";
cin >> Yes_or_No;
if (Yes_or_No = 'y') {
cout << "You Ordered Coro;;a Cross";
}
else if (Yes_or_No = 'n') {
cout << "You Canceled the order.";
break;
}
case 7:
FJ_Cruiser = 2083000;
cout << "You Selected FJ Cruiser" << FJ_Cruiser << endl << "To be Comformed Type y Yes, if type n if No: ";
cin >> Yes_or_No;
if (Yes_or_No = 'y') {
cout << "You Ordered FJ Cruiser";
}
else if (Yes_or_No = 'n') {
cout << "You Canceled the order.";
break;
}
case 8:
Fortuner = 2414000;
cout << "You Selected Fortuner" << Fortuner << endl << "To be Comformed Type y Yes, if type n if No: ";
cin >> Yes_or_No;
if (Yes_or_No = 'y') {
cout << "You Ordered Fortuner";
}
else if (Yes_or_No = 'n') {
cout << "You Canceled the order.";
break;
}
case 9:
Land_Cruiser = 4950000;
cout << "You Selected Land_Cruiser" << Land_Cruiser << endl << "To be Comformed Type y Yes, if type n if No: ";
cin >> Yes_or_No;
if (Yes_or_No = 'y') {
cout << "You Ordered Land_Cruiser";
}
else if (Yes_or_No = 'n') {
cout << "You Canceled the order.";
break;
}
case 10:
Honda_Accord = 24270;
cout << "You Selected Honda Accord" << "$" << Honda_Accord << endl << "To be Comformed Type y Yes, if type n if No: ";
cin >> Yes_or_No;
if (Yes_or_No = 'y') {
cout << "You Ordered Honda Accord";
}
else if (Yes_or_No = 'n') {
cout << "You Canceled the order.";
break;
}
case 11:
Honda_Accord_Hybrid = 25870;
cout << "You Selected Honda Accord Hybrid" << "$" << Honda_Accord_Hybrid << endl << "To be Comformed Type y Yes, if type n if No: ";
cin >> Yes_or_No;
if (Yes_or_No = 'y') {
cout << "You Ordered Honda Accord Hybrid";
}
else if (Yes_or_No = 'n') {
cout << "You Canceled the order.";
break;
}
case 12:
Honda_Civic = 20000;
cout << "You Selected Honda Civic" << "$" << Honda_Civic << endl << "To be Comformed Type y Yes, if type n if No: ";
cin >> Yes_or_No;
if (Yes_or_No = 'y') {
cout << "You Ordered Honda Civic";
}
else if (Yes_or_No = 'n') {
cout << "You Canceled the order.";
break;
}
case 13:
Honda_Clarity = 36620;
cout << "You Selected Honda Clarity" << "$" << Honda_Clarity << endl << "To be Comformed Type y Yes, if type n if No: ";
cin >> Yes_or_No;
if (Yes_or_No = 'y') {
cout << "You Ordered Honda Clarity";
}
else if (Yes_or_No = 'n') {
cout << "You Canceled the order.";
break;
}
case 14:
Honda_CR_V = 25150;
cout << "You Selected Honda CR V" << "$" << Honda_CR_V << endl << "To be Comformed Type y Yes, if type n if No: ";
cin >> Yes_or_No;
if (Yes_or_No = 'y') {
cout << "You Ordered Honda CR V";
}
else if (Yes_or_No = 'n') {
cout << "You Canceled the order.";
break;
}
case 15:
Honda_HR_V = 20920;
cout << "You Selected Honda HR V" << "$" << Honda_HR_V << endl << "To be Comformed Type y Yes, if type n if No: ";
cin >> Yes_or_No;
if (Yes_or_No = 'y') {
cout << "You Ordered Honda HR V";
}
else if (Yes_or_No = 'n') {
cout << "You Canceled the order.";
break;
}
case 16:
Honda_Insight = 22930;
cout << "You Selected Honda Insight" << "$" << Honda_Insight << endl << "To be Comformed Type y Yes, if type n if No: ";
cin >> Yes_or_No;
if (Yes_or_No = 'y') {
cout << "You Ordered Honda Insight";
}
else if (Yes_or_No = 'n') {
cout << "You Canceled the order.";
break;
}
case 17:
Honda_Odyssey = 30790;
cout << "You Selected Honda Odyssey" << "$" << Honda_Odyssey << endl << "To be Comformed Type y Yes, if type n if No: ";
cin >> Yes_or_No;
if (Yes_or_No = 'y') {
cout << "You Ordered Honda Odyssey";
}
else if (Yes_or_No = 'n') {
cout << "You Canceled the order.";
break;
}
}
cout << "Do you want to order again? type y if Yes, type n if No";
cin >> Order_again;
}
while (Order_again = 'y');
return 0;
}
|