#include int main () { char beep; // defines beep char spin; // defines spin // no line cout <<"Does the the computer beep? (Y/N) "; // asks user cin >> beep; // gets y or n from user cout <<"Does the hard drive spin? (Y/N) "; // asks user cin >> spin; // gets y or n from user // no line if (((beep=='y')||(beep=='Y'))&&((spin=='y')||(spin=='Y'))) cout <<"Contact tech support!"; // if beeps and spins if (((beep=='n')||(beep=='N'))&&((spin=='y')||(spin=='Y'))) cout <<"Check the speaker contents!"; // if spins but does not beep if (((beep=='y')||(beep=='Y'))&&((spin=='n')||(spin=='N'))) cout <<"Check drive contents!"; // if beeps but does not spin if (((beep=='n')||(beep=='N'))&&((spin=='n')||(spin=='N'))) cout <<"Bring computer to repair center!"; // does not beep or spin return (0); }