Loyola University of Chicago


Part 1: Queue Class

For this part, you must create a Queue Class. A queue is similar to a stack (what the FILO class that we went over in class). A queue is FIFO (first in first out). You can think of a queue as a checkout line in a store. When you add to the queue, you add to the end of it. When you remove from the queue, you remove from the front, and everyone moves up one spot.

The properties that your queue class must have is the following:

  • int size – how many elements are currently in the queue
  • int max_size – how many total elements can the queue hold
  • T* queue – the array representing our queue
  • void enqueue(T&) – place T at the end of the queue
  • T& dequeue() – return the element at the front of the queue, remove it from queue, and move all elements up one spot. (can return T instead of T& if you choose to do that)
  • T& peek() – return the element at the front of the queue, but don’t update the rest of the queue.
  • bool isEmpty() – returns true if queue is empty. False otherwise.
  • int size() – return how many elements are in the queue.
  • Operator<< – output the entire queue in the following format
  • 1) element1, 2) element2, etc.
  • Operator<< can be replaced with a print function that prints out the contents of the queue to cout, or a to_string function that returns a string with the contents of the queue.

Part 2: main

In you main, create 2 queues, each one containing different types. Add several elements to each one. Then print each queue to terminal. Then remove some elements from each list, printing out each element you remove. Then print each queue again. Lastly, print out the first element in queue.


You will be creating a program to simulate depositing and withdrawing money into a bank account. This homework will not require any objects.

  • The account balance will be stored in a global variable.
  • The function account transaction (double amount) will print out the balance, change the account balance by the amount (can be positive or negative), then print out the new balance. This function must be able to handle simultaneous transactions and always give the correct result.

The main function will do the following:

  • Set the account balance to the beginning balance (You choose the amount)
  • Print out the beginning balance
  • Add two amounts to the account balance and remove two amounts from the balance (You choose the amounts). The transactions must happen simultaneously as threads
  • Print the final balance after all transactions have finished and joined back to main.


Your program must run when the following command is typed in.

For generics, use this command: g++ -std=c++17 abc1234_generics_main.cpp

For threads, use this command: g++ -std=c++17 abc1234_threads_main.cpp -pthread

Place this order or similar order and get an amazing discount. USE Discount code “GET20” for 20% discount

Posted in Uncategorized

Loyola University of Chicago

  1. This paper will be appraised on the quality of the information, inclusion of at least one evidence-based scholarly source, use of citations, use of Standard English grammar, and organization based on the required components (see the paper headings and content details below).
  2. Scholarly sources: Only scholarly sources are acceptable for citation and reference in this course. These include peer reviewed publications, government reports, or sources written by a professional or scholar in the field. Your textbook and lesson are not considered to be an outside scholarly source. For the discussions and reflection posts, reputable internet sources such as websites by government agencies (URL ends in .gov) and respected organizations (often ends in .org) can be counted as scholarly sources. The best outside scholarly source to use is a peer-reviewed nursing journal. You are encouraged to use the Chamberlain library and search one of the available data bases for a peer-reviewed journal article. The following sources should not be used: Wikipedia, Wikis, or blogs. These web sites are not considered scholarly as anyone can add to these. Please be aware that .com websites can vary in scholarship and quality. For example, the American Heart Association is a .com site with scholarship and quality. It is the responsibility of the student to determine the scholarship and quality of any .com site. Ask your instructor before using any site if you are unsure. Points will be deducted from the rubric if the site does not demonstrate scholarship or quality. Current outside scholarly sources must be published with the last 5 years. Instructor permission must be obtained BEFORE the assignment is due if using a source that is older than 5 years.
  3. The length of the paper is to be no less than 1,500 words, excluding title page and reference list.
  4. Create this assignment using Microsoft (MS) Word. You can tell that the document is saved as a MS Word document because it will end in “.docx.”
  5. APA format (current edition) is required in this assignment, explicitly for in-text citations and the reference list. Use 12-point Times New Roman font with 1 inch margins and double spacing. See the APA manual for details regarding proper citation.
  6. Organize the headings and content of your paper using the outline below:
    • Select a body system relevant to the lesson from the previous week for the topic of this paper. For example, if you are writing this assignment for Week 2, then select the HEENT, Respiratory, or Integumentary system as the focus for the paper (not all three systems). NOTE: If you are writing this assignment for Week 1, select the Health History as the topic of the paper.
    • Discuss the physiology (structure and function) of the body system including details about the major organ systems (if applicable). NOTE: If you are writing the assignment for Week 1, provide an overview of interviewing techniques.
    • Construct relevant health history questions (subjective data) pertaining to the body system. NOTE: If writing the assignment for Week 1, construct relevant health history questions for all body systems as included on the review of systems (ROS).
    • Provide an overview of the objective data and expected normal physical examination findings for this body system. NOTE: If writing this assignment for Week 1, provide the expected normal subjective findings for each body systems on the ROS.
    • Explain special physical assessment examination techniques or procedures specific to assessing this body system. NOTE: If writing the assignment for Week 1, explain advanced interview techniques.
    • Analyze and discuss how you might adapt your physical assessment skills or interviewing techniques to accommodate each of the following specific populations:
      • Infant/pediatric
      • Pregnancy
      • Geriatric
    • Identify one major disease or disease process that may significantly impact this body system. NOTE: If writing the assignment for Week 1, identify one disease process or condition that may significantly hinder conducting a Health History interview.
    • Synthesis and discuss the expected abnormal physical examination findings that may be associated with this disease or disease process.
    • Summarize the key points.

Place this order or similar order and get an amazing discount. USE Discount code “GET20” for 20% discount

Posted in Uncategorized