Best writers. Best papers. Let professionals take care of your academic papers

Order a similar paper and get 15% discount on your first order with us
Use the following coupon "FIRST15"
ORDER NOW

Conduct research on two U.S. intelligence agencies. Describe their mission and their

Get college assignment help at Smashing Essays Conduct research on two U.S. intelligence agencies. Describe their mission and their role in the war on terrorism. Writing Requirements

ICT283 Queue templatedted

Question ICT283 Queue templatedted

I need a C program that takes all the lines

Question I need a C program that takes all the lines input to standard input and writes them to standard output in reverse order. Each line is output in the correct order, but the ordering of the lines must be reversed. The program should terminate when the input reads “EXIT”. Is it possible for this program to be completed with the use of vectors?Example of input:Once upon a midnight dreary, while I pondered, weak and weary,Over many a quaint and curious volume of forgotten loreWhile I nodded, nearly napping, suddenly there came a tapping, As of some one gently rapping, rapping at my chamber door. “‘Tis some visiter,” I muttered, “tapping at my chamber door Only this and nothing more.” EXIToutput:Only this and nothing more.” “‘Tis some visiter,” I muttered, “tapping at my chamber door  As of some one gently rapping, rapping at my chamber door.  While I nodded, nearly napping, suddenly there came a tapping,  Over many a quaint and curious volume of forgotten lore  Once upon a midnight dreary, while I pondered, weak and weary,

Hi,I need help for a programming class that is asking

Question Hi,I need help for a programming class that is asking me to write methods. My professor only provided a powerpoint and it is an online class, so resources are pretty limited. It is not Java coding, it is pseudocoding but the drop down did not allow me to indicate anything but Java or C .

Hello, trying to write a program that uses a stack

Question Hello, trying to write a program that uses a stack to print prime factors of a positive integer in descending order. It has to run on Visual studios but every help I have gotten it only works on other IDE’s.#include #include #include using namespace std;vector factors(int n) {   vector result;   int a = 2;   while (a * a 1)      result.push_back(a);   return result;}int main(){   int x;   cout <> x;   vector result_factors = factors(x);   cout << "The result: ";   for (int i : result_factors)      cout << "i ";   cout << endl;   return 0;}

Hello, Everyone that I ask for help only can get

Question Hello, Everyone that I ask for help only can get my program to work using other IDE’s but I need it to work in Visual Studios. I am writing code that read a line of text and changes upper case to lower and lower to upp and places both in a queue and on to a stack then verify’s if its a palindrome or not. It has to work in Visual Studios.#include #include #include #include #include using namespace std;int main(){   string input;   getline(cin, input);   for (int a = 0; a < input.length(); a )   {      input[a] = tolower(input[a]);   }   cout << input << endl;   stack inputStack;   queue inputQueue;   inputStack.push(input);   inputQueue.push(input);   bool isPalindrome = true;   for (int a = 0; a < input.length(); a )   {      isPalindrome *= input[a] == input[input.length() – 1 – a];   }   if (isPalindrome)   {      cout << "This is a palindrome";   }   else   {      cout << "This is not a palindrome";   }   return 0;}

This question was created from W11Assignment.docx https://www.coursehero.com/file/35733287/W11Assignmentdocx/ How do I

Question This question was created from W11Assignment.docx https://www..com/file/35733287/W11Assignmentdocx/ How do I calculate how long the bubble sort will take? ATTACHMENT PREVIEW Download attachment 35733287-332836.jpeg 1. [2 points] Recall that bubble sort, insertion sort, and selection sort all scale quadratically, If a bubble sort of 5000 elements takes 8 seconds, how long will it take to bubble sort 15000 elements? Justify your answer Replace this text with your solution

This question was created from W11Assignment.docx https://www.coursehero.com/file/35733287/W11Assignmentdocx/ How is a

Question This question was created from W11Assignment.docx https://www..com/file/35733287/W11Assignmentdocx/ How is a static method different from an instance method? How is a static variable different from an instance variable? ATTACHMENT PREVIEW Download attachment 35733287-332837.jpeg 2. [2 point] How is a static method different from an instance method? How is a static variable different from an instance variable? Replace this text with your solution

This question was created from W11Assignment.docx https://www.coursehero.com/file/35733287/W11Assignmentdocx/ What are the

