Duplicate Question
The question on this page has been marked as a duplicate question.
Original Question
#include <iostream.h> #include <stdlib.h> int main ( ) { int choice; cout << "Computer Repair" << endl; cout << "\n Does your a...Asked by sonnytsn
#include <iostream.h>
#include <stdlib.h>
int main ( )
{
int choice;
cout << "Computer Repair" << endl;
cout << "\n Does your ailing computer beeps multiable times at startup?" << endl;
cin >> choice;
switch (choice)
{
case Yes: cout << "\n Does the hard drive spin?" << endl; break;
cin >> choice;
switch (choice)
case Yes: cout << "\n Contact tech support. << endl; break;
}
case No: cout << "\n221 Red 160 Green 221 Blue\n" << endl; break;
default : cout << "\nInvalid Selection." << endl; break;
}
cout <<
case 3: cout << "\n255 Red 105 Green 180 Blue\n" << endl; break;
case 4: cout << "\n172 Red 34 Green 34 Blue\n" << endl; break;
case 5: cout << "\n255 Red 127 Green 80 Blue\n" << endl; break;
case 6: cout << "\n240 Red 230 Green 140 Blue\n" << endl; break;
default : cout << "\nInvalid Selection." << endl; break;
}
system("Pause");
return (0);
}
i can't get it to work
#include <stdlib.h>
int main ( )
{
int choice;
cout << "Computer Repair" << endl;
cout << "\n Does your ailing computer beeps multiable times at startup?" << endl;
cin >> choice;
switch (choice)
{
case Yes: cout << "\n Does the hard drive spin?" << endl; break;
cin >> choice;
switch (choice)
case Yes: cout << "\n Contact tech support. << endl; break;
}
case No: cout << "\n221 Red 160 Green 221 Blue\n" << endl; break;
default : cout << "\nInvalid Selection." << endl; break;
}
cout <<
case 3: cout << "\n255 Red 105 Green 180 Blue\n" << endl; break;
case 4: cout << "\n172 Red 34 Green 34 Blue\n" << endl; break;
case 5: cout << "\n255 Red 127 Green 80 Blue\n" << endl; break;
case 6: cout << "\n240 Red 230 Green 140 Blue\n" << endl; break;
default : cout << "\nInvalid Selection." << endl; break;
}
system("Pause");
return (0);
}
i can't get it to work
Answers
There are no human answers yet.
There are no AI answers yet. The ability to request AI answers is coming soon!
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.