A gaseous compound containing hydrogen and carbon is decomposed and found to contain 82.66 % carbon...

A gaseous compound containing hydrogen and carbon is decomposed and found to contain 82.66 % carbon and 17.34 % hydrogen by mass. The mass of 158 mL of the gas, measured at 556 mmHg and 25 ∘C, is found to be 0.275 g. What is the molecular formula of the compound? Express your answer as a chemical formula.

In: Chemistry

You have a borrowing capacity of 5 million USD, and 500 million JPY. You observe that...

You have a borrowing capacity of 5 million USD, and 500 million JPY. You observe that the bid/ask interest rate quote on USD is 1%/3%. The bid/ask interest rate quote on the JPY is 0.5%/2%. The spot exchange rate is 87.3 JPY/USD, and you expect that the USD is going to appreciate to 97.4 JPY/USD over the next 6 months (180 days). If you conduct a speculative trade on your expectations of exchange rate change, and your expectations are correct, what will be your total profit, as measured in USD?

In: Finance

What is the difference between a symporter and an antiporter?

What is the difference between a symporter and an antiporter?

In: Biology

Dorchester Company, on March 1, 2019 has a beginning Work in Process inventory of zero. All...

Dorchester Company, on March 1, 2019 has a beginning Work in Process inventory of zero. All materials are added into production at the beginning of its production. There is only one production WIP inventory. On March 1, Dorchester started into production 14,500 units. At the end of the month there were 10,000 units completed and transferred into the Finished Goods Inventory. The ending WIP was 50% complete with respect to conversion. For the month of March the following costs were incurred and recorded in the WIP:

            Direct Material                      $11,000

            Direct Labor 22,000

            Factory Overhead 25,000

Dorchester uses the weighted-average process costing method. Use this information to determine the cost per equivalent unit of conversion for the month of March: (Round & enter final answers to the nearest cent.)

In: Accounting

This is to be done in C++. Preferably using basic functions. Write a loop that reads...

This is to be done in C++. Preferably using basic functions.

Write a loop that reads one double each time around.

Define two variables to keep track of which is the smallest and which is the largest value you have seen so far.

Each time through the loop write out the value entered. If it's the smallest so far, write the smallest so far after the number. If it is the largest so far, write the largest so far after the number.

Let the user add a unit to each double entered; that is, enter values such as 10cm, 2.5in, 5ft, or 3.33m.

Accept the four units: cm, m, in, ft.

Assume conversion factors 1m == 100cm, 1in == 2.54cm, 1ft == 12in.

Read the unit indicator into a string.

You may consider 12 m (with a space between the number and the unit) equivalent to 12m (without a space).

Reject values without units or with "illegal" representations of units, such as y, yard, meter, km, and gallons.

Keep track of the sum of values entered (as well as the smallest and the largest) and the number of values entered. When the loop ends, print the smallest, the largest, the number of values, and the sum of values. note that to keep the sum, you have to decide on a unit to use for that sum; use meters.

Keep all the values entered (converted into meters) in a vector. At the end, write out those values.