Question This question was created from W11Assignment.docx https://www..com/file/35733287/W11Assignmentdocx/ What are the object variables? ATTACHMENT PREVIEW Download attachment 35733287-332843.jpeg Practicing Concepts {10 points] The problems presented in this section reinforce the topics introduced for the week. This includes practicing the use of a concept and the identification of errors Blue] is a tool that will assist you in solving these problems. 4. [5 points] Consider the following lines of code: import java.util.Random; Random generator = new randomi); String playerName =

This question was created from W11Assignment.docx https://www.coursehero.com/file/35733287/W11Assignmentdocx/ What classes and

Question This question was created from W11Assignment.docx https://www..com/file/35733287/W11Assignmentdocx/ What classes and data within those classes are needed? ATTACHMENT PREVIEW Download attachment 35733287-332846.jpeg 6. [4 points] Consider the following scenario for designing software: A veterinary office is considering having practice management software written for them. They need to be able to track customers and their pets. create appointments for a pet, and create invoices that customers need to pay. Unpaid invoices should be able to be identified. a. [2 points] What classes and data within those classes are needed? Replace this text with your solution

Please help! I want to count the number of times

Get college assignment help at Smashing Essays Question Please help! I want to count the number of times bathroom appears in the comments.This is what I have so far:import jsonwith open(‘hotel_reviews.json’) as json_data:  hotel_data = json.load(json_data,) hotel_datareviews = hotel_data[‘Reviews’] # list of reviewsprint(“There are”,len(reviews),”reviews altogether.”)comment_lst = [] # will contain the review stringsfor review in reviews:  comment_lst.append(review[‘Content’])len(comment_lst) # contains 233 comments–one for each reviewer.counter = 0for review in comment_lst:  if comment_lst == ‘bathroom’:    counter = counter 1   print(f”The word ‘bathroom’ occurs {counter} times in the reviews for this hotel.”)I keep getting a value of 0.

This question was created from W11Assignment.docx https://www.coursehero.com/file/35733287/W11Assignmentdocx/ What is a

Question This question was created from W11Assignment.docx https://www..com/file/35733287/W11Assignmentdocx/ What is a method pre-condition? What is a method post-condition? ATTACHMENT PREVIEW Download attachment 35733287-332859.jpeg 3. [2 point] What is a method precondition? What is a method post-condition? Replace this text with your solution

What are lambda and how are they implemented in c ?

Question What are lambda and how are they implemented in c ? [tutorZude]

How can this code be completed? Provide a complete code

Question How can this code be completed? Provide a complete code with a screenshot of running code.[tutorZuck] src=”/qa/attachment/9112367/” alt=”Capture.PNG” /> ATTACHMENT PREVIEW Download attachment Capture.PNG

How do I print the full address on one single

Question How do I print the full address on one single line?print(“Address1:”, “Name1, Street_Number1, Street_Name1, City1, State1, Zip_Code1”)

Hello, the UML and Code is below, can someone help

