The image for this code is below. I need help fixing this code to be inside of C#, and work as intented please (reject if you can't do C#). Screenshot of output would be great.   using System;      namespace GlobalWarming; int private main()                                     //main function {     int count = 0, option1, option2, option3, option4, option5;   //declaring required variables     Console.WriteLine("Question 1:\n");                                                  //printing question 1     Console.WriteLine("Which one of the following cause global warming?\n");     Console.WriteLine("1) Carbon dioxide\n2) Oxygen\n3) Nitrogen\n4) Hydrogen\n");     Console.WriteLine("Enter the correct option: ");                            //asking user to enter the answer     cin >> option1; //storing the answer in option1 variable     if (option1 == 1) //checking if the answer is correct     {         count++; //incrementing count variable if answer is correct     }     Console.WriteLine("Question 2:\n"); //printing question 2     Console.WriteLine("How many percent of carbon dioxide increased in the atmosphere since pre-industrial times?\n");     Console.WriteLine("1) About 10%\n2) About 20%\n3) About 30%\n4) About 40%\n");     Console.WriteLine("Enter the correct option: ");                                 //asking user to enter the answer     cin >> option2; //storing the answer in option2 variable     if (option2 == 3) //checking if the answer is correct     {         count++; //incrementing count variable if answer is correct     }     Console.WriteLine("Question 3:\n"); //printing question 3     Console.WriteLine("Who measures the global warming rate?\n");     Console.WriteLine("1) Astrologers\n2) Physicist\n3) Philosopher\n4) Climatologist\n");     Console.WriteLine("Enter the correct option: ");                          //asking user to enter the answer     cin >> option3; //storing the answer in option3 variable     if (option3 == 4) //checking if the answer is correct     {         count++; //incrementing count variable if answer is correct     }     Console.WriteLine("Question 4:\n"); //printing question 4     Console.WriteLine("Human activities cause global warming. True or False?\n");     Console.WriteLine("1) True\n2) False\n");     Console.WriteLine("Enter the correct option: ");                         //asking user to enter the answer     cin >> option4; //storing the answer in the option4 variable     if (option4 == 1) //checking if the answer is correct     {         count++; //incrementing count variable if answer is correct     }     Console.WriteLine("Question 5:\n");                                         //printing question 5     Console.WriteLine("Which one of the following cause global warming?\n");     Console.WriteLine("1) Radiative forcing\n2) Earth gravitation force\n3) Oxygen\n4) Centripetal force\n");     Console.WriteLine("Enter the correct option: ");                   //asking user to enter the answer     cin >> option5; //storing the answer in the option5 variable     if (option5 == 1)                                                //checking if the answer is correct     {         count++;                                                       //incrementing count variable if answer is correct     }     if (count == 5)                                               //checking if all answers are correct     {         Console.WriteLine("Excellent");                                   //if yes printing Excellent     }     else if (count == 4)                                   //checking if 4 answers are correct     {         Console.WriteLine("Very good");                           //if yes printing Very good     }     else if (count < 4)                               //checking if total number of correct answers are less than 4     {         //if yes printing links to some websites         Console.WriteLine("Time to brush up on your knowledge on global warming\n");         Console.WriteLine("Here are links to some websites:\n");         Console.WriteLine("https://en.wikipedia.org/wiki/Global_warming\n");         Console.WriteLine("https://www.nrdc.org/stories/global-warming-101\n");         Console.WriteLine("https://www.nationalgeographic.com/environment/global-warming/global-warming-overview/");     }     return 0; }

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

The image for this code is below. I need help fixing this code to be inside of C#, and work as intented please (reject if you can't do C#). Screenshot of output would be great.

 

using System;
    
namespace GlobalWarming;

int private main()                                     //main function
{
    int count = 0, option1, option2, option3, option4, option5;   //declaring required variables
    Console.WriteLine("Question 1:\n");                                                  //printing question 1
    Console.WriteLine("Which one of the following cause global warming?\n");
    Console.WriteLine("1) Carbon dioxide\n2) Oxygen\n3) Nitrogen\n4) Hydrogen\n");
    Console.WriteLine("Enter the correct option: ");                            //asking user to enter the answer
    cin >> option1; //storing the answer in option1 variable
    if (option1 == 1) //checking if the answer is correct
    {
        count++; //incrementing count variable if answer is correct
    }
    Console.WriteLine("Question 2:\n"); //printing question 2
    Console.WriteLine("How many percent of carbon dioxide increased in the atmosphere since pre-industrial times?\n");
    Console.WriteLine("1) About 10%\n2) About 20%\n3) About 30%\n4) About 40%\n");
    Console.WriteLine("Enter the correct option: ");                                 //asking user to enter the answer
    cin >> option2; //storing the answer in option2 variable
    if (option2 == 3) //checking if the answer is correct
    {
        count++; //incrementing count variable if answer is correct
    }
    Console.WriteLine("Question 3:\n"); //printing question 3
    Console.WriteLine("Who measures the global warming rate?\n");
    Console.WriteLine("1) Astrologers\n2) Physicist\n3) Philosopher\n4) Climatologist\n");
    Console.WriteLine("Enter the correct option: ");                          //asking user to enter the answer
    cin >> option3; //storing the answer in option3 variable
    if (option3 == 4) //checking if the answer is correct
    {
        count++; //incrementing count variable if answer is correct
    }
    Console.WriteLine("Question 4:\n"); //printing question 4
    Console.WriteLine("Human activities cause global warming. True or False?\n");
    Console.WriteLine("1) True\n2) False\n");
    Console.WriteLine("Enter the correct option: ");                         //asking user to enter the answer
    cin >> option4; //storing the answer in the option4 variable
    if (option4 == 1) //checking if the answer is correct
    {
        count++; //incrementing count variable if answer is correct
    }
    Console.WriteLine("Question 5:\n");                                         //printing question 5
    Console.WriteLine("Which one of the following cause global warming?\n");
    Console.WriteLine("1) Radiative forcing\n2) Earth gravitation force\n3) Oxygen\n4) Centripetal force\n");
    Console.WriteLine("Enter the correct option: ");                   //asking user to enter the answer
    cin >> option5; //storing the answer in the option5 variable
    if (option5 == 1)                                                //checking if the answer is correct
    {
        count++;                                                       //incrementing count variable if answer is correct
    }
    if (count == 5)                                               //checking if all answers are correct
    {
        Console.WriteLine("Excellent");                                   //if yes printing Excellent
    }
    else if (count == 4)                                   //checking if 4 answers are correct
    {
        Console.WriteLine("Very good");                           //if yes printing Very good
    }
    else if (count < 4)                               //checking if total number of correct answers are less than 4
    {
        //if yes printing links to some websites

        Console.WriteLine("Time to brush up on your knowledge on global warming\n");
        Console.WriteLine("Here are links to some websites:\n");
        Console.WriteLine("https://en.wikipedia.org/wiki/Global_warming\n");
        Console.WriteLine("https://www.nrdc.org/stories/global-warming-101\n");
        Console.WriteLine("https://www.nationalgeographic.com/environment/global-warming/global-warming-overview/");
    }
    return 0;

}

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.
Transcribed Image Text: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.
Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Similar questions
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY