Problem 1#omplete the code below. We’ve gone ahead and created#variables
Get college assignment help at Smashing Essays Question Problem 1#omplete the code below. We’ve gone ahead and created#variables for the current date and current time. Now,#we want to print date with the format year/month/day,#and the time with the format hour:minute:second.##This is a tough one! Think about what we’ve learned#about converting and putting together strings.#Remember, we can add two strings together. For#example: “5” “1” = “51”.from datetime import dateimport datetimetodays_date = date.today()current_time = datetime.datetime.now()#Don’t modify the code above!#Complete the line below to print today’s date with the#form year/month/date. For example, January 15th, 2017#would be 2016/1/15.print(myDate.year)#Complete the line below to print the current time with#the form hour:minute:second, such as 12:57:15. Don’t worry#about the leading 0s for single-digit times. If it’s#1:05PM and 7 seconds, the correct answer would be:#13:5:7 (13 because Python uses 24-hour timeby default).print(myDate.month)Problem 2q1 = 5q2 = -10r = 5#You may modify the lines of code above, but don’t move them!#When you Submit your code, we’ll change these lines to#assign different values to the variables.##Below is some code that calculates electric potential energy#based on Coulomb’s law. However, it’s presently broken, and#can be fixed solely by fixing the parentheses.##ix this code. When it’s correct, it should print:#The electric potential energy is -89877424379.88from math import pie = 8.854 * 10 ** -12val_1 = (1 / (4 * pi * e)val_2 = (q1 * q2) / rprint(“The electric potential energy is”, round((val_1 * val_2), 2)Problem 3mystery_string = “ABCDE”#You may modify the lines of code above, but don’t move them!#When you Submit your code, we’ll change these lines to#assign different values to the variables.#In the example above, we saw using operators to add#characters to the end of a string, and using operators to#multiply a string.##dd some code below that uses those operators to modify#mystery_string such that its value at the end of the#program is: ABCDE.ABCDE.ABCDE.jQuery22403050788400673903_1564707745648? Then, print the final#value of mystery_string.##You should not reate any new strings longer than one#character. We’ll test your code with a couple other#variants on mystery_string, but in all cases the results#should be the same: the string repeated three times with#a period after each repetition and three question marks#at the end.dd your code here
Questions 1 and 2 only
NOTE: For this workshop you are to do some investigations about some of the systems available for communication. Read lectures from week 1
Questions 1 and 2 only
NOTE: For this workshop you are to do some investigations about some of the systems available for communication. Read lectures from week 1
Test question : asking question during bug bash. Tutors will
Question Test question : asking question during bug bash. Tutors will not be paid
“Database Concurrency Control (COMMIT and ROLLBACK )”1. Describe at least
Question “Database Concurrency Control (COMMIT and ROLLBACK )”1. Describe at least two business scenarios where COMMIT and ROLLBACK would be required to help maintain concurrency in a multiuser platform with the help of Transaction logs.2. Describe how these functions would be essential for business continuity and concurrency control.3. Identify how these functions would enable an organization to recover from a database corruption event. 4. Describe how locks could be used in order to qualify data transactions and enhance concurrency control. Suggest at least two business scenarios that would benefit from implementing locking methods.Please site sources/references if any.Thanks in advance
“Optimization for Transactional Processing”At certain times, it is necessary to
Question “Optimization for Transactional Processing”At certain times, it is necessary to perform optimization techniques in order to ensure optimal performance of the database.Evaluate at least two methods that can be used to optimize database components such as queries, reports SQL transaction processing, and data consumption. Provide a real-world example that explains how these methods would help an organization process a large number of online transactions within a short time span. Suggest at least two SQL optimization techniques that can be used to enhance the data access turnaround time and transaction processing time. Provide examples to support your response.Assess the database statistics that could be used in order to measure database performance. Provide a real-world example that demonstrates how this information would enable businesses to accurately scale its data processing requirements.Please site sources/references if any.Thanks in advance
“DSL and IPV6″1. What are the major difficulties that users
Question “DSL and IPV6″1. What are the major difficulties that users have encountered throughout IPv6’s widespread acceptance and implementation. 2. Recommend two (2) possible solutions for the difficulties that users have encountered in IPv6’s widespread implementation. Justify your response.3. Compare DSL and Cable Internet connections based on availability, consistent high speed, reliability, security, and price. 4. Determine the better Internet connection option and why.Please site sources/references if any.Thanks in advance
please follow docs 1-5 alt=”work 4.jpg” /> Attachment 1 Attachment
Question please follow docs 1-5 alt=”work 4.jpg” /> Attachment 1 Attachment 2 Attachment 3 Attachment 4 Attachment 5 ATTACHMENT PREVIEW Download attachment work 1.jpg View table structure for Breed, Pet,Pet_3, Pet_Owner and save the results in a word document. Identify the Primary key for each table Create relationship between the tables as it fits Create a form for each table see the following image as an example: Brand Font BreedName MinWeight 15 MaxWeight 32.5 AverageLifeExpectancy 20 Add Record Print Record Close Form Quit App . Generate a report for each query in part II. PART -II Create the following Queries: 1- Create a query to display all columns of all rows of PET. 2- Create a query to display the PetBreed and PetType of all pets. 3- Create a query to display the PetBreed , PetType , and PetDOB of all pets having the PetType of Dog. 4- Create a query to display the PetBreed column of PET. 5- Create a query to display the PetBreed , PetType and PetDOB of all pets having the PetType of Dog and the PetBreed of Std. Poodle. 6- Create a query to display the PetName, PetBreed and PetType for all pets that are not of PetType of Dog , Bird or fish. 7- Create a query to display the PetID, PetName, PetBreed and PetType for all pets having a four – character name starting with k. (hint use Like ) 8- Create a query to display the OwnerLastName, OwnerFirstName and OwnerEmail of all owners who have an email address ending with somewhere.com. Assume that email account names can be any number of characters. Note: When you finish upload the completed pet database to moodle. ATTACHMENT PREVIEW Download attachment work 2.jpg BreedName – MinWeight – MaxWeight – AverageLife – Click to Add – BorderCollie 15 22.5 20 Cashmier 10 15 12 Collie Mix 17.5 125 18 INER Std. Poodle 22.5 BO 18 Unknown View Record: 14 1 5 of 5 Search Type here to search e A ATTACHMENT PREVIEW Download attachment work 3.jpg BREED PET OWNER PETIS TI PET OwnerID –
Problem 1balance = 20.0price = 19.0overdraft_protection = True#You may modify
Question Problem 1balance = 20.0price = 19.0overdraft_protection = True#You may modify the lines of code above, but don’t move them!#When you Submit your code, we’ll change these lines to#assign different values to the variables.#Last exercise, we printed True if balance was greater than or#equal to price, and False otherwise. However, some banks have#something called overdraft protection. Overdraft protection#means that the customer is allowed to spend more than their#balance, and the bank just expects them to deposit the money#to cover the purchase later.##rite some code below that will print True if the customer#can make the purchase given their balance, the purchase#price, and whether or not they have overdraft protection.#Specifically, the result should be True if balance is greater#than or equal to price or if overdraft_protection is True,#and False if neither of these are true.print(balance>=price or overdraft_production)else print(False)Problem 2cold = Falsewindy = Falseneed_jacket = cold#You may modify the lines of code above, but don’t move them!#When you Submit your code, we’ll change these lines to#assign different values to the variables.#In this problem, we want to print the message, “You should#wear a jacket today!” if it’s cold or windy, or the message#”You don’t need a jacket today!” if it’s not.##At the bottom of this file, we’ve added some code that#handles printing these two messages. For this code to work,#the variable need_jacket needs to exist. Its value should be#True (the boolean, not the string) if it’s cold or windy,#False if it’s neither cold nor windy.#dd your code to create the variable need_jacket with the#appropriate value here!#Do not modify the code below. It will work if you have#correctly create the variable need_jacket with the#appropriate value.need_jacket = coldprint(need_jacket)else: print(False)Problem 3mystery_value_1 = 6mystery_value_2 = 2#You may modify the lines of code above, but don’t move them!#When you Submit your code, we’ll change these lines to#assign different values to the variables.#Write some lines of code below that will perform the#following operations in the given order:## – Print the sum of mystery_value_1 and mystery_value_2# – Print the difference between mystery_value_1 and mystery_value_2# (mystery_value_1 minus mystery_value_2)# – Print the product of mystery_value_1 and mystery_value_2# – Print the quotient of mystery_value_1 and mystery_value_2# (mystery_value_1 divided by mystery_value_2)# – Print the modulus of mystery_value_1 and mystery_value_2# (the remainder of the division operation above)##These operations should not carry forward: each one should#act on the original values of mystery_value_1 and#mystery_value_2.#dd your code here!
Problem 1mystery_value_1 = 6mystery_value_2 = 2#You may modify the lines
Question Problem 1mystery_value_1 = 6mystery_value_2 = 2#You may modify the lines of code above, but don’t move them!#When you Submit your code, we’ll change these lines to#assign different values to the variables.rite some lines of code below that will perform the#following operations in the given order:## – Print the sum of mystery_value_1 and mystery_value_2# – Print the difference between mystery_value_1 and mystery_value_2# (mystery_value_1 minus mystery_value_2)# – Print the product of mystery_value_1 and mystery_value_2# – Print the quotient of mystery_value_1 and mystery_value_2# (mystery_value_1 divided by mystery_value_2)# – Print the modulus of mystery_value_1 and mystery_value_2# (the remainder of the division operation above)##These operations should not carry forward: each one should#act on the original values of mystery_value_1 and#mystery_value_2.#dd your code here!Problem 2balance = 20.0price = 19.0overdraft_protection = True#You may modify the lines of code above, but don’t move them!#When you Submit your code, we’ll change these lines to#assign different values to the variables.#Last exercise, we printed True if balance was greater than or#equal to price, and False otherwise. However, some banks have#something called overdraft protection. Overdraft protection#means that the customer is allowed to spend more than their#balance, and the bank just expects them to deposit the money#to cover the purchase later.##rite some code below that will print True if the customer#can make the purchase given their balance, the purchase#price, and whether or not they have overdraft protection.#Specifically, the result should be True if balance is greater#than or equal to price or if overdraft_protection is True,#and False if neither of these are true.print(balance>=price or overdraft_production)else print(False)Problem 3busy = Truehungry = Falsetired = Truestressed = False#You may modify the lines of code above, but don’t move them!#When you Submit your code, we’ll change these lines to#assign different values to the variables.#Logical operators get more complex when we start using them#with the results of other logical operators. So, let’s try#it out!##Using the variables above, we want to assess whether the#person is happy, sad, bored, confused, or anxious.## – The person is happy if they’re busy but not stressed.# – The person is sad if they’re either hungry or tired.# – The person is confused if they’re both happy and sad.# – The person is bored if they’re neither happy, sad,# nor busy.# – The person is anxious if they’re neither happy nor sad,# but they are stressed.##dd code below whose output will list whether each of these#emotions is true or false. For example, with the original#values of the variables above, this would print:##Happy: True#Sad: True#Confused: True#Bored: False#Anxious: Falsehappy if they’re busy but not stressed.# – The person is sad if they’re either hungry or tired.# – The person is confused if they’re both happy and sad.# – The person is bored if they’re neither happy, sad,# nor busy.# – The person is anxious if they’re neither happy nor sad,# but they are stressed.
The interpreitation of the output that python is giving me
Get college assignment help at Smashing Essays Question The interpreitation of the output that python is giving me is giving me a little trouble. What are the variables for the outputs for part a and b? Specifically the parts in bold, I understand the z test and how it works but I’m not sure what the output (-3.234430160250559, 0.0012188572636721527) means? Same thing with the t test on part b (statistic=-5.397510629514021, pvalue=4.664854624017284e-05).Part AIt is claimed that the proportion with power generation over 44.4 kWh (cityA > 44.4) is the same for the month of June (Month=6) and July (Month=7). Test this claim using a hypothesis test at 1% level of significance.Python script:print (‘Hypothesis test for the difference of two population proportions – Step 2’)n1 = solarkwh.loc[solarkwh[‘Month’] == 6][‘cityA’].count()n2 = solarkwh.loc[solarkwh[‘Month’] == 7][‘cityA’].count()x1 = (solarkwh.loc[solarkwh[‘Month’] == 6][‘cityA’] > 44.4).values.sum()x2 = (solarkwh.loc[solarkwh[‘Month’] == 7][‘cityA’] > 44.4).values.sum()counts = [x1, x2]n = [n1, n2]print (proportions_ztest(counts, n))print (”)Output:Hypothesis test for the difference of two population proportions – Step 2(-3.234430160250559, 0.0012188572636721527)Part BIt is claimed that the average power generation for July is not the same as for August for City A. Test this claim using a hypothesis test at 5% level of significance.Python script:print (‘Hypothesis test for the difference of two population means – Step 4’)jul_data = solarkwh.loc[solarkwh[‘Month’] == 7][‘cityA’]aug_data = solarkwh.loc[solarkwh[‘Month’] == 8][‘cityA’]print (st.ttest_ind(jul_data, aug_data, equal_var=False))print (”)Output:Hypothesis test for the difference of two population means – Step 4Ttest_indResult(statistic=-5.397510629514021, pvalue=4.664854624017284e-05)
Let G= (V,E) be a flow network with source s
Question Let G= (V,E) be a flow network with source s and sink t.We say that an edge e is a choke point if it crosses every minimum-capacity cut separating s from t . Give an efficient algorithm to determine if a given edge e is a choke point in G.(Hint: Use the max-flow min-cut theorem. What happens if you change the capacity of achoke point edge?
you have to enter a cave which has many entrances
Question you have to enter a cave which has many entrances A , and many exits B. You have the entire map of the cave as a graph. You don’t like being inthe cave, and so you want to find the shortest way to enter the cave somewhere and exit itsomewhere.More formally, you are given an undirected, unweighted graph and two subsets of nodes, A and B , which are disjoint. Give an efficient algorithm for computing the minimum distance from A to B , defined as min a ∈ A,b ∈B δ(a,b).
What is the difference between a FlowPane and a VBox
Question What is the difference between a FlowPane and a VBox or HBox?Why would you use one over the other?
Your task here is to look at this article on foreign policy,
Your task here is to look at this article on foreign policy, and relate it to three concepts from our discussion about Foreign Policy. Try to focus on concepts from this discussion only.In addition, describe what the US should do in this situation– if you were president, what would you do, and why?https://oaklandcc.desire2learn.com/d2l/le/content/102427/viewContent/1627996/View
What role does Obserable come into this conversation with Pane,
Question What role does Obserable come into this conversation with Pane, StackPane, FlowPane, GridPane, BorderPane, HBox and VBox. What role do they play in panes, etc.? I know that Obserable is a class which is found in the java.util package in part of the Java Core Utility Framework. This is an interface (JavaFX) and I believe is a part of the javafx.beans package. But nothing so far about Pane, StackPane, FlowPane, GridPane, BorderPane, HBox and VBox.
Question 1 – A digital forensics professional must know basic IT skills,
Question 1 – A digital forensics professional must know basic IT skills, understand computer architecture and networking, and have analytical and investigative skills, as well as strong attention to detail. Why do think all of these skills are necessary? Please explain.Question 2 – Law enforcement professionals and investigators use digital forensic methods to solve crimes every day. Locate one current news article that explains how investigators may have used these techniques to solve a crime. Explain the crime that was solved and the methods used to determine how the crime was committed. Some examples of crimes solved may include locating missing children, finding criminals who have fled the scene of a crime, or unsolved crimes from the past that have been solved due to the use of new techniques (such as DNA testing).Your written assignment should be 4 paragraphs in your own words, and should include a reference citation for your source of information.Required readings – https://interworks.com/blog/bstephens/2016/02/05/w…
and threats to information security
Question 1 – If you could, what would you do to help create a national “security culture,” in which everyone is more knowledgeable and proactive about threats to information security?Question 2 – In no less than 250 words, explain the different security measures that each version of SNMP uses. What is the different between SNMPv1, v2c and v3?
what is a chipset and its four uses ?
Question what is a chipset and its four uses ?
In 100 words or less, how does the social identity contribute to
In 100 words or less, how does the social identity contribute to effective women leadership. Citations not needed but solid academic answers are expected.
briefly justify style=”color:rgb(51,51,51);background-color:rgb(255,255,255);”> all steps in troubleshooting process? what is
Question briefly justify style=”color:rgb(51,51,51);background-color:rgb(255,255,255);”> all steps in troubleshooting process? what is type-1 hypervisor and provides examples? what would you are doing if downside is from corrupt windows system file? write 2 ways that during which device manager solve issues associated with device? the way to solve the matter of warming. justify 3 ways? what’s Uac box and the way it’s employed in laptop system?
The post Problem 1#omplete the code below. We’ve gone ahead and created#variables appeared first on Smashing Essays.