C# program should have the following: 3.1 Begin by declaring the multiple-choice quiz questions as string variables, along with their corresponding answer choices.  3.2 Declare an integer variable to track the number of correct answers.  3.3 Use a loop to present each question to the user and prompt for their answer. Use an if statement to check whether the user's response is correct and increment the correct answer count if it is.  3.4 Once all questions have been presented and answered, use a switch statement to display feedback based on the number of correct answers. If the user answered all five questions correctly, display "Excellent!"; if they answered four, display "Very good!"; if they answered three or fewer, display "Time to brush up on your knowledge of global warming," along with a list of recommended websites.  3.5 Use console input and output to interact with the user and present the quiz and feedback.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
icon
Concept explainers
Question

C# program should have the following:
3.1 Begin by declaring the multiple-choice quiz questions as string variables, along with their corresponding answer choices. 
3.2 Declare an integer variable to track the number of correct answers. 
3.3 Use a loop to present each question to the user and prompt for their answer. Use an if statement to check whether the user's response is correct and increment the correct answer count if it is. 
3.4 Once all questions have been presented and answered, use a switch statement to display feedback based on the number of correct answers. If the user answered all five questions correctly, display "Excellent!"; if they answered four, display "Very good!"; if they answered three or fewer, display "Time to brush up on your knowledge of global warming," along with a list of recommended websites. 
3.5 Use console input and output to interact with the user and present the quiz and feedback. 

Global Warming
The issue of global warming has gained significant attention due to the film "An Inconvenient Truth," featuring
former Vice President Al Gore. Mr. Gore and the Intergovernmental Panel on Climate Change, a U.N. network of
scientists, were awarded the Nobel Peace Prize in 2007 for their efforts to build and disseminate knowledge about
human-induced climate change. To obtain a balanced view of the global warming debate, conduct research online,
including searches for phrases such as "global warming skeptics." Afterward, construct a five-question multiple-
choice quiz on global warming, with each question containing four possible answers (numbered 1-4). Strive to
remain impartial and represent both sides of the debate fairly. Then, develop an app that presents the quiz,
computes the number of correct responses (ranging from zero to five), and offers feedback to the user. If the user
answers all five questions correctly, display "Excellent"; if they answer four correctly, display "Very good"; if three or
fewer are correct, display "Time to brush up on your knowledge of global warming," along with a selection of
websites where you discovered your information.
Source: Deitel, H and Deitel P, Visual C# How to Program. (2016).
Transcribed Image Text:Global Warming The issue of global warming has gained significant attention due to the film "An Inconvenient Truth," featuring former Vice President Al Gore. Mr. Gore and the Intergovernmental Panel on Climate Change, a U.N. network of scientists, were awarded the Nobel Peace Prize in 2007 for their efforts to build and disseminate knowledge about human-induced climate change. To obtain a balanced view of the global warming debate, conduct research online, including searches for phrases such as "global warming skeptics." Afterward, construct a five-question multiple- choice quiz on global warming, with each question containing four possible answers (numbered 1-4). Strive to remain impartial and represent both sides of the debate fairly. Then, develop an app that presents the quiz, computes the number of correct responses (ranging from zero to five), and offers feedback to the user. If the user answers all five questions correctly, display "Excellent"; if they answer four correctly, display "Very good"; if three or fewer are correct, display "Time to brush up on your knowledge of global warming," along with a selection of websites where you discovered your information. Source: Deitel, H and Deitel P, Visual C# How to Program. (2016).
Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Control Structure
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education