SophiaPretty

(5)

$14/per page/Negotiable

About SophiaPretty

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Accounting,Algebra See all
Accounting,Algebra,Applied Sciences,Architecture and Design,Art & Design,Biology,Business & Finance,Calculus,Chemistry,Communications,Computer Science,Economics,Engineering,English,Environmental science,Essay writing Hide all
Teaching Since: Jul 2017
Last Sign in: 304 Weeks Ago, 2 Days Ago
Questions Answered: 15833
Tutorials Posted: 15827

Education

  • MBA,PHD, Juris Doctor
    Strayer,Devery,Harvard University
    Mar-1995 - Mar-2002

Experience

  • Manager Planning
    WalMart
    Mar-2001 - Feb-2009

Category > Engineering Posted 15 Oct 2017 My Price 9.00

Help revise the data structure(s) on this project

/*This Program will consist of a quiz to test your knowledge on the rules andfacts of baseball.This quiz will have multipul choice questions ranging from 1-4.Your answerswill be calculatedat the end of the quiz and the results will be revealed along with any wronganswers.You will haveonly one chance to correct them .*///Created for ENG 115 Embry Riddle Instructor Victor Muchuruza//Written and created by Brent D Jarrett//August 20, 2017//using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace BaseBallQuiz{class Program{static void Main(string[] args){// display the current dateDateTime d = DateTime.Now;Console.WriteLine("{0:dd/MM/yyyy HH:mm:ss}", d);Console.WriteLine("BaseBall Quiz");string[] questions = LoadQuestions();Boolean[] status = { false, false, false, false, false, false,false, false, false };string[] options = LoadOptions();string[] key = { "A", "B", "C", "D", "B", "C", "A", "A", "A" };int noCorrectAnswer = 0;// iterate through questionsfor (int i = 0; i < 9; i++){string choice = DisplayQA(questions, options, i);// record correct answersif (choice == key[i]){status[i] = true;noCorrectAnswer++;}}// if all answers are not correct, restart the quiz for wronganswersif (noCorrectAnswer < 9){Console.WriteLine("Re-StartQuiz================================");Console.WriteLine("Repeat the quiz for wrong answeredquestions!");for (int i = 0; i < 9; i++){if (status[i] == false)
Background image of page 1
{string choice = DisplayQA(questions, options, i);if (choice.Equals(key[i],StringComparison.OrdinalIgnoreCase)){noCorrectAnswer++;status[i] = true;}}}}// display correct answersConsole.WriteLine("Number of correct Answers: " + noCorrectAnswer);Console.ReadLine();}/// <summary>/// display question with answer choices/// </summary>/// <param name="questions"></param>/// <param name="options"></param>/// <param name="i"></param>/// <returns></returns>private static string DisplayQA(string[] questions, string[] options,int i){string choice = "";Console.WriteLine(questions[i]);Console.WriteLine(options[i]);Console.Write("Enter the answer: ");choice = Console.ReadLine();// keep asking until user enters valid optionwhile (!(choice.ToUpper().Equals("A") ||choice.ToUpper().Equals("B") || choice.ToUpper().Equals("C") ||choice.ToUpper().Equals("D"))){Console.WriteLine("\nInvalid value. Please choose validoption!");Console.Write("Enter the answer: ");choice = Console.ReadLine();}return choice;}/// <summary>/// Load question options/// </summary>/// <returns></returns>private static string[] LoadOptions(){return new string[] { "A. 2\nB. 5\nC. 6\nD. 9","A. 2\nB. 5\nC. 6\nD. 9","A. 2\nB. 5\nC. 6\nD. 9","A. 2\nB. 5\nC. 6\nD. 9","A. 2\nB. 5\nC. 6\nD. 9","A. 2\nB. 5\nC. 6\nD. 9","A. 2\nB. 5\nC. 6\nD. 9","A. 2\nB. 5\nC. 6\nD. 9","A. 2\nB. 5\nC. 6\nD. 9"};
Background image of page 2

Answers

(5)
Status NEW Posted 15 Oct 2017 09:10 AM My Price 9.00

-----------  ----------- H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly

Not Rated(0)