In: Computer Science
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 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 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 made by HGA management?
Justify their decisions based on cost benefit analysis.
Please make copy paste available
Must be 250 words
In: Computer Science
In: Computer Science
In: Computer Science
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& 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. 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 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
In: Computer Science
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:
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 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 your own words!
In: Computer Science