Questions
The application of lexical analysis techniques in information retrieval system You should cover: 1) What is...


The application of lexical analysis techniques in information retrieval system

You should cover:
1) What is the problem?
2) What is the compiler construction techniques used to solve the problem
3) How to solve the problem using the compiling techniques.

In: Computer Science

Your readings for this week have discussed databases, data breaches, and networking security in the business...

Your readings for this week have discussed databases, data breaches, and networking security in the business world. Find a major data breach within the last 2 years and do some research explain how and why the breach occurred, what information was accessed, and how this information could be misused. Has the incident been fully resolved or are there ongoing security issues with the company or customer information? Remember to include references to your readings and an article from the web to support your post. Do not use the same data breach as someone else. Include the name of the business or entity impacted by the data breach in the subject line of your discussion.

In: Computer Science

You will design a program to keep track of a restaurants waitlist using a queue implemented...

You will design a program to keep track of a restaurants waitlist using a queue implemented with a linked list. Make sure to read pages 1215-1217 and 1227-1251

1. Create a class named waitList that can store a name and number of guests. Use constructors to automatically initialize the member variables.

2. Add the following operations to your program: a. Return the first person in the queue b. Return the last person in the queue c. Add a person to the queue d. Delete a person from the queue

3. Create a main program to test your class. Your main program should contain the following options.

a. Add a guest (adds the reservation name and number of guests)

b. Delete a guest (the user must give you the name to delete, the list may be empty or the guest may not be in the list)

c. Show last guest waiting (return NONE if the queue is empty) d. Show first guest waiting (return NONE if the queue is empty) e. Exit

She is requiring Stacks and Queues. There are various ways to do this code, but I am really unfamiliar with this one.  

In: Computer Science

In java we will need to create a method that takes the array {1,2,3,4,5} and returns...

In java we will need to create a method that takes the array {1,2,3,4,5} and returns the head reference to a linkedList. We will also need to display the linked list in out main method.

In: Computer Science

Risk Mitigation Recommendation What’s the recommendation by the risk assessment team? What are the final decisions...

Risk Mitigation Recommendation

What’s the recommendation by the risk assessment team?

What are the final decisions made by HGA management?

Justify their decisions based on cost benefit analysis.

Please make copy paste available

Must be 250 words

In: Computer Science

create a PYTHON program that will determine the cost per 3" serving for a giant sub...

create a PYTHON program that will determine the cost per 3" serving for a giant sub sandwich you will be ordering for a get-together with your friends.
Within main(), get the input of the length in inches for the sub and the cost.
Create function named numServings() that will receive the length in inches and return the number of servings. Each 3" is considered serving. Servings should be a whole number, so you will need to find a way to drop the fraction and return only the integer portion, you should call this function from within main() and return the number of servings to main().
Then create a function named costPerServing(). This function which will receive both the cost of the giant sub and the number of servings. This function will return the cost per serving . Call the function within main().
Then within main(), print cost per serving using this format $2.67 print the number of servings!, then put the code in main() inside a loop, the loop will ask the user if they want to enter information for another sub sandwich. if so, data is requested and everything including the print statements process again!

In: Computer Science

