Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

(Global Warming Facts Quiz) The controversial issue of global warming has been w

ID: 3640342 • Letter: #

Question

(Global Warming Facts Quiz) The controversial issue of global warming has been widely
publicized by the film “An Inconvenient Truth,” featuring former Vice President Al Gore.Mr. Gore
and a U.N. network of scientists, the Intergovernmental Panel on Climate Change, shared the 2007
Nobel Peace Prize in recognition of “their efforts to build up and disseminate greater knowledge
about man-made climate change.” Research both sides of the global warming issue online (you might want to search for phrases like “global warming skeptics”). Create a five-question multiplechoice
quiz on global warming, each question having four possible answers (numbered 1–4). Be objective
and try to fairly represent both sides of the issue. Next, write an application that administers
the quiz, calculates the number of correct answers (zero through five) and returns a message to the
user. If the user correctly answers five questions, print “Excellent”; if four, print “Very good”; if
three or fewer, print “Time to brush up on your knowledge of global warming,” and include a list
of some of the websites where you found your facts.

Explanation / Answer

#include "stdafx.h" #include #include #include using std::string; using std::cout; using std::cin; using std::endl; #include using std::rand; //return the correct answer for the ith quiz char nextQuiz(int i); int main() { int Quiz1 ; int Quiz2 ; int Quiz3 ; int Quiz4 ; int Quiz5 ; char Answer[] = {'A', 'B','C','D'}; int i=0; do { Quiz1 = rand()%10; //This generates the question which will be asked Quiz2 = rand()%10; Quiz3 = rand()%10; Quiz4 = rand()%10; Quiz5 = rand()%10; do { if (Quiz1 == 1){ cout