Wednesday
July 30, 2014

Homework Help: C++

Posted by sonnytsn on Friday, July 11, 2008 at 8:44am.

#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

Answer this Question

First Name:
School Subject:
Answer:

Related Questions

C++ - #include <iostream.h> #include <stdlib.h> int main ( ) { int ...
C++ Programming - Can any1 please fix this c++ source problem /*Circle Are ...
C++ Programming - I have to redo programming exercise 5 of chapter 9 using ...
C++ - Would you check and correct my error please...
programming C++ - Write a program that reads test scores up to 30 into an array...
C++ Programming - I NEED HELP WITH MY CODE!!! it won't compile right The formula...
C++ Programming - #include <iostream.h> #include <stdlib.h> #include...
C++ if else problem, please look - It compiles but it doesn't work. can you tell...
C++ Programming - #include <iostream.h> #include <stdlib.h> #include...
C++ - Can anyone help me with my c++ program? Its a program I have to write ...

Search
Members