Question Hello, the UML and Code is below, can someone help me figure out what I am doing wrong. I just keep getting so many errors that I don’t know what to do, anymore. Thanks for your helpDIRECTIONS:Using Visio or Word, create, a UML diagram for a class to represent an object that can be contained within your other class. Some examples are given in the Introduction. For your new class, add at least 2 private attributes. For example, a HardDrive class might have a type (SSD, HHD, etc.) and a capacity (number of gigabytes or terabytes). A Car engine might have a number of cylinders and the horsepower rating. A refrigerator might have a freezer that can be described by its location (bottom, top, side-by-side) and a capacity.For the methods, add two constructors (default and one that takes parameters), a setter and getter for each attribute and a function that prints out the attribute information. For example:This is a ___ cylinder engine with a horsepower of ___.If you are using Visio, you can connect your two UML shapes with relationship line indicating composition. Example:Here is a possible UML for my new Engine class:Engine-numberOfCylinders : int-horsepower : int Engine() Engine(cylinders : int, hp : int) setCylinders(cylinders : int) : void getCylinders() : int setHP(hp : int) : void getHP() : int printInfo() : void Step 2 – Coding New ClassOpen your project from last week and save it under a new name such as: CIS247_CP2_Team_1.Use the Add Class function to make a header file and .cpp file for your new class. Code the new class in the header and source files as we did before. We now have 5 separate files in our project.Step 3 – Update UML of Original ClassUpdate the UML of your original class to include an object of the contained class. I would add this line to my PropPlane private attributes:           -engine1 : EngineThen I would add a public setter and getter for the contained object. For example:            setEngine(eng1 : Engine) : void            getEngine() : EngineAdd a parameter for the object to the constructor that takes parameters; Example: PropPlane(manu : string, mod : string, engines : int, cost : double, year : int, used : bool, eng1 : Engine)Step 4 – Update code for Original ClassIn the header file of your first class, put a #include for the header file of your new class. For example:#include “Engine.h”  //I put this in my PropPlane.h fileNow in the header file, add the new private attribute and the prototypes for the new setter and getter; add the new parameter to the prototype of the constructor with parameters.In the .cpp file:update the default constructor to call the default constructor of your included object.update the constructor with parameters to handle the new parameter you added to the header file.Add code for the setter and getter for your new class.IMPORTANT: update your print function to print out information about the new class. The preferred way to is to use the print function you already wrote for your new class. For my PropPlane, I would add a line like this to my print function code:engine1.printInfo();Step 5 – Coding the Main FunctionIn your existing main function, update the Documentation header with information on this phase of the project.Recall that last week we created two objects: one with the default constructor and one with the constructor with parameters. We will update both of these to include the new class.For the first object, after the declaration you asked the user for values and then used the setters to enter the data. We will do the same for the new class. First declare an object of the new class. For my PropPlane, I would declare:Engine eng1;Then ask the user for the data and enter it with the setters. For my example:int num, hp;   //number of cylinders and horsepowercout <> num;eng1.setCylinders(num);cout <> hp;eng1.setHP(hp);//Now include this object inside of the first object. Let’s say I had created plane1:plane1.setEngine(eng1);Now I am ready to print out my entire plane:plane1.printInfo();  //This prints everything; you do not need to call the include object’s printerFor the second object, we hardcoded values into the constructor. Do the same for your new class but BEFORE you create the second object. Here is how I would do it for the PropPlane.Engine eng2(4, 125);   //4 cylinder engine with 125 horsepowerPropPlane plane2(“Cessna”, “414A”, 2, 195000, 1971, true, eng2);plane2.printInfo();Step 6 – Update SaveToFile FunctionLast week, we included a function that saves our objects to a file. We need to update this function to enter the data for the new included object. No changes need to be made to the code in main that calls the function with a pointer to the object. An example of what needs to be done is shown below, highlighted.//Code for function; this is written for the PropPlane class; change this for your own classvoid saveToFile(PropPlane* ptrPlane){           //open the file and prepare to append data           ofstream outToFile(“data.txt”, ios::app);           //If the file is open, write the data to the file. Customize this for your class attributes usingall the getters           if (outToFile.is_open())           {                       //notice the use of the arrow operator in this code; hypen and greater than sign                       outToFile <getManufacturer() << endl;                        // etc. for all the attributes in PropPlane; new code below; notice the two-stage                       //use of getters                       outToFile <getEngine().getCylnders() << endl;                       outToFile <getEngine().getHP() << endl;                                  outToFile.close();                                 //Tell user the data was written                       cout << "Data was written to the file." << endl;           }           else                       cout << "File was not opened successfully." << endl;}Step 7 – Debugging and Testing Your ProgramBuild your program and resolve any errors.Test your program a few times and make sure that everything is printed correctly with good formatting and no misspelled words. Make sure decimal numbers print nicely including money.When everything looks good, you are ready to submit.Step 8 – Submitting Your Week 4 CodeStart a Word document that is named with your Team name. In the document, Team name and the names of all team members who made a contribution this week even if it's just ideas and critique or being a tester.Paste a copy of the code in the Header files, class code files and main function code file. Paste in a screenshot of your test run(s). Submit this document.You must also submit the complete project folder, zipped.Here is an example of my output for my sample project:My Code:Source.cpp#include "Computer.h"#include #include #include #include using namespace std;int main()// declare object with default constructor{      Computer chromebook1;      chromebook1.setEdition(“First”);      chromebook1.setBrand(“Google”);      chromebook1.setSizeHardDrive(562);      chromebook1.setPrice(399.99);      chromebook1.setrefurbishedComputer(false);      cout << "Edition: " << chromebook1.getEdition() << endl;      cout << "Brand: " << chromebook1.getBrand() << endl;      cout << "Size of Hard Drive" << chromebook1.getSizeHardDrive() << endl;      cout << "Price: " << chromebook1.getPrice() << endl;      cout << "Discounted Price: " << chromebook1.calcDiscount() << endl;      system("pause");      return 0;}Screen.h#pragma once#include "Computer.h"class Screen{private:      int screenSize;      int resolution;      int pixels;      string type;      double price;      Computer computer1;public:      Screen();                                 // Default constructor      ~Screen();      Screen(int size, int res, int pix, string type, double prc);      int getSize();      void setSize(int size);      int getRes();      void setRes(int res);      int getPix();      void setPix(int pix);      string getType();      void setType(string type);      double getPrice();      void setPrice(double prc);      void printData();                        // This computer has a _____ size screen with ____ k resolution};Screen.cpp#include "Screen.h"Screen::Screen(){      screenSize = 0;      resolution = 0;      pixels = 0;      type = "unknown";      price = 0.0;      computer1;}Screen::~Screen(){}Screen::Screen(int size, int res, int pix, string type, double prc) :      screenSize(size), resolution(res), pixels(pix), type(type), price(prc) {}void Screen::setSize(int size) { screenSize = size; }void Screen::setRes(int res) { resolution = res; }void Screen::setPix(int pix) { pixels = pix; }void Screen::setType(string type) { type = type; }void Screen::setPrice(double prc) { price = prc; }int Screen::getSize() { return screenSize; }int Screen::getRes() { return resolution; }int Screen::getPix() { return pixels; }string Screen::getType() { return type; }double Screen::getPrc() { return price; }void Screen::printData();Computer.h#pragma once#include #include #include using namespace std;class Computer{private:      string edition;      string brand;      int sizeHardDrive;      double price;      bool refurbishedComputer;public:      Computer(string edt, string brd, int size, double prc, bool refurb);      Computer();      string getEdition();      string getBrand();      int getSizeHardDrive();      double getPrice();      void setEdition(string edt);      void setBrand(string brd);      void setSizeHardDrive(int size);      void setPrice(double prc);      void setrefurbishedComputer(bool refurb);      double calcDiscount();      void printInfo();      ~Computer();};Computer.cpp#include “Computer.h”Computer::Computer(){      edition = “unknown”;      brand = “unknown”;      sizeHardDrive = 0;      price = 0;      refurbishedComputer = true;}Computer::Computer(string edt, string brd, int size, double prc, bool refurb){      this->edition = edt;      this->brand = brd;      this->sizeHardDrive = size;      this->price = prc;      this->refurbishedComputer = refurb;}Computer::~Computer() {}string Computer::getEdition(){      return edition;}string Computer::getBrand(){      return brand;}int Computer::getSizeHardDrive(){      return sizeHardDrive;}double Computer::getPrice(){      return price;}void Computer::setEdition(string edt){      this->edition = edt;}void Computer::setBrand(string brd){      this->brand = brd;}void Computer::setSizeHardDrive(int size){      this->sizeHardDrive = size;}void Computer::setPrice(double prc){      this->price = prc;}void Computer::setrefurbishedComputer(bool refurb){      this->refurbishedComputer = refurb;}double Computer::calcDiscount(){      return (price -(price* .25));}void Computer::printInfo(){      cout << "Computer Edition: " << edition << endl;      cout << "Computer Brand: " << brand << endl;      cout << "Size of Hard Drive: " << sizeHardDrive << endl;      cout << "Computer Price " << price << endl;      cout << "Refurbished? (y/n) " << refurbishedComputer << endl;      cout << fixed << setprecision(2);}