Before writing out the values from the vector, sort them (that'll make them come out in increasing order).

In: Computer Science

Enzymes: what is a transition state complex?

Enzymes:

what is a transition state complex?

In: Chemistry

John’s Specialty Store uses a periodic inventory system. The following are some inventory transactions for the...

John’s Specialty Store uses a periodic inventory system. The following are some inventory transactions for the month of May 2018:

  1. John's purchased merchandise on account for $5,900. Freight charges of $750 were paid in cash.
  2. John’s returned some of the merchandise purchased in (1). The cost of the merchandise was $1,050 and John’s account was credited by the supplier.
  3. Merchandise costing $3,250 was sold for $6,100 in cash.


Required:
Prepare the necessary journal entries to record these transactions. (If no entry is required for a transaction/event, select "No journal entry required" in the first account field.)

1. Record the merchandise purchased on account for $5,900.

2. Record the payment of freight charges for $750.

3. Record the return of merchandise costing $1,050.

4. Record the sale of merchandise for $6,100 in cash.

5. Record the cost of goods sold for $3,250.

In: Accounting

What is the objective of this assignment? Briefly explain the Doppler Effect. Set both the listener...

  1. What is the objective of this assignment?
  2. Briefly explain the Doppler Effect.
  3. Set both the listener velocity vL and the source velocity vS to -2 m/s. Run the demo. What is the value of the frequency fL? Does it change or remain constant?
  4. Set the listener velocity vL to -2 m/s and the source velocity vSto -5 m/s. Run the demo. What is the value of the frequency fL? Does it change or remain constant? If there is a change, when does it take place? Explain.
  5. Set vL = 0. Set vS = -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, and 5 m/s

    For each of the above values of vS, record the value of fL. That should give you 11 data points, each point corresponding to one value of vS and its corresponding value of fL. Type the values of vS in column A and the values of fL in column B.
  6. On an x-y graph, plot the values of fL as a function of the values of vS(fLvalues go on the vertical axis and vS values go on the horizontal axis). Include this plot in your report.
  7. Describe the curve of fL versus vS, and write a short conclusion.

In: Physics

python- please finish the three programs, where one flips an image horizonally, then vertically, and one...

python- please finish the three programs, where one flips an image horizonally, then vertically, and one that rotates an image by 90 degrees. please don't use the functions .mirror() .flip() or .rotate() if possible. thanks

def horizontal(image):
"""Flip the specified image left to right and return the modified image"""


return img

def vertical(image):
"""Flip the specified image upside down and return the modified image"""


  
return image

def rotate_90(image):
"""Rotate the specified image 90 degrees to the right and return the modified image"""

  
return image

In: Computer Science

A cat rides a merry go round turning with uniform circular motion. At time t1=2.00s, the...

A cat rides a merry go round turning with uniform circular motion. At time t1=2.00s, the cat's velocity is gives by Vx = 3.00 m/s and Vy = 4.00 m/s. At t2 = 5.00 s,the cat's velocity is give by Vx = -3.00 m/s and Vy = -4.00 m/s. Take the coordinate system of the merry go round to have its origin at the center.

(a) What is the magnitude of the cat's centripetal acceleration?

(b) What is the magnitude of the cat's average acceleration during the time interval t2-t1?

(c) Assuming uniform circular motion before t1, what would have been the x-y coordinate location of the cat at t0= 0.00 s?

(d) What angle relative to the positive y-axis does the centripetal acceleration vector point at t= 3.00 s?

In: Physics

Think about the television programs and films you have seen recently that depicted business in some...

Think about the television programs and films you have seen recently that depicted business in some way. How were businesses and business people portrayed? Is there anything business could or should do to improve its media image? Some businesses try to stay out of the limelight. Why might that be? What do you think of that strategy? Do you believe that employees are more attracted and committed to ethical organizations? Are you? Why or why not?

In: Economics

A body moves along a straight line, its distance from the origin at any instant being...

A body moves along a straight line, its distance from the origin at any instant being given by the equation x = 8t − 3t^2, where x is in centimeters and t is in seconds.

(a) Find the average velocity of the body in the interval from t = 0 to t = 1 sec, and in the interval from t = 0 to t = 4 sec.

(b) Find the expression for the average velocity in the interval from t to t + Δt.

(c) What is the limiting value of this expression as Δt approaches zero?

(d) Find the time or times at which the body is at rest. (e) Find the expression for the acceleration at any time.Type or paste question here

In: Physics

Provide an example of a company that effectively uses social media for communicating to customers and...

Provide an example of a company that effectively uses social media for communicating to customers and explain why you think they are effective.

In: Economics

Create a new program, called stars.py, for (eventually) drawing a 500x500 pixel picture of the night...

Create a new program, called stars.py, for (eventually) drawing a 500x500 pixel picture of the night sky. The stars.py file will define several custom functions. You should write each function and then test it to verify it is working correctly. Make sure you match each function name precisely. Once complete submit it to D2L.

getStarPixelX()

  • 1 Input Parameter: a star string
  • Return: the x pixel coordinate of the star
  • Steps:
    1. Split star string into smaller strings
    2. grab the x coordinate and convert it into a float
    3. calculate the pixel coordinate with the formula: 250 + (250 * x)
    4. return the result

Below are some example function calls and return values. You should test them by having your program call the function and print out the return value. (You can erase your test code later.)

  • getStarPixelX("0.0,1.0,0.0,1,-1.5,1") → 250.0
  • getStarPixelX("0.5,-0.5,0.0,2,2.0,2") → 375.0

getStarPixelY()

  • 1 Input Parameter: a star string
  • Return: the y pixel coordinate of the star
  • Steps:
    1. Split star string into smaller strings
    2. grab the y coordinate and convert it into a float
    3. calculate the pixel coordinate with the formula: 250 - (250 * y)
    4. return the result

Below are some example function calls and return values. You should test them by having your program call the function and print out the return value. (You can erase your test code later.)

  • getStarPixelY("0.0,1.0,0.0,1,-1.5,1") → 0.0
  • getStarPixelY("0.5,-0.5,0.0,2,2.0,2") → 375.0

getStarSize()

  • 1 Input Parameter: a star string
  • Return: the pixel size of the star
  • Hint: The formula to convert a star's magnitude to its size is: 10.0/(magnitude + 2)

Below are some example function calls and return values. You should test them by having your program call the function and print out the return value. (You can erase your test code later.)

  • getStarSize("0.0,1.0,0.0,1,-1.5,1") → 20.0
  • getStarSize("0.5,-0.5,0.0,2,2.0,2") → 2.5

getStarName()

  • 1 Input Parameter: a star string
  • Return: the name of the star if it has one, else the empty string ("")
  • Hint: If a star string has 7 values, then the last value is the star's name

Below are some example function calls and return values. You should test them by having your program call the function and print out the return value. (You can erase your test code later.)

  • getStarName("0.0,1.0,0.0,1,-1.5,1,BOB") → "BOB"
  • getStarName("0.5,-0.5,0.0,2,2.0,2") → ""

In: Computer Science

Sources: linkedlist.cpp #include <iostream> #include "linkedlist.h" using namespace std; LinkedList* NewLinkedList() { LinkedList* llp = new...

Sources: linkedlist.cpp

#include <iostream>
#include "linkedlist.h"
using namespace std;

LinkedList* NewLinkedList()
{
LinkedList* llp = new LinkedList;

llp->head = new node;

llp->head->next = 0;

return llp;
}

void InsertFirst(LinkedList* llp, int val)
{
node* p = new node;
p->data = val;
p->next = llp->head->next;
llp->head->next = p;
}

void Print(LinkedList* llp)
{
for (node* p = llp->head->next; p != 0; p = p->next) {
cout << p->data << " ";
}
}

void InsertLast(LinkedList* llp, int val)
{

node* p;

for (p = llp->head; p->next != 0; p = p->next)
{
}

// p now points to the last node in the list

// For you to do: Create a new node, store val in that node, and link the new node after p.


}

Sources: hw1.cpp

#include <iostream>
#include "linkedlist.h"
using namespace std;

int main()
{
LinkedList* llp = NewLinkedList();

InsertFirst(llp, 10);
InsertFirst(llp, 20);
InsertFirst(llp, 30);

cout << endl;
Print(llp);
cout << endl;

InsertLast(llp, 50);
InsertLast(llp, 60);
InsertLast(llp, 70);

cout << endl;
Print(llp);
cout << endl;

return 0;
}

Header: linkedlist.h

#ifndef LINKEDLIST_H_INCLUDED
#define LINKEDLIST_H_INCLUDED

struct node {
int data;
node* next;
};

struct LinkedList {
node* head;
};

LinkedList* NewLinkedList();
void InsertFirst(LinkedList* llp, int val);
void Print(LinkedList* llp);
void InsertLast(LinkedList* llp, int val);

#endif // LINKEDLIST_H_INCLUDED

-----------------------------

Your assignment is to complete the function InsertLast in linkedlist.cpp, compile, and run. The correct output should be:

30 20 10

30 20 10 50 60 70

In: Computer Science