Explain what partial pressure is. List the partial pressures of O2 and CO2 in alveolar air and explain what determines their values (discuss each gas separately). List the partial pressures of O2 and CO2 in systemic arterial blood and explain what determines their values. List the partial pressures of O2 and CO2 in systemic venous blood and explain what determines their values.
In: Anatomy and Physiology
First, create a project that creates an ordered linked list class (use the code provided, make sure to update the insert function so that it maintains an ordered list).
To this class, add a function that prints the list in REVERSE order. Making use of recursion is the easiest and best way to do this, but certainly not the only way.
Submit a .zip of your entire project.
In: Computer Science
public java.util.ArrayList<T> getReverseArrayList()
Returns an ArrayList with the element of the linked list in reverse order. This method must be implemented using recursion.
public BasicLinkedList<T> getReverseList()
Returns a new list with the elements of the current list in reverse order. You can assume sharing of data of each node is fine. This method must be implemented using recursion.
JAVA
In: Computer Science
Go to (www.irs.gov) and search for IRS e-file security. Required:
(1) Look at the facts (list two) that the IRS cites about why e-filing is secure.
(2) What (list two) about these practices makes the customer’s information secure?
(3) List two potential improvements that you feel could be made to e-filing security.
In: Accounting
In: Computer Science
In this lab, you will read and write to a file, as well as sorting the information. Copy and paste the following into a file named "inputs.txt":
7 199922007 C.J. Cregg Political_Science 200822013 Olivia Dunham Criminal_Justice 199822007 Josh Lyman Law 199922006 Toby Ziegler Communications 200922015 Leslie Knope Public_and_Environmental_Affairs 199922004 Sam Seaborn Law 200722013 Walter Bishop General_Sciences
The input file provides details for a student database in the following format:
Number_of_students ID_Number Student_First_Name Student_Last_Name Major …… ID_Number Student_First_Name Student_Last_Name Major
Your program will read specific information from the file and continue reading the contents of the body from the file until the EOF (end of file) character. You will write the following information to an output file:
Each section of information should be labeled in the output file in all capital letters. A struct should be used to store and manipulate the file information between reading and writing the file. You must include the follow three functions with the exact prototypes:
student* create_student_db(int); void get_student_db_info(student *, int, fstream &); void delete_student_db_info(student *);
Your main function needs to check to make sure the file you open exists before moving forward. If the file doesn’t exist, then you need to provide an error message and prompt the user to enter a file name that does exist.
fstream documentation: http://www.cplusplus.com/reference/fstream/fstream/ (Links to an external site.)
Implementation
Now, implement the driver.cpp, student_db.cpp, and student_db.h files. Create a Makefile to manage the compilation of all these files. You can adapt the Makefile that was posted on the Lectures page in Canvas.
A Note on Sorting
There are many different algorithms that can be used to sort data. For the purposes of this lab, one of the simplest algorithms to implement is a version of the bubble sort algorithm. Bubble sort works by repeatedly comparing two elements in a collection of data, and swapping them. It continues through all of the data until no more swaps are needed, indicating that the data is sorted.
Bubble Sort reference: https://www.geeksforgeeks.org/bubble-sort/ (Links to an external site.)
TAR Files
When you begin to have projects with multiple files, it becomes useful to have a way to group them together for uploading, emailing, or archiving. TAR files (also known as tarballs) are classic way to do this on Linux machines, and are what you will use for programming assignment submissions.
To create a tar file, use the tar command. There are multiple options that can be added, with examples and explanations at the reference material below. The ones included in the example below are -c, -v, and -f.
tar –cvf ...
The -c option is used to create the tar file. The -f option is used to specify which tar file to use, followed by the filename (ending in .tar) that you specify. The -v option stands for "verbose", and prints the files being added to the tar file to the terminal as the tar command executes.
After the command, options, and chosen .tar filename, you must include all of the files that you want to be added, separated by a space.
To extract the files from a tarball, you can use the following command, where the -x option stands for "extract":
tar –xvf
Prove that you can make a tarball with multiple files, and then extract the files from it. Make sure that when creating the tarball you specify the .tar filename, and to extract the files into a different directory than the original.
In: Computer Science
I am trying to add two linked-list based integers, but the program keeps giving me the incorrect result. I am trying to add (List 1: 43135) + (List 2: 172). I have pasted the code below
#include <iostream>
using namespace std;
//Linked list node
class Node
{
public:
int num;
Node* next;
};
//Function to create a new node with given numbers
Node *new_Node(int num)
{
Node *newNode = new Node();
newNode->num = num;
newNode->next = NULL;
return newNode;
}
//Function to insert a node at the beginning of the Linked
List
void push(Node** head, int newNum)
{
Node* newNode = new_Node(newNum);
newNode->next = (*head);
(*head) = newNode;
}
// Function to add two linked lists and return the head node of
the list
Node* addTwoLists (Node* first, Node* second)
{
Node* result = NULL;
Node *temp, *prev = NULL;
int carry = 0, sum;
//the while loop will perform various calculations on the
linked-list
// the loop will execute while both lists exist
while (first != NULL || second != NULL)
{
sum = carry + (first?
first->num: 0) +(second? second->num: 0);
carry = (sum >= 10)? 1 : 0;
sum = sum % 10;
temp = new_Node(sum);
if(result == NULL)
result =
temp;
else
prev->next =
temp;
prev = temp;
if (first) first =
first->next;
if (second) second =
second->next;
}
if (carry > 0)
temp->next = new_Node(carry);
return result;
} //end of while loop
//Function to print the linked list
void printList(Node *node)
{
while(node != NULL)
{
cout << node->num <<
" ";
node = node->next;
}
cout<<endl;
}
//main function
int main()
{
Node* result = NULL;
Node* first = NULL;
Node* second = NULL;
// create first list
push(&first, 5);
push(&first, 3);
push(&first, 1);
push(&first, 3);
push(&first, 4);
cout <<"First List is ";
printList(first);
// create second list
push(&second, 2);
push(&second, 7);
push(&second, 1);
cout<<"Second List is ";
printList(second);
//results of the two lists after it has been
added
result = addTwoLists(first, second);
cout<<"The sum of the two linked-lists is
";
printList(result);
return 0;
}
In: Computer Science
According to the website www.collegedrinkingprevention.gov, “About 25 percent of college students report academic consequences of their drinking including missing class, falling behind, doing poorly on exams or papers, and receiving lower grades overall.” A statistics student is curious about drinking habits of students at his college. He wants to estimate the mean number of alcoholic drinks consumed each week by students at his college. He plans to use a 99% confidence interval. He surveys a random sample of 55 students. The sample mean is 3.69 alcoholic drinks per week. The sample standard deviation is 3.56 drinks.
Construct the 99% confidence interval to estimate the average number of alcoholic drinks consumed each week by students at this college.
( , )
Your answer should be rounded to 2 decimal places.
Question 5
Estimating Mean SAT Math Score
The SAT is the most widely used college admission exam. (Most community colleges do not require students to take this exam.) The mean SAT math score varies by state and by year, so the value of µ depends on the state and the year. But let’s assume that the shape and spread of the distribution of individual SAT math scores in each state is the same each year. More specifically, assume that individual SAT math scores consistently have a normal distribution with a standard deviation of 100. An educational researcher wants to estimate the mean SAT math score (μ) for his state this year. The researcher chooses a random sample of 695 exams in his state. The sample mean for the test is 487.
Find the 90% confidence interval to estimate the mean SAT math score in this state for this year.
(Note: The critical z-value to use, zc, is: 1.645.)
( , )
Your answer should be rounded to 3 decimal places.
Question 6
Is smoking during pregnancy associated with premature births? To investigate this question, researchers selected a random sample of 128 pregnant women who were smokers. The average pregnancy length for this sample of smokers was 257 days. From a large body of research, it is known that length of human pregnancy has a standard deviation of 16 days. The researchers assume that smoking does not affect the variability in pregnancy length.
Find the 95% confidence interval to estimate the length of pregnancy for women who smoke.
(Note: The critical z-value to use, zc, is: 1.960)
( , )
Your answer should be rounded to 3 decimal places.
In: Statistics and Probability
Study Guide Chapter 3
What is average mass? What is average atomic mass? What is the atomic mass?
What is the mole? If you have a mole of cheese, how many pieces of cheese do you have?
What is the Avogdro’s number? What is this number used for?
How do we use the mole in chemical reactions?
Students must be able to calculate the mass of given numbers of atoms of an element. For example, calculate the mass of 10 atoms of carbon. See example 3.2.
Students must be able to calculate the moles of atoms. See example 3.3.
Students must be able to calculate number of atoms. See example 3.3.
Students must be able to calculate number of moles and mass.
What is molar mass? Students must be able to calculate the molar masses for a given compound. For example, calculate the molar mass of C6H12O6. See examples 3.6 and 3.7 and 3.8.
Discuss, in as many details as you can, the conceptual problem solving approach.
What is percent composition? What is the percent mass composition of C6H12O6. See example 3.9.
What is the formula of a compound? How can we determine the formula of a compound? How do we determine the empirical formula of a compound? What type of data do we need to have to determine the empirical formula for a compound? What type of data do we need to have to determine the molecular formula of a compound? How do we determine the molecular formula from the empirical formula?
A compound that contains only C, H and O is 48.64% C and 8.16% H. What is the empirical formula for this compound? See examples 3. 10 – 3.12.
What is a chemical reaction? What is a chemical equation? Describe a chemical equation in detail. Students must learn how to do read a chemical equation.
Why are we required to balance chemical equations? How do we balance chemical equations? See examples 3.13 – 3.14.
What is stoichiometric calculations? When do we perform such calculations? See examples 3.15 – 3.16.
What is a limiting reagent? How do we calculate the limiting reagent? What type of data do we need to calculate the limiting reagent?
What is theoretical yield? What is actual (experimental) yield? What is percent yield? What does percent yield mean?
In: Chemistry
13. Another supply and demand puzzle
The market price of cheeseburgers in a university town increased recently, and the students in an economics class are debating the cause of the price Increase. Some students suggest that the price increased because the price of beef, an important ingredient for making cheeseburgers, has increased. Other students attribute the increase in the price of cheeseburgers to a recent increase in the price of calzones at local pizza parlours.
Everyone agrees that the increase in the price of calzones was caused by a recent increase In the price of pizza dough, which is not generally used in making cheeseburgers. Assume that burger joints and pizza parlours are entirely separate entities-that is, there aren't places that serve both cheeseburgers and calzones.
The first group of students thinks the increase in the price of cheeseburgers is due to the fact that the price of beef, an important ingredient for making cheeseburgers, has increased.
On the following graph, adjust the supply and demand curves to illustrate the first group's explanation for the increase in the price of cheeseburgers.
Note: Select and drag one or both of the curves to the desired position. Curves will snap into position, so if you try to move a curve and it snaps back to its original position, just drag it a little farther.
The second group of students attributes the increase in the price of cheeseburgers to the increase in the price of calzones at local pizza parlours. On the following graph, adjust the supply and demand curves to illustrate the second group's explanation for the increase in the price of cheeseburgers.
Note: Select and drag one or both of the curves to the desired position. Curves will snap into position, so if you try to move a curve and it snaps back to its original position, just drag it a little farther.
Suppose that both of the events you have just analyzed are partly responsible for the increase in the price of cheeseburgers. Based on your analysis of the explanations offered by the two groups of students, how would you figure out which of the possible causes was the dominant cause of the
increase in the price of cheeseburgers?
Whichever change occurred first must have been the primary cause of the change in the price of cheeseburgers.
If the equilibrium quantity of cheeseburgers decreases, then the demand shift in the market for cheeseburgers must have been larger than the supply shift.
If the equilibrium quantity of cheeseburgers decreases, then the supply shift in the market for cheeseburgers must have been larger than the demand shift.
If the price increase was large, then the supply shift in the market for cheeseburgers must have been larger than the demand shift.
In: Economics