- Joined
- Jul 18, 2008
- Messages
- 2,894 (0.50/day)
- Location
- South Carolina
System Name | KILLER |
---|---|
Processor | Intel Core i7 4790K |
Motherboard | MSI Z87 G45 Gaming |
Cooling | Water Cooling |
Memory | 2x8GB Gskill 2400mhz |
Video Card(s) | EVGA GTX 980 |
Storage | SSD Samsung 500GB |
Display(s) | 24" Asus 144hz |
Case | Cooler Master HAF |
Audio Device(s) | X-Fi Platinum |
Power Supply | Antec 1200 Watt Modular |
Software | Windows 10 64 Bit |
Benchmark Scores | 3DMark Vantage 51342 |
I need the program to ask each question seperately.
What do I need to add to my code?
Please help...Thanks
What do I need to add to my code?
Please help...Thanks
Code:
//Your Name Here
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
//Sample variable data types
int test = 0;
int clas = 0;
int thanksgiving = 0;
//Place your code here...
cout<<"\t\t\t ******************************"<<endl;
cout<<"\t\t\t * Kelvin Holland *"<<endl;
cout<<"\t\t\t * CPT-168 *"<<endl;
cout<<"\t\t\t * Exam *"<<endl;
cout<<"\t\t\t ******************************"<<endl<<endl;
cout<<"Did you study for this test?";
cin>>test;
if(test == 'y')
{
cout<<"Good for you"<<endl<<endl;
}
else
{
cout<<"Good luck then"<<endl<<endl;
}
cout<<"Have you enjoyed this class?"<<endl<<endl;
cin>>clas;
if(clas == 'y')
{
cout<<"That is nice"<<endl<<endl;
}
else
{
cout<<"You should have answered Yes"<<endl<<endl;
}
cout<<"Did you have a good Thanksgiving?"<<endl<<endl;
cin>>thanksgiving;
if(thanksgiving == 'y')
{
cout<<"Great!"<<endl<<endl;
}
else
{
cout<<"Great!"<<endl<<endl;
}
//Sample Screen Output
cout<<"\t\t Have a Merry Christmas and a Happy New Year!!!"<<endl<<endl;
system("color F0");
system("pause");
return 0;
}