#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 << "\n Check drive contacts. << endl; break;
}
case No: cout << "\n Does the hard drive spin?" << endl; break;
cin >> choice;
switch (choice)
case Yes: cout << "\n Check speaker contacts << endl; break;
case No: cout << "\n Bring computer to repair center. << endl; break;
}
system("Pause");
return (0);
}

make it work plz

First problem I see is in your first case 'Yes'. You output "Does the hard drive spin?", then you have a "break;". The break takes you out of the first enclosing switch. So, the cin does not get executed. This same error is in the first case 'No'.

To fix the code, you need to make several changes:

1. Replace `<iostream.h>` with `<iostream>` because the ".h" extension is no longer used in current C++ standards.
2. Add the `using namespace std;` statement before the `int main()` function to avoid using the `std::` prefix for standard library functions.
3. Declare the variable `choice` as a `char` type instead of an `int` type since the user input will be "Yes" or "No".
4. Use string literals ("Yes" and "No") instead of undeclared identifiers in the switch cases.
5. Add a closing quotation mark (")") after the string literal in each `cout` statement.
6. Change `endl` to `"\n"` for new line outputs in the `cout` statements.
7. Remove the `system("Pause");` line since it is a Windows-specific command and unnecessary.

Here is the corrected code:

```cpp
#include <iostream>
using namespace std;

int main() {
char choice;
cout << "Computer Repair" << endl;
cout << "\nDoes your ailing computer beep multiple times at startup?\n";
cin >> choice;

switch (choice) {
case 'Y':
case 'y':
cout << "\nDoes the hard drive spin?\n";
cin >> choice;

switch (choice) {
case 'Y':
case 'y':
cout << "\nContact tech support.\n";
break;
case 'N':
case 'n':
cout << "\nCheck drive contacts.\n";
break;
}

break;

case 'N':
case 'n':
cout << "\nDoes the hard drive spin?\n";
cin >> choice;

switch (choice) {
case 'Y':
case 'y':
cout << "\nCheck speaker contacts.\n";
break;
case 'N':
case 'n':
cout << "\nBring the computer to a repair center.\n";
break;
}

break;
}

return 0;
}
```

After making these changes, the code will work as expected.

To make the code work, you need to make a few corrections and improvements. Here's an updated version of the code with the necessary changes:

```cpp
#include <iostream>

int main()
{
int choice;

std::cout << "Computer Repair" << std::endl;
std::cout << "\nDoes your ailing computer beep multiple times at startup?" << std::endl;
std::cin >> choice;

switch (choice)
{
case 1:
std::cout << "\nDoes the hard drive spin?" << std::endl;
std::cin >> choice;

switch (choice)
{
case 1:
std::cout << "\nContact tech support." << std::endl;
break;

case 2:
std::cout << "\nCheck drive contacts." << std::endl;
break;

default:
std::cout << "\nInvalid choice." << std::endl;
break;
}

break;

case 2:
std::cout << "\nDoes the hard drive spin?" << std::endl;
std::cin >> choice;

switch (choice)
{
case 1:
std::cout << "\nCheck speaker contacts." << std::endl;
break;

case 2:
std::cout << "\nBring the computer to a repair center." << std::endl;
break;

default:
std::cout << "\nInvalid choice." << std::endl;
break;
}

break;

default:
std::cout << "\nInvalid choice." << std::endl;
break;
}

system("pause");
return 0;
}
```

Explanation:

1. The original code had incorrect header files. `<iostream.h>` doesn't exist in modern C++. You should use `<iostream>` instead. `<stdlib.h>` is not needed for this code.

2. You should always specify the namespace before using `cout` and `cin`. In this case, it should be changed to `std::cout` and `std::cin`.

3. In the `switch` statements, the cases should be represented as numbers, not strings. Instead of using `Yes` and `No`, change them to `1` and `2` respectively.

4. The code was missing the closing quotation marks in the `cout` statements within the `switch` cases. These should be added to ensure the output is displayed correctly.

5. There was an additional `cin` statement in the wrong place. Move it inside the `switch` statement after the appropriate `cout` statement.

6. The original code had incorrect closing parentheses in the last `cout` statements. These should be corrected to allow the program to compile successfully.

7. Finally, `#include <iostream.h>` and the `system("Pause")` line are not necessary. You can remove them.

With these changes, the code should now compile and execute properly.