What is the output of the following statements? a. cout << ("Jack" <= "John" && "Business"...

What is the output of the following statements?

a. cout << ("Jack" <= "John" && "Business" >= "Accounting") << endl;
b.cout << boolalpha << ((10 <= 15 - 2) && (15 >= 20) || (15 - 2 != 20)) << endl;
c.cout << !(30 > 10) << endl;
d.cout << showpos << (6 <= 5 || 3 < 15) << endl;
e.cout << boolalpha << ("bill" > "billy") << endl;

In: Computer Science

Debug please. It's in C++ #include<iostream> #include<string> using namespace std; template <class T> double half(int x)...

Debug please. It's in C++

#include<iostream>

#include<string>

using namespace std;

template <class T>

double half(int x)

{

double h = x / 2;

return h;

}

class TuitionBill

{

friend ostream& operator<<(ostream, TuitionBill);

private:

string student;

double amount;

public:

TuitionBill(string, double);

double operator/(int);

};

TuitionBill::TuitionBill(string student, double amt)

{

student = student;

amount = amt;

}

double TuitionBill::operator/(int factor)

{

double half = amount / factor;

return hafl;

}

ostream& operator<<(ostream& o, TuitionBill)

{

o << t.student << " Tuition: $" << t.amount << endl;

return o;

}

int main()

{

int a = 47;

double b = 39.25;

TuitionBill tb("Smith", 4000.00);

cout << "Half of " << a << " is " << half(a) << endl;

cout << "Half of " << b << " is " << half(b) << endl;

cout << "Half of " << tb << " is " << half(tb) << endl;

return 0;

}

In: Computer Science

Debug please. It's in C++ #include<iostream> #include<string> using namespace std; class Prescription {    friend ostream&...

Debug please. It's in C++

#include<iostream>

#include<string>

using namespace std;

class Prescription

{

   friend ostream& operator<<(ostream&, const Prescription&);

   friend istream& operator>>(istream&, Prescription&);

   private:

int idNum;

int numPills;

double price;

   public:

Prescription(const int = 0, const int = 0, const double = 0.0);

};

Prescription::Prescription(const int id, const int pills, const double p)

{

   id = id;

   numPills = pills;

   price = p;

}

ostream& operator<<(ostream& out, const Prescription pre)

{

   out << "Prescription #" << pre.idNum <<

" Pills: " << pre.numPills <<

" Price is $" << per.price << endl;

   return out;

}

istream& operator>>(istream& in, Prescridtion& pre)

{

   cout << endl;

   cout << "Enter prescription number ";

   in >> preidNum;

   if(pre.idNum <= 0);

   throw("Invalid ID");

   cout << "Enter number of pills ";

   in >> pre.numPills;

   if(pre.numPills <= 0)

   throws("Number of pills invalid");

   cout << "Enter price ";

   in >> pre.price;

   if(pre.price < 0.0)

   throw("Price is negative");

   return in;

}

int main()

{

   Prescription aScrip;

   try

cin >> aScrip;

   catch(const char *msg)

   {

cout << msg << endl;

   }

   cout << aScrip;

   return 0;

}

In: Computer Science

Write a Python function that returns a list of keys in aDict with the value target....

Write a Python function that returns a list of keys in aDict with the value target. The list of keys you return should be sorted in increasing order. The keys and values in aDict are both integers. (If aDict does not contain the value target, you should return an empty list.)

This function takes in a dictionary and an integer and returns a list.

def keysWithValue(aDict, target):

'''

aDict: a dictionary target: an integer

'''

# Your code here

In: Computer Science

• You should use the divide-and-conquer strategy and write multiple functions. • You should always use...

• You should use the divide-and-conquer strategy and write multiple functions. • You should always use arrays for the data sequences. • You should always use const int to define the sizes of your arrays. a. Write a C++ program. The program first asks the user to enter 4 numbers to form Sequence 1. Then the program asks the user to enter 8 numbers to form Sequence 2. Finally, the program shall tell which sequence has a larger average. For example, if the user enters 3 4 5 6 for Sequence 1, and 0 1 2 3 4 5 6 7 for Sequence 2. Your program should know the average of Sequence 1 is 4.5, and the average of Sequence 2 is 3.5. Therefore, your program should conclude that Sequence 1 has a larger average.

In: Computer Science

What is meant by the term “hot-swappable”? The Domain Name System (DNS) is used in what...

  1. What is meant by the term “hot-swappable”?
  2. The Domain Name System (DNS) is used in what capacity and how does it work?
  3. Discuss the difference between the IP, DNS and MAC addresses – how do the relate to one another in a network?

In: Computer Science

Write a C++ program that reads numbers from the user until the user enters a Sentinel....

Write a C++ program that reads numbers from the user until the user enters a Sentinel. Use a Sentinel of -999. Ignore all negative numbers from the user input. Do the following:

  1. Output the sum of all even numbers
  2. Output the sum of all odd numbers
  3. Output the count of all even numbers
  4. Output the count of all odd numbers

You must use loops and numbers to do this. You must not use any arrays or vectors for this program.

In: Computer Science

C++ polymorphism. Create a program that issues a quiz through the terminal. The quiz will ask...

C++ polymorphism.

Create a program that issues a quiz through the terminal. The quiz will ask a variety of C++ questions to the user and prompt them for a response. The response will differ based on the type of question, such as true or false, multiple-choice, or fill in the blank.

Part 1: Designing the Quiz

Design this program using a polymorphic vector of questions. Create a Question base class that will serve to point to three different derived classes: TrueFalseQuestion, MultipleChoiceQuestion, and FillInTheBlank. Your base class should only contain members that are common aspects of all three of the derived classes. The vector that contains the list of questions should be composed of Question class pointers. Test your quiz class by manually initialize your questions with text and correct answers and then issue each question one at a time to the user.

Part 2: Making a Quiz Class

Once you have finished designing your question class and derived forms, create a quiz class which will contain the question polymorphic array. The quiz class should have at least 3 (probably 5) public member functions: One for issuing the quiz to the user, one for adding new questions to the quiz, another for retrieving the quiz score in terms of a percentage. Properly implement the "rule of three" for the quiz class so that this quiz class does not create memory leaks or shallow copies.

In: Computer Science

1, Reflection: How is building a software system like building a house? please 250 words ,by...

1, Reflection: How is building a software system like building a house?

please 250 words ,by your own words!

In: Computer Science