1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98
|
#include <iostream>
#include <string.h>
#include <stdlib.h>
#include <time.h>
using namespace std;
string definitions;
string term;
string vocab();
string termsAndDefinitions [] = {"Acquittal",
"A jury verdict that a criminal defendant is not guilty, or the finding of a judge that the evidence is insufficient to support a conviction.",
"Active judge",
"A judge in the full-time service of the court. Compare to senior judge.",
"Administrative Office of the United States Courts (AO)",
"The federal agency responsible for collecting court statistics, administering the federal courts' budget, and performing many other administrative and programmatic functions, under the direction and supervision of the Judicial Conference of the United States.",
"Admissible",
"A term used to describe evidence that may be considered by a jury or judge in civil and criminal cases.",
"Adversary proceeding",
"A lawsuit arising in or related to a bankruptcy case that begins by filing a complaint with the court, that is, a ""trial"" that takes place within the context of a bankruptcy case.",
"Affidavit",
"A written or printed statement made under oath.",
"Affirmed",
"In the practice of the court of appeals, it means that the court of appeals has concluded that the lower court decision is correct and will stand as rendered by the lower court.",
"Alternate juror",
"A juror selected in the same manner as a regular juror who hears all the evidence but does not help decide the case unless called on to replace a regular juror.",
"Alternative dispute resolution (ADR)",
"A procedure for settling a dispute outside the courtroom. Most forms of ADR are not binding, and involve referral of the case to a neutral party such as an arbitrator or mediator.",};
string wordGenerator();
string multipleChoice();
int main()
{
int a = 1, b = 2;
cout << "Welcome to Terms and Definitions of Legal Terms" << endl << endl;
while (b>a) {
cout << "Welcome to Terms and Definitions of Legal Terms" << endl << endl;
wordGenerator();
}
/////////////////////////////////////////////////////////////////////////////////////////////
return 0;
}
string wordGenerator()
{
string multipleAnswers[2];
int number = 0;
cout << "What is " <<termsAndDefinitions[number] << "?" << endl << endl;
multipleChoice();
//cout << "Choose one of the following: " << endl << endl <<"(1)" << termsAndDefinitions[number + 1] << endl << endl << " OR " << endl << endl << "(2) " << termsAndDefinitions[number + 3] << "?" << endl << endl;
//cout << "It is" <<termsAndDefinitions[number++];
//cout << "What is " <<termsAndDefinitions[rand() % 8] << "?";
}
string multipleChoice()
{
string answer = "hi";
int number = 0;
loop:
//multipleAnswers[termsAndDefinitions[number], termsAndDefinitions[number + 1], termsAndDefinitions[number + 3]];
cout << "Choose one of the following: " << endl << endl <<"(1)" << termsAndDefinitions[number + 1] << endl << endl << " OR " << endl << endl << "(2) " << termsAndDefinitions[number + 3] << "?" << endl << endl;
getline(cin, answer);
if (answer == "1")
cout << "Good job";
else
{cout << "Try again";
goto loop; }
}
|