How many grams are in a 0.10 mol sample of ethyl alcohol?
In: Chemistry
For this assignment you will write a program with multiple functions that will generate and save between 100 and 10,000 (inclusive) "Shakespearian" insults. The program InsultsNetID.py is supplied as a starting point and it contains some tests that you must pass. The program loads words from three separate files: word1.txt, word2.txt and word3.txt. Each file contains 50 words or phrases. An insult is generated by choosing one word or phrase from each of the three lists of words at random, adding "Thou " to the beginning and "!" to the end. One such random insult would be:
Thou artless bat-fowling barnacle!
With this many words, you could generate 50 * 50 * 50, or 125,000 possible unique insults - more than enough for anyone! Your program does not have to generate more than 10,000 unique insults and will not generate less than 100 of them for saving to a file. Your program will need to generate unique insults (no two the same) and they must be in alphabetical order before being saved in a text file. You should use Python's built in list searching and sorting functionality.
If your program is working properly it should generate an output like SampleOutput.txt. The actual insults will be different. And a file called "Insults.txt" containing all the insults will also have been created. The file will contain the user specified number of unique insults in alphabetical order. The user should be able to supply any number of insults between 100 and 10,000. Input of this number should be completely robust. If he enters something non-numeric or outside the legal range, he should be continuously re-prompted to enter a legal value.
In: Computer Science
How many grays is this?Part A
A dose of 4.7 Sv of γ rays in a short period would be lethal to about half the people subjected to it.
Part b
What is the energy released in the fission reaction of the equation n+23592U→9440Zr+13952Te+3n? The atomic masses of 23592U, 9440Zr, and 13952Te are 235.043930 u, 93.906315 u , and 138.93473 u respectively, and the mass of a neutron is 1.008665 u.
In: Physics
Discuss pros and cons of using twins to estimate the rate of return to school
In: Economics
John earned $59,000 of nominal income in 2017. The CPI is 242 for 2017.
John earned $60,000 of nominal income in 2018. The CPI is 252 for 2018.
(a) Calculate the percent change in John’s real income from 2017 to 2018. Please calculate your answer to the second decimal place (hundredths place). Show how you got your answer.
(b) Using the information above calculate the inflation rate from 2017 to 2018. Please show the work done to get your answer. Please calculate your answer to the second decimal place (hundredths place).
(c) If Bill lent Sue $20,000 from 2017 to 2018 and charged Sue a nominal interest rate of 5.00%, then please calculate the real interest rate that Bill earned for this loan. Please show how you got your answer. Please calculate your answer to the second decimal place (hundredths place)
(d) If Bill wanted to earn a real interest rate (return) of 5.00% for the loan mentioned above, then what nominal interest rate should he have charged Sue? Please show how you got your answer. Please calculate your answer to the second decimal place (hundredths place).
In: Economics
Write around 200 words only related to what do you understand about server virtualization.
In: Computer Science
According to Kaplan, why does nature have its restorative effect on people? Explain both how our attention normally operates and what nature does to improve the situation. Kaplan believes that restorative environments share three characteristics. Name and define these three characteristics and discuss why nature satisfies each. In what ways does Kaplan explain the negative effects of threatening or obnoxious environmental stressors?
In: Other
Write the balanced net ionic equation.
1.)solid Fe(OH)3and excess 3.0 M HC2H3O2
2.)0.10 M NaHCO3and excess 0.050 M H2SO4
In: Chemistry
Stoichiometry involving gases:
1. How many moles of oxygen gas are present in 4.48L of the gas at 750mm-Hg and 87 degrees C?
2. Propane is used in gas grills and combusted with oxygen to produce carbon dioxide and water vapor. If 2L of propane is combusted, what volume of oxygen is required and what volumes of water vapor and carbon dioxide are produced?
In: Chemistry
Write the Java program:
In this assignment, you will create a program implementing the functionalities of a standard queue in a class called Queue3503. You will test the functionalities of the Queue3503 class from the main() method of the Main class. In a queue, first inserted items are removed first and the last items are removed at the end (imagine a line to buy tickets at a ticket counter).
The Queue3503 class will contain:
a. An int[] data filed named elements to store the int
values in the queue.
b. An int data field named size that stores the number of
elements in the queue.
c. A no-arg constructor that creates a Queue object with default
capacity 0.
d. A constructor that takes an int argument representing the
capacity of the queue.
e. A method with signature enqueue(int v) that adds the
int element v into the queue.
f. A method with signature dequeue() that removes and
returns the first element of the
queue.
g. A method with signature empty() that returns true if
the queue is empty.
h. A method with signature getSize() that returns the size
of the queue (return type is hence
int)).
The queue class you develop should be tested using the following steps: (In other words, your program named Main will consist of the following)
a. Start your queue with an initial capacity of 8.
b. When the dequeue() method is called, an element from the queue
at the beginning of the queue must be removed.
c. The main() method in your Main class should consist of
statements to:
i. Create a queue object;
ii. Call enqueue() to insert twenty integers (taken from
the user) into the queue.
iii. After the above task is completed, include a for-loop that
will print out the contents of the queue.
d. After printing the queue filled with twenty integers,
call dequeue() repeatedly to remove the beginning element of the
queue.
e. Print the contents of the queue after removing every fifth
number.
f. For your reference, the execution of the Main program is shown
below. User inputs for populating the Queue is shown in the first
line. Next, your program outputs are shown.
*Make sure the code can run in Repl.it*
Points to think about
*Make sure the code can run in Repl.it*
Sample Run
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Initial content: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
After removing 5 elements: 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
After removing 5 elements: 11 12 13 14 15 16 17 18 19 20
After removing 5 elements: 16 17 18 19 20
In: Computer Science
Discuss how Nightingale used the three basic types of epidemiological investigation. The contagious diseases were primarily cholera and typhus; how are these diseases transmitted and prevented?
In: Anatomy and Physiology
what is JSON and why we use it, what the threats are and how we mitigate against them, how PHP sanitises the data, how MySQL save the data and how data gets from the server onto the web page.
In: Computer Science
You have a set of four drives configured as RAID-5.
Drive #3 has crashed, but you have the data from Drives 1, 2, and 4 as shown here:
Drive #1: 01001111 01101000 01001110 01101111
Drive #2: 01011001 01110101 01110000 00100001
Drive #3: XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX
Drive #4: 01001111 01111100 01000111 01101111
What is the missing data in ASCII? Explain how you retrieved the information.
In: Computer Science
A mixture of 100g of water and 80g of phenol separates into two layers at 50 oC. One layer, L1, consists of 75.4% of water by mole number; the other , L2, contains 97.7% of water by mole number. How many moles of each constituents are in each phase?
In: Chemistry