1. NO2- + SnO32- ---> SnO22- + NO3-
In the above redox reaction, use oxidation numbers to identify the element oxidized, the element reduced, the oxidizing agent and the reducing agent.
name of the element oxidized:
name of the element reduced:
formula of the oxidizing agent:
formula of the reducing agent:
2. Si + 2N2H4+ H2O+ 2OH- ---> 4NH3 + SiO32-
In the above redox reaction, use oxidation numbers to identify the element oxidized, the element reduced, the oxidizing agent and the reducing agent.
name of the element oxidized:
name of the element reduced:
formula of the oxidizing agent:
formula of the reducing agent:
In: Chemistry
1. Use the get() method to print the value of the "name" key and
the value of the "age" key of the stuInfo dictionary.
Use the variable given below:
stuInfo = {'name': 'John Smith', "gpa": 3.456, "age": 20}
2. Use the dict() function to make a copy of the NY dictionary
to NewYorkState dictionary.
3. Change the "name" value from "John Smith" to "James Bond" of
the stuInfo dictionary.
Use the variable given below:
stuInfo = {'name': 'John Smith', "gpa": 3.456, "age": 20}
need help with Python. Please help ASAP. Please please please.
In: Computer Science
The below sample data represents the cost of 9 name-brand drugs and their corresponding generic equivalent. (Use Name Brand as Sample1) Name Brand 120 150 135 140 160 165 140 120 165 Generic Brand 99 135 130 119 139 150 129 119 160 a)
Compute a two-sided 90% confidence Interval estimate for µd. (5 points) b) Based on your interval, can you safely conclude that generics are less expensive than name brand? Why or why not? (5 points)
In: Statistics and Probability
Database Management Systems for Business
6. State the most important characteristics regarding the output of any relational algebra operation.
9. Name the level to represent an organization view in the three-level ANSI-SPARK architecture.
10. Name the terminology of storing subject-oriented, integrated, time variant and nonvolatile data for generating useful decision making report.
In: Computer Science
In a Package called characterArray, ********JAVA
CODE**********
1) Create a char array containing your full name and print it
out.
2) Create an uninitialized char array and copy into it
the char array containing your full name
and print it out.
3) Create a Character array and copy into it the char array
containing
your full name and print it out.
4) Into the Character array, use toUpperCase() to copy the char
array containing
your full name and print it out.
5) Convert the Characters in place using toLowerCase() and
charValue()
to lowercase Characters.
In: Computer Science
PYTHON LANGUAGE
Write the data in variable artist_songs into a csv file, 'songs.txt', where the first column is singer name and second column is a song name. Each line should have a singer and a song name. Use "Name" and "Song" as headers. Do not include double quotation marks (") in your CSV but you should include apostrophes where necessary (for example, for the song "We Don't Talk Anymore").
In [110]:
artist_songs = {
'Taylor Swift': ['Love Story', 'You need to Calm Down'],
'Charlie Puth': ['Attention', "We Don't Talk Anymore", 'Change']
}
In: Computer Science
QUESTION 4
Which of the two choices below are the reasons why the relation below is not BCNF.
in_dep (ID, name, salary, dept_name, building, budget )
with a functional dependency dept_name --> building, budget
|
dept_name is not a superkey |
||
|
dept_name --> building, budget is not a trivial dependency |
||
|
id --> name, salary, dept_name is also a functional dependency |
||
|
It is not 3NF |
QUESTION 5
in_dep (ID, name, salary, dept_name, building, budget )
Choose the following decompositions of in_dep into BCNF when
dept_name->building, budget causes a violation of BCNF.
|
id, name, salary, dept_name |
||
|
id, name, salary |
||
|
dept_name, building, budget |
||
|
salary, dept_name, budget |
QUESTION 6
List the advantages of 3NF over BCNF
|
Can always preserve functional dependencies |
||
|
Ensures no losslessness |
||
|
It's a subset of BCNF |
||
|
It's stricter |
In: Computer Science
Use Turtle graphics to draw your first name or your nickname if over 6 letters.
Just initials of your first & last name is OK if you add another feature such as color.
My initials are J.S but I don't know how to color them.
Here is my code:
Python program to print nick name if a name is greater than 6 character
or initials if the color if given
"""
import turtle as T
fName, lName = input('Enter name: ').split()
color = input('Enter Color: ')
T.fillcolor(color)
if color is '':
if len(fName)+len(lName) > 6:
T.write(fName, font=("Arial",32,"normal"))
else:
T.write(fName + " " + lName,font=("Arial",32,"normal"))
else:
T.write(fName[0] + " " + lName[0], font=("Arial",32,"normal"))In: Computer Science
Java Code. imagine you're working for a fast-food restaurant. get details returns name of the burger and getPrice return the price of the meal.
Using Decorator pattern make class BurgerToppings:
-Each topping is an extra $1 and the name provided in the constructor
-getTotalPrice: returns total price of burger + toppings
-getDetails: returns the burger name + name of topping with the word (extra)
Code:
public interface Burger{
double C();
String getDetails();
}
public class BigMac implements Burger{
private String order;
private double price ;
public BigMac() {
this.order= "Big Mac";
this.price = 4.00;
}
@Override
public double getPrice() {
return price;
}
@Override
public String getorder() {
return name;
}
}
Output expected:
Ordering BigMac + extra pickles+ extra cheese
Total price = 6.0
In: Computer Science
Imagine you're working for a fast-food restaurant. get details returns name of the burger and getPrice return the price of the meal. Java
Using Decorator pattern make class BurgerToppings:
-Each topping is an extra $1 and the name provided in the constructor
-getTotalPrice: returns total price of burger + toppings
-getDetails: returns the burger name + name of topping with the word (extra)
Output expected:
Ordering BigMac + extra pickles+ extra cheese
Total price = 6.0
public interface Burger{
double C();
String getDetails();
}
public class BigMac implements Burger{
private String order;
private double price ;
public BigMac() {
this.order= "Big Mac";
this.price = 4.00;
}
@Override
public double getPrice() {
return price;
}
@Override
public String getorder() {
return name;
}
}In: Computer Science