Create a program that will calculate the weekly average tax

Question Create a program that will calculate the weekly average tax withholding for a customer given the following weekly income guidelines: Java would be ideal in creating this program.

Hello, trying to write program that uses a stack to

Question Hello, trying to write program that uses a stack to print prime factors of a positive integer in descending order. It has to run on Visual studios but every help I have gotten it only works on other IDE’s. The requirements are to make it work only using VS debug. not in command prompt or anything else. I have been having difficulty figuring out how to use stack in my current code. So how would I add stack to my code and it run in visual studios?#include #include #include using namespace std;vector factors(int n) {   vector result;   int a = 2;   while (a * a 1)      result.push_back(a);   return result;}int main(){   int x;   cout <> x;   vector result_factors = factors(x);   cout << "The result: ";   for (int i : result_factors)      cout << "i ";   cout << endl;   return 0;}

In python, how do I write the sum of each

Question In python, how do I write the sum of each column (with 4 rows as variables)?

Can someone do a screen share and show me how

Question Can someone do a screen share and show me how to execute this python source code please?

1) What are the roles of intelligence agencies in homeland security? Chose

1) What are the roles of intelligence agencies in homeland security? Chose an intelligence agency and provide a brief description.2) How should state and local governments coordinate their command and response structures when an attack occurs? Each questions should be a minimum of 200 words with citations references.Use peer reviewed material.

The post Conduct research on two U.S. intelligence agencies. Describe their mission and their appeared first on Smashing Essays.

 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"