i have to make a program that has 1 tpoic and 10 questions relating to the topic. i am supposed to use if statements and variables, but am having a real hard time. i dont understand them at all. can anyone help me. here is the code i have so far, but since i have no understanding of variables and if statements there are none here.
any and all help is highly appreciated.Code:#include <iostream.h> #include <stdlib.h> //Jake Fletcher //2-2-06 //6th Hour int main() { cout << "Welcome To Jake's Guessing Game! \n" ; cout << "The Topic Is: Rock n Roll \n" ; cout << "\n"; cout << "1) What Band Sings: Living After Midnight? \n" ; cout << " A) Judas Priest " << "C) AC/DC \n" ; cout << " B) Cream " << "D) Guns n Roses \n" ; //A) Judas Priest cout << "\n"; cout << "2) Which Of The Following Isn't 1 Of The 4 Main Instruments In A Rock Band? \n" ; cout << " A) Rythm Guitar " << "B) Banjo \n" ; cout << " C) Drums " << "D) Bass \n" ; //B) Banjo cout << "\n"; cout << "3) What Is The Name Of Greatest Rock Band In The World? \n" ; cout << " A) KISS " << "C) Nazareth \n" ; cout << " B) Rolling Stones " << "D) AC/DC \n" ; //B) Rolling Stones cout << "\n"; cout << "4) What Band Sings: Hair Of A Dog? \n" ; cout << " A) Metallica " << "C) Bachman Turner Overdrive \n" ; cout << " B) The Who " << "D) Nazareth \n" ; //D) Nazareth cout << "\n"; cout << "5) Who Played Bass For The Beatles? \n" ; cout << " A) Ringo Starr " << "B) John Lennon \n" ; cout << " C) Paul McCartney " << "D) George Harrison \n" ; //C) Paul McCartney cout << "\n"; cout << "6) Who Is The Worlds Greatest Guitar Player? \n" ; cout << " A) Jimi Hendrix " << "C) Angus Young \n" ; cout << " B) Eric Clapton " << "D) Jimmy Page \n" ; //C) Angus Young cout << "\n"; cout << "7) Who Is The Worlds Greatest Bass Player? \n" ; cout << " A) John Paul Jones " << "C) Cliff Williams \n" ; cout << " B) Cliff Burton " << "D) Flea \n" ; //A) John Paul Jones cout << "\n"; cout << "8) Who Is The Worlds Greatest Drummer? \n" ; cout << " A) Neal Peart " << "B) Lars Ulrich \n" ; cout << " C) Chris Slade " << "D) John Bonham \n" ; //A) Neal Peart cout << "\n"; cout << "9) Who Is The Worlds Greatest Rock Singer? \n" ; cout << " A) Freddie Mercury " << "C) Brian Johnson \n" ; cout << " B) Robert Plant " << "D) Klaus Meine \n" ; //B) Robert Plant cout << "\n"; cout << "10) Which Of The Following Is The Greatest Rock Song OF All Time? \n" ; cout << " A) Stairway To Heaven " << "C) Sympathy For The Devil \n" ; cout << " B) Layla " << "D) Satisfaction \n" ; //D) Satisfaction system("PAUSE"); return 0; }