While we are still far from “Transcendence” -style artificial intelligence — like uploading human consciousness to software programs, at the rate we are going in technological innovations and in terms of the convergence between our noted three worlds ( the physical world, the virtual or digital world, and our very own intellectual world “inside our brain”), we could someday digitize the human brain, and reproduce cognitive intelligence and emotions, machines and computers that can totally replace human insight.
What are the pros and cons of this technological evolution and what kind of implications would this have on an individual and our society as whole?
In: Psychology
Verify Login Page that either gives error when not meeting the requirement or directing it to "blogs.php" when it's a successful log in..
Hi, so this is actually my html code for the log in and sign up page and I just needed help creating a verify log in/ sign up page with exception handling. Username has to be at least 6 character long. Password has to be 6 characters long and end with a number.
Blogs.com
"
"index.html"
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=utf-8" />
<title>Blogs.com</title>
</head>
<body>
<h2>Sign in </h2>
<p> Enter your username and password to sign
in!</p>
<form method="POST" action ="blogs.php">
<p> User Name <input type ="text"
name="username"/></p>
<p> Password <input type="text" name ="passwordname"
/></p>
<input type="submit" value= "Sign in"/></p>
</form>
<p> Sign up if you're a first time user!</p>
<form method="POST" action ="UserRegistration.php">
<input type="submit" value= "Sign up!"/></p>
<br /><br />
<script>
var date =new Date();
document.write("Today " ,date);
</br>
</script>
</body>
</html>
"UserRegistration"
<?php
session_start();
$_SESSION = array();
session_destroy();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html
xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>User Registration</title>
<meta
http-equiv="content-type" content="text/html; charset=iso-8859-1"
/>
</head>
<body>
<h1>User
Registration</h1>
<h2>Register / Log In</h2>
<p>New
user's, please complete the top form to register as a new user.
Returning user's, please complete
the second form to log in.</p>
<hr
/>
<h3>User
Registration</h3>
<form
method="post" action="Register.php?<?php echo SID;
?>">
<p>Enter your Name:
First <input type="text"
name="first" />
Last <input type="text"
name="last" />
</p>
<p>Enter your e-mail address:
<input type="text"
name="email" />
</p>
<p>Enter your password:
<input type="password"
name="password" />
</p>
<p>Confirm your password:
<input type="password"
name="password2" />
</p>
<p>
<em>(Passwords are
case-sensitive and must be at least 6 characters
long)</em>
</p>
<input type="reset" name="reset" value="Reset
Registration Form" />
<input type="submit" name="register"
value="Register" />
</form>
<hr
/>
<?php
$nag_counter = 0;
if(isset($_COOKIE['userVisit']))
$UserVisit = "<p>Your
visit number is $nag_counter was on " .
$_COOKIE['userVisit'];
else
$UserVisit = "<p>This
is your first visit!</p>\n";
++$nag_counter;
setcookie("userVisit", date("F j, Y, g:i a"),
time()+60*60*24*365);
?>
<?php
echo $UserVisit;
?>
</body>
</html>
"
In: Computer Science
1. Consider Consumers A, B, and C with the following preferences over two goods.
UA (x1,x2) = x12x23
UB (x1,x2) = 2x1+3x2
UC (x1,x2) = min{2x1,3x2)
The prices given are p1, p2 and income for each consumer is m.
Solve for the Engel curves for each consumer.
please be very detailed, thank you!
In: Economics
Consider two solutions, the first being 50.0 mL of 1.00 M CuSO4 and the second 50.0 mL of 2.00 M KOH . When the two solutions are mixed in a constant-pressure calorimeter, a precipitate forms and the temperature of the mixture rises from 21.5 ∘C to 27.7 ∘C .
From the calorimetric data, calculate ΔH for the reaction that occurs on mixing. Assume that the calorimeter absorbs only a negligible quantity of heat, that the total volume of the solution is 100.0 mL , and that the specific heat and density of the solution after mixing are the same as that of pure water.
In: Chemistry
How did the 2008 financial crisis affect the united states employment rate ( 500 Words )
In: Economics
1. Add the function int getNodeLevel (T value) to the Binary Search Tree class provided below. The function should return the level of the node value in the Binary Search Tree.
Hint:
Set currentNode to root
Initialize level = 0
while currentNode != Null
if currentNode element = value return level
else move to either the right child or the left child of the currentNode, update the loop, and repeat the loop
Function should return -1 if value is not in the tree
#include <iostream>
#include <vector>
using namespace std;
//****** The Node class for the Binary Search Tree ******
template<typename T>
class Node
{
public:
Node();
Node(T e, Node<T>* r, Node<T>* l);
T element; // holds the node element
Node<T>* right;
Node<T>* left;
};
//============ implementation of the constructors of the Node
template<typename T>
Node<T>::Node() { right = left = NULL; }
template<typename T>
Node<T>::Node(T e, Node<T>* r, Node<T>* l) { element = e; right = r; left = l; }
//=============== Binart Searct Tree (BST) class ===========
template<typename T>
class BTree
{
public:
BTree() { root = NULL; }
BTree(Node<T>* rt) { root = rt; }
void BSTInsert(T value);
void BSTRemove(T value);
Node<T>* & getRoot() { return root; } // returns the pointer to the root
Node<T>* BSTsearch(T value);
private:
Node<T>* root; // a pointer to the root of the tree
};
template<typename T>
Node<T>* BTree<T>::BSTsearch(T value)
{
// set cur to the tree root, traverse down the tree to find the element.
// Do not use the root, if you move the root the tree will be lost.
Node<T>* cur = root;
while (cur != NULL)
{
if (value == cur->element)
return cur;
else if (value < cur->element)
cur = cur->left;
else
cur = cur->right;
}
return NULL;
}
// traverse down the tree and inserts at the bottom of the tree as a new leaf
template<typename T>
void BTree<T>::BSTInsert(T value)
{
Node<T>* newNode = new Node<T>(value, NULL, NULL); // dynamically create a node with the given value
if (root == NULL) //Empty tree, fisrt node.
root = newNode;
else
{
Node<T>* r = root;
while (r != NULL)
{
if (value < r->element)
{
if (r->left == NULL)
{
r->left = newNode; //insert the node
r = NULL; // end the loop.
}
else
r = r->left; // keep going to the left child
}
else
{
if (r->right == NULL)
{
r->right = newNode;
r = NULL;
}
else
r = r->right;
}
}
}
}
//Three cases to consider when removing an element from a BST
template<typename T>
void BTree<T>::BSTRemove(T value)
{
Node<T>* parent = NULL; // Need to track the parent of the node to be deleted
Node<T>* current = root; // current will point to the node to be deleted
//find the node to be removed
while (current != NULL && current->element != value)
{
if (value < current->element)
{
parent = current; current = current->left;
}
else
{
parent = current; current = current->right;
}
}
if (current != NULL) // The node to be deleted is found
{
//Case A : the node is a leaf node
if (current->left == NULL && current->right == NULL)
{
if (parent->right == current)
parent->right = NULL;
else
parent->left = NULL;
delete current;
}
//Case B: the node has two children
// Must find the smalles element in the right subtree of the node, which is
//found by going to the right child of the node then all the way to the left.
else if (current->left != NULL && current->right != NULL)
{
Node<T>* succ = current->right; // go to the right child of the node to be removed
parent = current; // initialize parent node
if (succ->left == NULL) // right child of the node has no left child
{
parent->right = succ->right;
current->element = succ->element;
delete succ;
}
else //otherwise keep going left
{
while (succ->left != NULL) // then find the smallest element in the left subtree
{
parent = succ;
succ = succ->left;
}
current->element = succ->element; //Replace the node to be deleted by the succ node
parent->left = NULL; // skip the succ node
delete succ;
}
}
else // Case C: Node has one child
{
if (root->element == value) //if the node is the root node treat differently
{
cout << "here\n";
if (root->right != NULL)
root = root->right;
else
root = root->left;
}
else // a non root node with one child to be removed
{
if (current->left != NULL)
parent->left = current->left;
else
parent->right = current->right;
}
delete current;
}
}
}
int main()
{
BTree<int> bst;
bst.BSTInsert(29);
bst.BSTInsert(50);
bst.BSTInsert(78);
bst.BSTInsert(39);
bst.BSTInsert(21);
return 0;
}In: Computer Science
Using the data on gross (higher) heating values (HHV), estimate the mass of CO2 emitted per: 1) 1000 SCF of methane; 2) lb of gasoline; 3) ethanol; and, 4) No. 2 heating oil. Also express your answers in mass of CO2 per million Btu of each fuel.
In: Chemistry
Direct Materials, Direct Labor, and Factory Overhead Cost Variance Analysis Mackinaw Inc. processes a base chemical into plastic. Standard costs and actual costs for direct materials, direct labor, and factory overhead incurred for the manufacture of 78,000 units of product were as follows: Standard Costs Actual Costs Direct materials 265,200 lbs. at $5.80 262,500 lbs. at $5.70 Direct labor 19,500 hrs. at $16.20 19,950 hrs. at $16.50 Factory overhead Rates per direct labor hr., based on 100% of normal capacity of 20,350 direct labor hrs.: Variable cost, $4.70 $90,730 variable cost Fixed cost, $7.40 $150,590 fixed cost Each unit requires 0.25 hour of direct labor. Required: a. Determine the direct materials price variance, direct materials quantity variance, and total direct materials cost variance. Enter a favorable variance as a negative number using a minus sign and an unfavorable variance as a positive number. Direct Material Price Variance $ Direct Materials Quantity Variance $ Total Direct Materials Cost Variance $ b. Determine the direct labor rate variance, direct labor time variance, and total direct labor cost variance. Enter a favorable variance as a negative number using a minus sign and an unfavorable variance as a positive number. Direct Labor Rate Variance $ Direct Labor Time Variance $ Total Direct Labor Cost Variance $ c. Determine variable factory overhead controllable variance, the fixed factory overhead volume variance, and total factory overhead cost variance. Enter a favorable variance as a negative number using a minus sign and an unfavorable variance as a positive number. Variable factory overhead controllable variance $ Fixed factory overhead volume variance $ Total factory overhead cost variance $
In: Accounting
Ture or False.
1. Rwanda is an example of how colonialism can be good sometimes.
The social structure supported by colonial powers was important in
maintaining peace after Rawanda’s independence.
2. The reason some countries are developed, while others are not,
is straightforward.
3. Imagine that I am looking-up values in the A column using values
on a table E3:F10. VLOOKUP(A1, $E$3:$F$10,2,TRUE) MAY NOT work in
practice.
4. Under the False-Paradigm model, development can be achieved by
having students from poor countries earn their education in the
developed world.
In: Economics
predict the product of the hydrolysis of (s)-4-bromo-2-pentene
In: Chemistry
Most government interventions are designed to modify market outcomes, and the aim is usually to improve economic welfare. However, some interventions are specifically motivated purely by political considerations. For this task, we will consider political intervention in the labour market in Venezuela. This case study comes from the article by: Chang-Tai Hsieh, Edward Miguel, Daniel Ortega, and Francisco Rodriguez. 2011. The Price of Political Opposition: Evidence from Venezuela’s Maisanta, American Economic Journal: Applied Economics 3: 196–214.
http://ezproxy.deakin.edu.au/login?url=http://search.ebscohost.com/login.aspx?direct=true&db=eds jsr&AN=edsjsr.41288634&authtype=sso&custid=deakin&site=eds-live&scope=site.
Note that the analysis in this reference is advanced and you do NOT have to read the entire study to complete the assignment. You should, however, read pages 196-198.
In: Economics
Western State University (WSU) is preparing its master budget for the upcoming academic year. Currently, 12,000 students are enrolled on campus; however, the admissions office is forecasting a 7 percent growth in the student body despite a tuition hike to $80 per credit hour. The following additional information has been gathered from an examination of university records and conversations with university officials:
Required:
1. Prepare a tuition revenue budget for the
upcoming academic year.
2. Determine the number of faculty members needed
to cover classes.
3. Assume there is a shortage of full-time faculty
members. Select at least five actions that WSU might take to
accommodate the growing student body by selecting an "X" next to
the action.
4. You have been requested by the university’s
administrative vice president (AVP) to construct budgets for other
areas of operation (e.g., the library, grounds, dormitories, and
maintenance). The AVP noted: “The most important resource of the
university is its faculty. Now that you know the number of faculty
needed, you can prepare the other budgets. Faculty members are
indeed the key driver—without them we don’t operate.” Are faculty
members a key driver in preparing budgets?
In: Accounting
quick and easy to answer!
1. suppose you are working in a busy lab with multiple people
sharing a given analytical balance. if you are weighing something
which you will only have to weigh once, such as weighing out a
reagent onto some weigh paper, which you immediately use to make a
solution. is it OK to use the balance ' tare or zero function to
set the vessel tare to zero? why or why not? if not what should be
done instead?
2. now suppose you are weighing something thay you will have to
weigh again later. for example suppose you are weighing out some
sample into a crucible. later in the procedure you will heat the
sample in the crucible to partially decompose it and you will need
to know the mass of the material thay remains. is it OK to use the
balance's zero fun tin to set the tare to zero? why or why not. if
not what should you do instead.
In: Chemistry
luStar Company has two service departments, Administration and
Accounting, and two operating departments, Domestic and
International. Administration costs are allocated on the basis of
employees, and Accounting costs are allocated on the basis of
number of transactions. A summary of BluStar operations
follows:
| Administration | Accounting | Domestic | International | |||||||||
| Employees | — | 25 | 15 | 60 | ||||||||
| Transactions | 50,000 | — | 10,000 | 40,000 | ||||||||
| Department direct costs | $ | 68,000 | $ | 24,500 | $ | 154,000 | $ | 597,000 | ||||
BluStar estimates that the cost structure in its operations is as
follows:
| Administration | Accounting | Domestic | International | |||||||||
| Variable costs | $ | 24,500 | $ | 5,500 | $ | 115,000 | $ | 431,000 | ||||
| Fixed costs | 43,500 | 19,000 | 39,000 | 166,000 | ||||||||
| Total costs | $ | 68,000 | $ | 24,500 | $ | 154,000 | $ | 597,000 | ||||
| Avoidable fixed costs | $ | 11,250 | $ | 3,300 | $ | 22,500 | $ | 111,500 | ||||
Required:
a. If BluStar outsources the Administration Department, what is the maximum it can pay an outside vendor without increasing total costs? (Do not round intermediate calculations.)
| Maximum Amount |
b. If BluStar outsources the Accounting Department, what is the maximum it can pay an outside vendor without increasing total costs? (Do not round intermediate calculations.)
| Maximum Amount |
c. If BluStar outsources both the Administration and the Accounting Departments, what is the maximum it can pay an outside vendor without increasing total costs?
| Maximum Amount |
In: Accounting
A current of 5.42 A is passed through a Ni(NO3)2 solution. How long (in hours) would this current have to be applied to plate out 5.00 g of nickel? (Please show all steps)
In: Chemistry