A patient is supplementing their potassium intake by taking 75 mL of a 3.5% (w/v) potassium bicarbonate solution daily. How many milliequivalents of potassium ion is the patient consuming daily?
KHCO3 MW 100
K+ MW 39
HCO3- MW 61
In: Nursing
Brief the following case:
Joseph Radtke, S.c., Plaintiff-appellant, v. United States of America, Defendant-appellee, 895 F.2d 1196 (7th Cir. 1990)
https://law.justia.com/cases/federal/appellate-courts/F2/895/1196/46650/
In: Accounting
q= K^1/3 L^1/3 w=$2, V=$16, k=27, p=$32
a)what's the firm level of labor and profit?
b)what'd you suggest for adjustment of short-run and future amount of K and L?
In: Economics
Stateless packet filtering is performed on a per-packet basis.
A typical enterprise firewall has at minimum the following interfaces?
Which Vagrant providers are not shipped with the software?
In: Computer Science
A singly charged 7Li ion has a mass of 1.16 10-26 kg. It is accelerated through a potential difference of 495 V and subsequently enters a uniform magnetic field of magnitude 0.366 T perpendicular to the ion's velocity. Find the radius of its path.
In: Physics
Let A =
| 2 | 0 | 1 |
| 0 | 2 | 0 |
| 1 | 0 | 2 |
and eigenvalue λ1 = 3 and associated eigenvector v(1) = (1, 0, 1)t . Find the second dominant eigenvalue λ2 (or the approximation to λ2) by the Wielandt Dflation method
In: Advanced Math
A rocket of total mass mtot = 15000 kg is initially travelling through space at 500 m/s. If it still has 11500 kg of fuel remaining, and the exhaust speed of the rocket is v(exhaust) = 3200 m/s, what is the maximum speed of the rocket?
In: Physics
A solid metal ball is placed in an external electric field of magnitude 300 N/C. The electric field at the center of the ball is
a. zero.
b. 300 N/C.
c. 300 V/m.
d. 150 N/C.
(please show work)
In: Physics
A. Summarize the court's holding in Patrick v. Allen in Ch. 39 of your text. 355 F. Supp. 2d 704 (2005)
B. Summarize the Court's holding in In Re Caremark,
Intl. in Ch. 39 of your text. 698 A. 2d 959 (1996)
In: Operations Management
(LANGUAGE: C++)
1) For this lab, you will fill in what’s missing to make the attached file cust_leads.cpp work
2) The Lead class is for a very limited amount of information about a potential customer
· Include string fields for name and email
· A constructor that takes values for these two fields
· Include a getter for the email field
· Overload the == operator
· 2 Lead’s are equal if the names are the same (the emails don’t need to match)
· the first few lines of main() test this operator, and then you use it when adding a new lead and getting contact info about a lead
3) The Command class represents an option for the main menu. It includes:
· A char to pick this command
· A string to describe what the command does
· A constructor that takes these two parameters
· A “friend” line to allow an overloaded << operator to output a Command
· Write the overloaded << operator as a separate, global function, just as in the textbook and notes
4) The add function to add a new lead. It takes a vector<Lead> & parameter
· Read in name and email values to create a new Lead
· Use the == operator to compare this new lead against what is already in the vector. You can write the search code yourself or use the find() function of the <algorithm> library
· If you want to use find() (and it is not required), note that it takes 3 parameters: a begin iterator, an end iterator and a target
(1) The iterators are what you would get from vector’s begin() and end() functions
(2) The target must be of type Lead, so you need to create a “dummy” Lead object with the name to search and use this object as the 3rd parameter – the name is just a string and will not work
(3) Also note that find() returns an iterator:
(a) It matches the end() iterator if the target was not found
(b) Otherwise, you can dereference the iterator to get the full Lead object that was found
· If the name does not exist yet in the vector, add the new lead to the vector
· If the name already exists in the parameter, output the error message indicated below
5) The get_contact function to look up a lead. It takes a vector<Lead> & parameter
· Read in the name to lookup
· If the name exists in the vector parameter, display the contact info
· If not, display the error message indicated below:
OUTPUT:
Test of == operator for Lead's
correct: Jack != Jill
correct: both have the same name
Program to manage leads for possible customers
Enter option from below:
q: quit program
a: add new lead
g: get contact info
a
Enter name: Mac
Enter email: [email protected]
Enter option from below:
q: quit program
a: add new lead
g: get contact info
a
Enter name: Mac
Mac is already on the list
Enter option from below:
q: quit program
a: add new lead
g: get contact info
a
Enter name: Nina
Enter email: [email protected]
Enter option from below:
q: quit program
a: add new lead
g: get contact info
g
Enter name to lookup: Nina
Email contact: [email protected]
Enter option from below:
q: quit program
a: add new lead
g: get contact info
g
Enter name to lookup: Zen
Person not found
Enter option from below:
q: quit program
a: add new lead
g: get contact info
q
Exiting program
GIVEN CODE
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
// Put classes and functions here
int main() {
const char QUIT = 'q';
const char ADD = 'a';
const char GET_CONTACT = 'g';
char cmd = ' ';
cout << "Test of == operator for Lead's" << endl;
Lead lead1("Jack", "[email protected]"),
lead2("Jill", "[email protected]"),
lead3("Jill", "[email protected]");
if (lead1 == lead2)
cout << "error: should not match Jack and Jill" << endl;
else cout << "correct: Jack != Jill" << endl;
if (lead2 == lead3)
cout << "correct: both have the same name" << endl;
else cout << "error: should match leads with same name, even if email is different" << endl;
cout << "Program to manage leads for possible customers" << endl << endl;
vector<Command> cmds;
cmds.push_back(Command(QUIT, "quit program"));
cmds.push_back(Command(ADD, "add new lead"));
cmds.push_back(Command(GET_CONTACT, "get contact info"));
vector<Lead> leads;
do {
cout << "Enter option from below:" << endl;
for (unsigned int i = 0; i < cmds.size(); i++)
cout << cmds[i];
cin >> cmd;
cmd = tolower(cmd);
switch(cmd) {
case QUIT:
cout << "Exiting program" << endl;
break;
case ADD:
add(leads);
break;
case GET_CONTACT:
get_contact(leads);
break;
default:
cerr << "Unrecognized command: " << cmd << endl;
break;
}
} while (cmd != QUIT);
}
Make sure to add comments for each class/function. Thank you.
In: Computer Science