19.0-L tank of carbon dioxide gas (CO2) is at a pressure of 9.40 ✕ 105 Pa and temperature of 18.0°C. (a) Calculate the temperature of the gas in Kelvin. K (b) Use the ideal gas law to calculate the number of moles of gas in the tank. mol (c) Use the periodic table to compute the molecular weight of carbon dioxide, expressing it in grams per mole. g/mol (d) Obtain the number of grams of carbon dioxide in the tank. g (e) A fire breaks out, raising the ambient temperature by 224.0 K while 82.0 g of gas leak out of the tank. Calculate the new temperature and the number of moles of gas remaining in the tank. temperature K number of moles mol (f) Using the ideal gas law, find a symbolic expression for the final pressure, neglecting the change in volume of the tank. (Use the following as necessary: ni, the initial number of moles; nf, the final number of moles; Ti, the initial temperature; Tf, the final temperature; and Pi, the initial pressure.) Pf = (g) Calculate the final pressure in the tank as a result of the fire and leakage. Pa
In: Physics
(1) Explain that a counter-controlled loop is useful when you know how many times a set of statements needs to be executed.
(2) Discuss the implementations of the Fibonacci Number program at the end of this section to consolidate the students’ understanding of the while loop repetition structures.
In: Computer Science
Should drug abuse be treated as a crime? Under what situations should the response be diversion to treatment rather than incarceration? Should all inmates have access to jail or prison-based drug treatment? Why is there such a difference in response to drug offenders based on their race? What should be done about this?
Please type the answer, do not use handwritten notes. Thanks
In: Psychology
Bond X is noncallable and has 20 years to maturity, a 10% annual coupon, and a $1,000 par value. Your required return on Bond X is 11%; if you buy it, you plan to hold it for 5 years. You (and the market) have expectations that in 5 years, the yield to maturity on a 15-year bond with similar risk will be 9.5%. How much should you be willing to pay for Bond X today? (Hint: You will need to know how much the bond will be worth at the end of 5 years.) Do not round intermediate calculations. Round your answer to the nearest cent.
In: Finance
Which condition applies to all special needs exceptions?
a. They involve highly regulated businesses.
b. They are based on probable cause.
c. They are not initiated by the police.
d. They are based on good faith.
The right to privacy can be described as a(n) __________.
a. privilege
b. anticipatory expectation
c. misnomer
d. penumbra
What legal standard applies to a warrantless search of probationer and parolee homes?
a. anticipatory seizure
b. reasonable grounds
c. neutral circumstances
d. reasonable suspicion
In: Psychology
How dangerous is radioactivity? Discuss the real and imagined dangers. Give examples, along with numbers. Which risks are known from direct observation, and which are known only from calculations? What assumptions are made in calculating risk?
In: Physics
6. In the 192.168.0.0/16 address block there are a total of __________ IP version 4 addresses.
65,536
16,777,216
4,096
1,048,576
7. Given the IPv4 address and network mask 134.124.133.139/22, identify the broadcast address in that network (the last address). [you may use the ip_addressing_basics spreadsheet, see "IPv4 Address, Network ID, etc." sheet]
134.124.132.0/22
134.124.133.255/22
134.124.132.255/24
134.124.135.255/22
8. Express the CIDR mask /18 using the dotted decimal notation.
255.255.192.0
255.192.0.0
255.255.255.0
255.255.240.0
9.
Host A has IP address/network mask: 192.168.3.222/27
Host B has IP address/network mask: 192.168.3.225/27
Given the information above, it can be inferred that:
Both host A and host B are on the same network
Host A and Host B are on different networks
Host A and Host B will have the same routing tables
Host A and Host B will be able to communicate directly without an intervening router.
10. A Host (the sending host) is trying to send a packet to another host (the destination host). The sending host knows the IP address of destination host. In deciding how to forward the packet toward destination host, the sending host will:
take the Destination IP address and perform a Logical AND operation with its own (sending hosts') Network Mask to determine if the destination host is on the same network as the sending host.
take the Destination IP address and perform a Logical AND operation with destination host's Network Mask to determine if the destination host is on the same network as the sending host.
always forward all packets to the default gateway and not be concerned with determining if the destination host is on the same network as the sending host.
never forward any packets to the default gateway and not be concerned with determining if the destination host is on the same network as the sending host.
In: Computer Science
In: Biology
a) What is the relation between incline angle (0 degrees being flat, and 90 degrees being a vertical incline) and acceleration along the incline when friction is not involved?
g*(1-cos(theta)^2); g*sin(theta); g*(1-cos(theta)) or g*cos(theta)
b) When an object is on an incline, what is the relation between the objects weight and the normal force?
m*g*cos(theta); m*g*sin(theta); m*g*(1-cos(theta)) or m*g*(1-cos(theta)^2)
c) What is the force required to make an object under static friction begin motion?
a. the normal force times the coefficient of static friction
b. the normal force times the coefficient of kinetic friction
c. the force due to gravity times the coefficient of kinetic friction
d. mass times the coefficient of static friction
d) What is the relation between the coefficient of kinetic friction and the angle of inclination required to make an object have a constant velocity (no acceleration) going down an incline?
g*m*cos(theta); g*m*cos(theta) - N; tan(theta) or g*(1-cos(theta)^2)
e) The small angle approximation states that sin(theta) can be approximated as what when the angle, theta, is small?
theta in degrees; 1 - theta in radians; 1; or theta in radians
In: Physics
What is the pH of the solution that results from micing 75 mL of 0.50 M NH3(aq) and 75 mL of 0.50 HCL(aq) at 25 xC? (Kb for NH3 = 1.8x 10-5)
a. 0.60
b 2.67
c. 4.74
d. 4.93
e. 9.26
In: Chemistry
Requirement: To create three classes, Account, Transaction, and the main class (with the main method). Please closely follow the requirements below. I only need to know how to create the menu and be able to use it through out the code.
Requirements for the Transaction class: A private Date data field that stores the date of the transaction A private char data field for the type of the transaction, such as “W” for withdrawal and “D” for deposit A private double data field for the amount of the transaction A private double data field for the balance of the account after the transaction A private String data field for the description of the transaction A constructor that creates an instance of the Transaction class with specified values of transaction type, amount, balance, and description, and date of the transaction. Note: Instead of passing a Date object to the constructor, you should use the new operator inside the body of the constructor to pass a new Date instance to the date data field. Define the corresponding accessor (get) methods to access a transaction’s date, type, amount, description, and the balance, i.e., you need to define 5 get methods. Define a toString() method which does not receive parameters but returns a String that summarizes the transaction details, including transaction type, amount, balance after transaction, description of the transaction, and transaction date. You can organize and format the returned String in your own way, but you have to include all of the required information. Note: the purpose of the Transaction class is to describe (record) a banking transaction, i.e., when a transaction happens, you can use the transaction parameters to create an instance of the Transaction class.
Requirements for the Account class: A private int data field for the id of the account. A private String data field that stores the name of the customer. A private double data field for the balance of the account. A private double data field that stores the current annual interest rate. Key assumptions: (1) all accounts created following this class construct share the same interest rate. (2) While the annual interest rate is a percentage, e. g., 4.5%, but users will instead enter the double number as 4.5. Therefore, you need to divide the annual interest rate by 100 whenever you use it in a calculation. A private Date data field that stores the account creating date. A private ArrayList data field that stores a list of transactions for the account. Each element of this ArrayList has to be an instance of the Transaction class defined above. A no-arg constructor that creates a default account with default variable values. A constructor that creates an instance of the Account class with a specified id and initial balance. A constructor that creates an instance of the Account class with a specified id, name, and initial balance. Note: for all constructors, instead of passing a Date object to the constructor, you should use the new operator inside the body of the constructor to pass a new Date instance to the date data field. Define corresponding accessor (get) and mutator (set) methods to access and reset the account id, balance, and interest rate, i.e., you need to define 3 get methods and 3 set methods. Define corresponding accessor (get) methods to access the account name, transactions, and date created information, i.e., you need to define 3 get methods Define a method named getMonthlyInterest() that returns the monthly interest earned. Define a method named withdraw that withdraws a specified amount for a specified purpose from the account and then add this transaction including its description to the ArrayList of transactions. Define a method named deposit that deposits a specified amount from a specified source to the account and then then add this transaction including its description to the ArrayList of transactions.
Notes: (1) The method getMonthlyInterest() is to return monthly interest earned, not the interest rate. Monthly interest = balance * monthlyInterestRate, where monthlyInterestRate = annualInterestRate/12. (2) The constructors for the Account class will initiate the date data field. (3) You should create the Account and Transaction classes as independent files in the same package of your main class. Requirements for the main class: To test the two classes above, in the main method of your main class you need to do the following first: Create an instance of the Account class with an annual interest rate of 1.5%, a balance of 1000, an id of 1122, and a name as George. Deposit $3000 as salary to the account and then withdraw $2500 as rent from the account.
Print an account summary that shows the account holder’s name, annual interest rate, balance, monthly interest, the date when this account was created, and all transactions. (Check the results of this print statement to verify that your Account and Transaction classes work properly.) After you pass the above test, continue on to do the rest. Simulate an ATM machine experience: The ATM system will ask users to enter a valid ID first (corresponding to user login). If the entered ID matches to one of the Accounts’ ID, the system will present the user an ATM main menu.
Description of the ATM machine main menu: This ATM machine main menu offers users four choices: choice 1 for viewing the current balance, 2 for withdrawing money, 3 for depositing money, and 4 for exiting the main menu (corresponding to user logoff). The ATM main menu prompts the user to enter a choice, and depending on the user’s choice it may ask for additional input (i.e., withdraw or deposit amount) before acting on the user’s choice. Your code should behave properly for each user choice as shown in the sample-run figure at the end. Description of the sample-run figure (shown at the end): In the sample-run figure below, the user first entered a choice 1 for viewing the current balance, and after hitting the Enter key a statement of balance was shown. Then the user entered 2 for withdrawing money, and after hitting the Enter key the system asked the user to enter the withdraw amount. The user next entered 1 to verify the balance amount. Afterward, the user entered 3 for depositing money, and after hitting the Enter key the system asked the user to enter the deposit amount. Again, The user next entered 1 to verify the balance amount. Lastly, the user entered 4 for exiting the main menu and the system responses by prompting for an id again. In the main method, create an Array of ten accounts with account IDs as 1, 2,. . . , 10, and an initial balance of $100 for each account. You will use this Array to simulate an ATM machine experience in the main method. To do that, you need a Scanner to capture the user’s input and define a few variables. You should also define a few methods in the main class, to be used inside the main method, to make the main method looks lean. There are many options to choose from, and the objective is to model an ATM machine experience described above. Additional simulation requirements: After creating the 10-element array (and a few variables), the system should prompt the user to enter an ID and it will verify if the ID is a valid one. An ID is valid if it matches to one of the accounts of the 10-element Array. If the ID is valid, the ATM main menu (described above) is displayed; otherwise the system will ask the user to enter a correct ID. That is, the system will not present the ATM main menu until the user enters a correct ID. You may have noticed that based on the above ATM simulation description, once the system starts it will not stop because after a user chooses option 4 to exit the ATM system will ask user to enter an ID again. To give users an option exiting the system after a few rounds of ATM simulation, inform users that when entering an ID, enter 0 to exit the ATM run (since valid ids are from 1 to 10). That is, if users enter 0 as ID, instead of showing the main menu, the system will terminate the project, but before that it will print out all ATM transactions for each account (in the Array) that actually incurred transactions.
In: Computer Science
Whenever Mr. Kerrigan picked up his young son, Billie, from soccer practice he would have to drive past a Dairy Queen. Every time Billie saw the large Dairy Queen sign, Billie would begin to scream. Mr. Kerrigan did not like his son’s screaming. To make his son stop screaming for ice cream, Mr. Kerrigan would pull over and buy ice cream for Billie. This stopped Billie’s screaming. In this short example, what is an example of positive reinforcement? What is an example of negative reinforcement? (Hint: both Billie and his dad are being conditioned in this story). How could Billie’s dad use conditioning to prevent Billie from screaming in the future?
In: Psychology
Sucrose is a disaccharide consisting of glucose and fructose. Following cleavage by sucrase glucose is readily metabolized through glycolysis. Explain how fructose serves as an alternative glycolytic intermediate?
In: Biology
Yeast Fermentation Results
In: Biology
If 10.0 ml of 0.100 M strong base is titrated with 25.0 ml of 0.100 M strong acid, what is the pH of the resulting solution?
In: Chemistry